/linux-master/tools/writeback/ |
H A D | wb_monitor.py | 26 import json namespace 38 parser.add_argument('-j', '--json', action='store_true', 39 help='Output in json') 131 Stats.table_fmt = not args.json
|
/linux-master/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | sharedbuffer_configuration.py | 5 import json as j 121 def run_cmd(cmd, json=False): 123 if json: 129 return run_cmd(cmd, json=True)
|
/linux-master/tools/perf/scripts/python/ |
H A D | flamegraph.py | 25 import json namespace 133 stacks_json = json.dumps(self.stack, default=lambda x: x.to_json()) 141 options_json = json.dumps(options) 203 output_fn = self.args.output or "stacks.json" 221 default="html", choices=["json", "html"],
|
H A D | gecko.py | 19 import json namespace 309 # the data into the final json object and print it out to stdout. 338 output_file = 'gecko_profile.json' 340 json.dump(gecko_profile_with_meta, f, indent=2) 347 json.dump(gecko_profile_with_meta, f, indent=2) 355 # start a local server to serve the gecko_profile.json file to the profiler.firefox.com
|
/linux-master/tools/testing/selftests/drivers/net/hw/ |
H A D | pp_alloc_fail.py | 92 g = tool("ethtool", "-g " + cfg.ifname, json=True)[0]
|
/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/testing/selftests/drivers/net/lib/py/ |
H A D | env.py | 45 self.dev = ip("link show dev " + self.env['NETIF'], json=True)[0] 97 self.dev = ip("link show dev " + self.env['NETIF'], json=True)[0]
|
/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 97 if args.json: 125 parser.add_argument('--json', action=argparse.BooleanOptionalAction)
|
/linux-master/ |
H A D | Makefile | 728 ifneq ($(filter all modules nsdeps %compile_commands.json clang-%,$(MAKECMDGOALS)),) 1494 compile_commands.json rust/test \ 1495 rust-project.json .vmlinux.objs .vmlinux.export.c 1633 @echo ' rust-analyzer - Generate rust-project.json rust-analyzer support file' 1796 compile_commands.json: $(extmod_prefix)compile_commands.json 1797 PHONY += compile_commands.json 1801 $(KBUILD_EXTMOD)/compile_commands.json 1821 @echo ' rust-analyzer - generate rust-project.json rust-analyzer support file' 1989 $(extmod_prefix)compile_commands.json [all...] |
/linux-master/tools/perf/ |
H A D | builtin-list.c | 525 bool json = false; local 528 OPT_BOOLEAN('j', "json", &json, "JSON encode events and metrics"), 572 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
|
/linux-master/arch/x86/ |
H A D | Makefile | 74 KBUILD_RUSTFLAGS += --target=$(objtree)/scripts/target.json
|
/linux-master/rust/ |
H A D | Makefile | 408 $(if $(KBUILD_EXTMOD),$(extmod_prefix),$(objtree))/rust-project.json 430 $(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/tools/testing/selftests/net/ |
H A D | bpf_offload.py | 20 import json namespace 149 params += "%s " % (flags["json"]) 164 out = json.loads(stdout) 174 return tool("bpftool", args, {"json":"-p"}, JSON=JSON, ns=ns, 235 return tool("ip", args, {"json":"-j"}, JSON=JSON, ns=ns, 239 return tool("tc", args, {"json":"-p"}, JSON=JSON, ns=ns,
|
/linux-master/scripts/ |
H A D | Makefile.lib | 421 DT_TMP_SCHEMA := $(objtree)/$(DT_BINDING_DIR)/processed-schema.json
|
/linux-master/tools/testing/selftests/net/forwarding/ |
H A D | lib.sh | 159 # Old versions of tc produce invalid json output for mpls lse statistics 180 echo "SKIP: iproute2 too old; tc-flower produces invalid json output for extended MPLS filters" 253 [ 0 -ne $(ethtool --json -S $dev --all-groups --src pmac 2>/dev/null \ 1006 ethtool --json -S $dev --groups $grp -- --src $src | \
|