Home
last modified time | relevance | path

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

1234

/linux-6.15/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[]')
H A Dethtool-features.sh18 s=$(ethtool --json -k $NSIM_NETDEV | jq ".[].\"$feat\".active" 2>/dev/null)
21 s=$(ethtool --json -k $NSIM_NETDEV | jq ".[].\"$feat\".fixed" 2>/dev/null)
/linux-6.15/tools/testing/selftests/net/lib/py/
H A Dutils.py4 import json as _json
167 def tool(name, args, json=None, ns=None, host=None): argument
169 if json:
173 if json:
178 def ip(args, json=None, ns=None, host=None): argument
181 return tool('ip', args, json=json, host=host)
184 def ethtool(args, json=None, ns=None, host=None): argument
185 return tool('ethtool', args, json=json, ns=ns, host=host)
/linux-6.15/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.sh67 bpftool prog --json | grep '"metadata":{"a":"foo","b":1}' > /dev/null
79 bpftool prog --json | grep '"metadata":{"a":"bar","b":2}' > /dev/null
/linux-6.15/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 Dnic_performance.py34 import json
89 send_data = json.loads(send_output)
100 receive_data = json.loads(receive_output)
/linux-6.15/tools/net/ynl/pyynl/
H A Dcli.py5 import json
33 class YnlEncoder(json.JSONEncoder):
39 return json.JSONEncoder.default(self, obj)
95 print(json.dumps(msg, cls=YnlEncoder))
110 attrs = json.loads(args.json_text)
144 ops = [ (item[0], json.loads(item[1]), args.flags or []) for item in args.multi ]
/linux-6.15/tools/perf/pmu-events/
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.
/linux-6.15/tools/testing/kunit/
H A Dkunit.py51 json: Optional[str]
252 if request.json:
256 if request.json == 'stdout':
259 with open(request.json, 'w') as f:
262 os.path.abspath(request.json))
476 json=cli_args.json,
525 json=cli_args.json,
553 json=cli_args.json, summary=cli_args.summary,
H A Dkunit_json.py10 import json
63 return json.dumps(test_group, indent=4)
/linux-6.15/tools/perf/tests/shell/
H A Dlist.sh11 list_output=$(mktemp /tmp/__perf_test.list_output.json.XXXXX)
31 $PYTHON -m json.tool "${list_output}" /dev/null
H A Dtest_perf_data_converter_json.sh14 result=$(mktemp /tmp/__perf_test.output.json.XXXXX)
34 perf data convert --to-json "$result" --force -i "$perfdata" >/dev/null 2>&1
/linux-6.15/Documentation/devicetree/bindings/
H A Dwriting-schema.rst3 Writing Devicetree Bindings in json-schema
6 Devicetree bindings are written using json-schema vocabulary. Schema files are
16 Each schema doc is a structured json-schema which is defined by a set of
18 top-level json-schema properties used are:
21 A json-schema unique identifier string. The string must be a valid
77 Optional. A json-schema used to match nodes for applying the
136 binding. Each property contains a set of constraints using json-schema
153 The default for arrays in json-schema is they are variable-sized and allow more
195 schema for the schema) to ensure they are both valid json-schema and valid
226 json-schema Resources
[all …]
H A DMakefile62 $(obj)/processed-schema.json: $(DT_DOCS) check_dtschema_version FORCE
72 always-y += processed-schema.json
81 dt_compatible_check: $(obj)/processed-schema.json
/linux-6.15/tools/testing/selftests/drivers/net/lib/py/
H A Denv.py65 self.dev = ip("-d link show dev " + self.env['NETIF'], json=True)[0]
125 self.dev = ip("-d link show dev " + self.env['NETIF'], json=True)[0]
213 v4 = ip("addr show to " + self.remote_addr_v["4"], json=True, host=self.remote)
215 v6 = ip("addr show to " + self.remote_addr_v["6"], json=True, host=self.remote)
274 data = ethtool("-c " + self.ifname, json=True)[0]
H A Dload.py49 … pkt_start = ip("-s link show dev " + self.env.ifname, json=True)[0]["stats64"]["rx"]["packets"]
52 … pkt_now = ip("-s link show dev " + self.env.ifname, json=True)[0]["stats64"]["rx"]["packets"]
/linux-6.15/tools/testing/selftests/drivers/net/hw/lib/py/
H A Dlinkconfig.py8 import json
28 partner_json_output = ip("addr show", json=True, host=self.cfg.remote)
199 process = ethtool(self.cfg.ifname, json=True)
213 process = ethtool(self.partner_netif, json=True, host=self.cfg.remote)
/linux-6.15/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-6.15/scripts/
H A DMakefile16 always-$(CONFIG_RUST) += target.json
19 $(obj)/target.json: scripts/generate_rust_target include/config/auto.conf FORCE
/linux-6.15/scripts/clang-tools/
H A Drun-clang-tools.py13 import json
89 datastore = json.load(f)
/linux-6.15/tools/perf/scripts/python/
H A Dflamegraph.py25 import json
133 stacks_json = json.dumps(self.stack, default=lambda x: x.to_json())
141 options_json = json.dumps(options)

1234