/linux-master/tools/testing/selftests/drivers/net/netdevsim/ |
H A D | ethtool-pause.sh | 19 s=$(ethtool --json -a $NSIM_NETDEV | jq '.[].statistics') 22 s=$(ethtool -I --json -a $NSIM_NETDEV | jq '.[].statistics') 27 s=$(ethtool -I --json -a $NSIM_NETDEV | jq '.[].statistics | length') 30 s=$(ethtool -I --json -a $NSIM_NETDEV | jq '.[].statistics.tx_pause_frames') 35 s=$(ethtool -I --json -a $NSIM_NETDEV | jq '.[].statistics | length') 38 s=$(ethtool -I --json -a $NSIM_NETDEV | jq '.[].statistics.rx_pause_frames') 40 s=$(ethtool -I --json -a $NSIM_NETDEV | jq '.[].statistics.tx_pause_frames')
|
H A D | ethtool-fec.sh | 73 $ETHTOOL --json --show-fec $NSIM_NETDEV | jq empty >>/dev/null 2>&1 78 s=$($ETHTOOL --json --show-fec $NSIM_NETDEV | jq '.[].config[]') 80 s=$($ETHTOOL --json --show-fec $NSIM_NETDEV | jq '.[].active[]') 86 s=$($ETHTOOL --json --show-fec $NSIM_NETDEV | jq '.[].config[]') 89 s=$($ETHTOOL --json --show-fec $NSIM_NETDEV | jq '.[].active[]')
|
/linux-master/tools/perf/tests/shell/ |
H A D | list.sh | 11 list_output=$(mktemp /tmp/__perf_test.list_output.json.XXXXX) 28 $PYTHON -m json.tool "${list_output}"
|
H A D | test_perf_data_converter_json.sh | 2 # 'perf data convert --to-json' command test 14 result=$(mktemp /tmp/__perf_test.output.json.XXXXX) 34 perf data convert --to-json "$result" --force -i "$perfdata" >/dev/null 2>&1 48 if $PYTHON -c "import json; json.load(open('$result'))" >/dev/null 2>&1 ; then
|
H A D | stat_metrics_values.sh | 12 rulefile=$(dirname $0)/lib/perf_metric_validation_rules.json
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_bpftool.py | 6 import json namespace 28 def _bpftool(args, json=True): 30 if json: 38 return _bpftool(args, json=False).decode("utf-8") 43 return json.loads(res)
|
H A D | test_bpftool_metadata.sh | 67 bpftool prog --json | grep '"metadata":{"a":"foo","b":1}' > /dev/null 79 bpftool prog --json | grep '"metadata":{"a":"bar","b":2}' > /dev/null
|
/linux-master/tools/net/ynl/ |
H A D | cli.py | 5 import json namespace 12 class YnlEncoder(json.JSONEncoder): 18 return json.JSONEncoder.default(self, obj) 26 parser.add_argument('--json', dest='json_text', type=str) 40 parser.add_argument('--output-json', action='store_true') 47 print(json.dumps(msg, cls=YnlEncoder)) 56 attrs = json.loads(args.json_text)
|
/linux-master/tools/testing/kunit/ |
H A D | kunit_json.py | 10 import json namespace 63 return json.dumps(test_group, indent=4)
|
H A D | kunit.py | 51 json: Optional[str] 243 if request.json: 247 if request.json == 'stdout': 250 with open(request.json, 'w') as f: 253 os.path.abspath(request.json)) 286 # $ kunit.py run --json 288 # $ kunit.py run --json suite_name 289 # would *not* pass suite_name as the filter_glob and print as json. 291 # $ kunit.py run --json=suite_name 292 # i.e. it would run all tests, and dump the json t [all...] |
/linux-master/scripts/ |
H A D | remove-stale-files | 31 rm -f rust/target.json
|
H A D | Makefile | 16 always-$(CONFIG_RUST) += target.json 19 $(obj)/target.json: scripts/generate_rust_target include/config/auto.conf FORCE
|
H A D | generate_rust_analyzer.py | 3 """generate_rust_analyzer - Generates the `rust-project.json` file for `rust-analyzer`. 7 import json namespace 162 json.dump(rust_project, sys.stdout, sort_keys=True, indent=4)
|
/linux-master/tools/testing/selftests/net/forwarding/ |
H A D | ethtool_rmon.sh | 47 before=$(ethtool --json -S $iface --groups rmon | \ 55 after=$(ethtool --json -S $iface --groups rmon | \ 92 done < <(ethtool --json -S $iface --groups rmon | \
|
H A D | ethtool_mm.sh | 63 ethtool --json --show-mm $tx | jq -r '.[]."verify-status"' | \ 67 ethtool --json --show-mm $tx | jq -r '.[]."tx-active"' | grep -q 'true' 98 ethtool --json --show-mm $tx | jq -r '.[]."verify-status"' | \ 102 ethtool --json --show-mm $tx | jq -r '.[]."tx-active"' | grep -q 'true' 136 ethtool --json --show-mm $tx | jq -r '.[]."verify-status"' | \ 140 ethtool --json --show-mm $tx | jq -r '.[]."tx-active"' | grep -q 'true' 167 rx_min_frag_size=$(ethtool --json --show-mm $iface | \
|
/linux-master/Documentation/devicetree/bindings/ |
H A D | Makefile | 67 $(obj)/processed-schema.json: $(DT_DOCS) $(src)/.yamllint check_dtschema_version FORCE 70 always-y += processed-schema.json 79 dt_compatible_check: $(obj)/processed-schema.json
|
/linux-master/scripts/clang-tools/ |
H A D | run-clang-tools.py | 9 compile_commands.json. 13 import json namespace 89 datastore = json.load(f)
|
H A D | gen_compile_commands.py | 8 """A tool for generating compile_commands.json in the Linux kernel.""" 11 import json namespace 18 _DEFAULT_OUTPUT = 'compile_commands.json' 38 usage = 'Creates a compile_commands.json database from kernel .cmd files' 157 used directly in the "directory" entry in compile_commands.json. 171 # kernel version). The compile_commands.json file is not interepreted 224 json.dump(sorted(compile_commands, key=lambda x: x["file"]), f, indent=2, sort_keys=True)
|
/linux-master/tools/testing/selftests/net/ |
H A D | devlink_port_split.py | 5 import json namespace 60 ports = json.loads(stdout)['port'] 84 values = list(json.loads(stdout)['port'].values())[0] 102 values = list(json.loads(stdout)['port'].values())[0] 266 validate_devlink_output(json.loads(stdout)) 267 devs = json.loads(stdout)['dev']
|
/linux-master/tools/perf/tests/shell/lib/ |
H A D | perf_json_output_lint.py | 7 import json namespace 68 for item in json.loads(input):
|
/linux-master/tools/cgroup/ |
H A D | iocost_monitor.py | 15 import json namespace 33 parser.add_argument('--json', action='store_true', 34 help='Output in json') 206 table_fmt = not args.json 210 if args.json: 256 output += json.dumps(iocstat.dict(now)) 273 output += '\n' + json.dumps(iocg_stat.dict(now, path))
|
/linux-master/tools/workqueue/ |
H A D | wq_monitor.py | 40 import json namespace 53 parser.add_argument('-j', '--json', action='store_true', 54 help='Output in json') 138 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
|