/linux-master/tools/cgroup/ |
H A D | iocost_coef_gen.py | 23 import json namespace 97 f'--eta={eta} --output-format json --output={outfile.name} ' 103 d = json.loads(f.read())
|
/linux-master/tools/testing/selftests/tc-testing/ |
H A D | tdc.py | 15 import json namespace 274 outputJSON = json.loads(procout) 275 except json.JSONDecodeError: 280 matchJSON = json.loads(json.dumps(tidx['matchJSON'])) 341 failmsg = 'Key not found in json output: {}: {}\nMatching against output: {}' 662 testlist = json.load(test_data, object_pairs_hook=OrderedDict) 663 except json.JSONDecodeError as jde: 816 json.dump(testlist, outfile, indent=4) 858 Otherwise, glob for all json file [all...] |
/linux-master/tools/perf/tests/shell/lib/ |
H A D | perf_metric_validation.py | 4 import json namespace 79 data = json.loads(f.read()) 92 json.dump(data, 366 result = json.loads(json_string) 438 data = json.loads(cmd.stdout) 577 reportf = Path.joinpath(outpath, 'perf_report.json') 578 fullrule = Path.joinpath(outpath, 'full_rule.json') 579 datafile = Path.joinpath(outpath, 'perf_data.json')
|
/linux-master/tools/perf/pmu-events/ |
H A D | metric.py | 5 import json namespace 14 """Returns a perf json file encoded representation.""" 473 class _MetricJsonEncoder(json.JSONEncoder): 479 return json.JSONEncoder.default(self, o) 486 the json they aren't encoded. Metrics may be in multiple groups 511 return json.dumps(sorted(self.Flatten()), indent=2, cls=_MetricJsonEncoder) 532 """A simple json metric expression decoder. 534 Converts a json encoded metric expression by way of python's ast and
|
H A D | jevents.py | 7 import json namespace 27 # JsonEvent. Architecture standard events are in json files in the top 199 """Representation of an event loaded from a json file dictionary.""" 202 """Constructor passed the dictionary of parsed json values.""" 437 """Read json events from the specified file.""" 439 events = json.load(open(path), object_hook=JsonEvent) 462 if item.is_file() and item.name.endswith('.json'): 591 if topic.endswith('metrics.json'): 593 return removesuffix(topic, '.json').replace('-', ' ') 605 # Ignore other directories. If the file name does not have a .json [all...] |
/linux-master/tools/perf/tests/shell/ |
H A D | stat+json_output.sh | 16 stat_output=$(mktemp /tmp/__perf_test.stat_output.json.XXXXX) 38 echo -n "Checking json output: no args " 46 echo -n "Checking json output: system wide " 59 echo -n "Checking json output: system wide no aggregation " 72 echo -n "Checking json output: interval " 81 echo -n "Checking json output: event " 89 echo -n "Checking json output: per core " 102 echo -n "Checking json output: per thread " 115 echo -n "Checking json output: per cache_instance " 127 echo -n "Checking json outpu [all...] |
/linux-master/tools/net/ynl/ |
H A D | ethtool.py | 5 import json namespace 96 if args.json: 124 parser.add_argument('--json', action=argparse.BooleanOptionalAction)
|
/linux-master/ |
H A D | Makefile | 721 ifneq ($(filter all modules nsdeps %compile_commands.json clang-%,$(MAKECMDGOALS)),) 1480 compile_commands.json .thinlto-cache rust/test \ 1481 rust-project.json .vmlinux.objs .vmlinux.export.c 1619 @echo ' rust-analyzer - Generate rust-project.json rust-analyzer support file' 1781 compile_commands.json: $(extmod_prefix)compile_commands.json 1782 PHONY += compile_commands.json 1786 $(KBUILD_EXTMOD)/compile_commands.json $(KBUILD_EXTMOD)/.thinlto-cache 1806 @echo ' rust-analyzer - generate rust-project.json rust-analyzer support file' 1974 $(extmod_prefix)compile_commands.json [all...] |
/linux-master/tools/perf/ |
H A D | builtin-list.c | 509 bool json = false; local 512 OPT_BOOLEAN('j', "json", &json, "JSON encode events and metrics"), 556 if (json) {
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_progs.c | 682 { "json-summary", ARG_JSON_SUMMARY, "FILE", 0, "Write report in json format to this file."}, 883 env->json = fopen(arg, "w"); 884 if (env->json == NULL) { 885 perror("Failed to open json summary file"); 1345 if (env->json) { 1346 w = jsonw_new(env->json); 1387 if (env->json) 1388 fclose(env->json);
|
H A D | test_progs.h | 117 FILE *json; member in struct:test_env
|
H A D | test_offload.py | 20 import json namespace 146 params += "%s " % (flags["json"]) 159 out = json.loads(stdout) 169 return tool("bpftool", args, {"json":"-p"}, JSON=JSON, ns=ns, 230 return tool("ip", args, {"json":"-j"}, JSON=JSON, ns=ns, 234 return tool("tc", args, {"json":"-p"}, JSON=JSON, ns=ns,
|
/linux-master/arch/loongarch/ |
H A D | Makefile | 104 KBUILD_RUSTFLAGS += --target=$(objtree)/scripts/target.json
|
/linux-master/arch/x86/ |
H A D | Makefile | 74 KBUILD_RUSTFLAGS += --target=$(objtree)/scripts/target.json
|
/linux-master/rust/ |
H A D | Makefile | 418 $(if $(KBUILD_EXTMOD),$(extmod_prefix),$(objtree))/rust-project.json 440 $(obj)/core.o: scripts/target.json
|
/linux-master/tools/testing/kunit/ |
H A D | kunit_tool_test.py | 15 import json namespace 551 return json.loads(json_obj)
|
/linux-master/scripts/ |
H A D | Makefile.lib | 417 DT_TMP_SCHEMA := $(objtree)/$(DT_BINDING_DIR)/processed-schema.json
|
/linux-master/tools/testing/selftests/net/forwarding/ |
H A D | lib.sh | 94 # Old versions of tc produce invalid json output for mpls lse statistics 115 echo "SKIP: iproute2 too old; tc-flower produces invalid json output for extended MPLS filters" 188 [ 0 -ne $(ethtool --json -S $dev --all-groups --src pmac 2>/dev/null \ 860 ethtool --json -S $dev --groups $grp -- --src $src | \
|