Home
last modified time | relevance | path

Searched refs:json (Results 1 – 25 of 76) sorted by relevance

1234

/linux/tools/testing/selftests/net/lib/py/
H A Dutils.py3 import json as _json
202 def tool(name, args, json=None, ns=None, host=None):
204 if json:
205 cmd_str += '--json '
208 if json:
213 def bpftool(args, json=None, ns=None, host=None):
214 return tool('bpftool', args, json=json, ns=ns, host=host)
217 def ip(args, json=None, ns=None, host=None):
220 return tool('ip', args, json
167 tool(name, args, json=None, ns=None, host=None) global() argument
178 bpftool(args, json=None, ns=None, host=None) global() argument
182 ip(args, json=None, ns=None, host=None) global() argument
188 ethtool(args, json=None, ns=None, host=None) global() argument
192 bpftrace(expr, json=None, ns=None, host=None, timeout=None) global() argument
[all...]
/linux/tools/testing/selftests/drivers/net/netdevsim/
H A Dethtool-pause.sh19 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 Dethtool-fec.sh73 $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/tools/perf/Documentation/
H A Dperf-data.txt30 --to-json::
57 perf data convert --to-json out.json --time 10%/2
61 perf data convert --to-json out.json --time 0%-10%
65 perf data convert --to-json out.json --time 10%/1,10%/2
69 perf data convert --to-json out.json --time 0%-10%,30%-40%
/linux/tools/perf/pmu-events/
H A DBuild30 # The input json/csv files
33 SRC_JSON := $(shell find $(SRC_DIR) -name '*.json' -o -name '*.csv')
35 SRC_JSON := $(shell find $(SRC_DIR)/common $(SRC_DIR)/test $(SRC_DIR)/$(JEVENTS_ARCH) -name '*.json
40 LEGACY_CACHE_JSON = $(OUTPUT)pmu-events/arch/common/common/legacy-cache.json
49 # Functions to extract the model from an extra-metrics.json or extra-metricgroups.json path.
50 model_name = $(shell echo $(1)|sed -e 's@.\+/\(.*\)/extra-metric.*\.json@\1@')
51 vendor_name = $(shell echo $(1)|sed -e 's@.\+/\(.*\)/[^/]*/extra-metric.*\.json@\1@')
56 ZEN_METRICS = $(foreach x,$(ZENS),$(OUTPUT)$(x)/extra-metrics.json)
57 ZEN_METRICGROUPS = $(foreach x,$(ZENS),$(OUTPUT)$(x)/extra-metricgroups.json)
73 ARM_METRICS = $(foreach x,$(ARMS),$(OUTPUT)$(x)/extra-metrics.json)
[all …]
H A DREADME11 - Regular files with '.json' extension in the name are assumed to be
28 the topic. Eg: "Floating-point.json".
34 cache.json memory.json virtual-memory.json
35 frontend.json pipeline.json
46 is derived from JSON file name, 'power8.json').
128 File/path/name.json.
H A Dmake_legacy_cache.py3 import json
129 print(json.dumps(events, indent=2))
H A Dmetric.py5 import json
34 for x in json.load(open(f"{directory}/{filename}")):
43 except json.decoder.JSONDecodeError:
52 for x in json.load(open(f"{root}/{filename}")):
57 except json.decoder.JSONDecodeError:
701 class MetricJsonEncoder(json.JSONEncoder):
707 return json.JSONEncoder.default(self, o)
709 return json.dumps(x, indent=2, cls=MetricJsonEncoder)
713 return json.dumps(x.ToMetricGroupDescriptions(), indent=2)
/linux/tools/testing/selftests/bpf/
H A Dtest_bpftool.py6 import json
28 def _bpftool(args, json=True): argument
30 if json:
38 return _bpftool(args, json=False).decode("utf-8")
43 return json.loads(res)
H A Dtest_bpftool_metadata.sh
/linux/tools/testing/selftests/drivers/net/hw/
H A Ddevlink_port_split.py5 import json
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']
H A Dethtool_mm.sh64 ethtool --json --show-mm $tx | jq -r '.[]."verify-status"' | \
68 ethtool --json --show-mm $tx | jq -r '.[]."tx-active"' | grep -q 'true'
99 ethtool --json --show-mm $tx | jq -r '.[]."verify-status"' | \
103 ethtool --json --show-mm $tx | jq -r '.[]."tx-active"' | grep -q 'true'
137 ethtool --json --show-mm $tx | jq -r '.[]."verify-status"' | \
141 ethtool --json --show-mm $tx | jq -r '.[]."tx-active"' | grep -q 'true'
168 rx_min_frag_size=$(ethtool --json --show-mm $iface | \
H A Dethtool_rmon.sh49 before=$(ethtool --json -S $iface --groups rmon | \
57 after=$(ethtool --json -S $iface --groups rmon | \
94 done < <(ethtool --json -S $iface --groups rmon | \
H A Ddevlink_rate_tc_bw.py56 import json
160 ports = json.loads(out)["port"]
/linux/tools/net/ynl/pyynl/
H A Dcli.py9 import json
75 class YnlEncoder(json.JSONEncoder):
82 return json.JSONEncoder.default(self, o)
226 io_group.add_argument('--json', dest='json_text', type=str,
230 io_group.add_argument('--output-json', action='store_true',
268 print(json.dumps(msg, cls=YnlEncoder))
283 attrs = json.loads(args.json_text)
337 ops = [ (item[0], json.loads(item[1]), args.flags or []) for item in args.multi ]
/linux/tools/perf/tests/shell/
H A Dtest_perf_data_converter_json.sh14 result=$(mktemp /tmp/__perf_test.output.json.XXXXX)
35 perf data convert --to-json "$result" --force -i "$perfdata"
48 cat "$perfdata" | perf data convert --to-json "$result" --force -i -
H A Dlist.sh11 list_output=$(mktemp /tmp/__perf_test.list_output.json.XXXXX)
31 $PYTHON -m json.tool "${list_output}" /dev/null
/linux/tools/perf/
H A D.gitignore39 pmu-events/arch/common/common/legacy-cache.json
46 pmu-events/arch/**/extra-metrics.json
47 pmu-events/arch/**/extra-metricgroups.json
/linux/tools/testing/selftests/drivers/net/lib/py/
H A Denv.py84 self.dev = ip("-d link show dev " + self.env['NETIF'], json=True)[0]
133 self.dev = ip("-d link show dev " + self.env['NETIF'], json=True)[0]
172 host=self.remote, json=True)[0]
224 v4 = ip("addr show to " + self.remote_addr_v["4"], json=True, host=self.remote)
226 v6 = ip("addr show to " + self.remote_addr_v["6"], json=True, host=self.remote)
283 data = ethtool("-c " + self.ifname, json=True)[0]
/linux/tools/testing/selftests/drivers/net/hw/lib/py/
H A Dlinkconfig.py
/linux/tools/cgroup/
H A Diocost_monitor.py15 import 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/tools/testing/kunit/
H A Dkunit_json.py10 import json
73 return json.dumps(test_group, indent=4)
/linux/tools/testing/selftests/damon/
H A Dsysfs_no_op_commit_break.py4 import json
25 return json.load(f), None
H A Ddrgn_dump_damon_status.py12 import json
217 print(json.dumps(status, indent=4))
220 json.dump(status, f, indent=4)
/linux/tools/testing/selftests/tc-testing/creating-testcases/
H A DAddingTestCases.txt10 template.json for the required JSON format for test cases.
16 directories named with the -D option) for .json files. Any test case
23 when defining the match pattern. Refer to the supplied json test files
24 for examples when in doubt. The match pattern is written in json, and
26 expression, but should be written using json syntax.

1234