Home
last modified time | relevance | path

Searched +full:json +full:- +full:schema (Results 1 – 12 of 12) sorted by relevance

/linux/tools/net/ynl/pyynl/
H A Dcli.py2 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
9 import json
17 # pylint: disable=no-name-in-module,wrong-import-position
22 # pylint: disable=too-few-public-methods,too-many-locals
49 class YnlEncoder(json.JSONEncoder):
50 """A custom encoder for emitting JSON with ynl-specific instance types"""
56 return json.JSONEncoder.default(self, o)
65 attr_info = f'{prefix}- {color(attr_name, Colors.BOLD)}: {attr.type}'
78 if attr.type == 'nest' and 'nested-attributes' in attr.yaml:
79 nested_set_name = attr.yaml['nested-attributes']
[all …]
H A Dethtool.py
/linux/Documentation/devicetree/bindings/
H A DMakefile1 # SPDX-License-Identifier: GPL-2.0
2 DT_DOC_CHECKER ?= dt-doc-validate
3 DT_EXTRACT_EX ?= dt-extract-example
4 DT_MK_SCHEMA ?= dt-mk-schema
19 $(DT_DOC_CHECKER) --version 2>/dev/null || echo 0; } | sort -Vc >/dev/null || \
28 find_all_cmd = find $(src) \( -name '*.yaml' ! \
29 -name 'processed-schema*' \)
33 grep -F -e "$(subst :," -e ",$(DT_SCHEMA_FILES))" | \
36 $(shell $(find_cmd) | xargs grep -l '^examples:'))
40 xargs -n200 -P$$(nproc) \
[all …]
H A D.gitignore1 # SPDX-License-Identifier: GPL-2.0-only
3 /processed-schema*.yaml
4 /processed-schema*.json
7 # We don't want to ignore the following even if they are dot-files
/linux/tools/perf/scripts/python/
H A Dgecko.py1 # gecko.py - Convert perf record output to Firefox's gecko profile format
2 # SPDX-License-Identifier: GPL-2.0
9 # perf record -a -g -F 99 sleep 60
14 # perf script gecko -F 99 -a sleep 60
19 import json
32 # Add the Perf-Trace-Util library to the Python path
34 '/scripts/python/Perf-Trace-Util/lib/Perf/Trace')
48 # https://github.com/firefox-devtools/profiler/blob/53970305b51b9b472e26d7457fee1d66cd4e2737/src/ty…
53 PRODUCT = os.popen('uname -op').read().strip()
68 # https://github.com/firefox-devtools/profiler/blob/53970305b51b9b472e26d7457fee1d66cd4e2737/src/ty…
[all …]
/linux/tools/testing/selftests/net/lib/py/
H A Dnsim.py1 # SPDX-License-Identifier: GPL-2.0
4 import json
18 # In case udev renamed the netdev to according to new schema,
30 ret = ip("-d -j link show dev %s" % ifname, ns=ns)
31 self.dev = json.loads(ret.stdout)[0]
/linux/Documentation/netlink/
H A Dgenetlink.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 ---
4 $id: http://kernel.org/schemas/netlink/genetlink-legacy.yaml#
5 $schema: https://json-schema.org/draft-07/schema
11 pattern: ^[0-9a-z-]+$
15 len-or-define:
17 pattern: ^[0-9A-Za-z_-]+( - 1)?$
19 len-or-limit:
20 # literal int, const name, or limit based on fixed-width type
21 # e.g. u8-min, u16-max, etc.
[all …]
H A Dgenetlink-c.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 ---
4 $id: http://kernel.org/schemas/netlink/genetlink-c.yaml#
5 $schema: https://json-schema.org/draft-07/schema
12 len-or-define:
14 pattern: ^[0-9A-Za-z_-]+( - 1)?$
16 len-or-limit:
17 # literal int, const name, or limit based on fixed-width type
18 # e.g. u8-min, u16-max, etc.
20 pattern: ^[0-9A-Za-z_-]+$
[all …]
H A Dgenetlink-legacy.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 ---
4 $id: http://kernel.org/schemas/netlink/genetlink-legacy.yaml#
5 $schema: https://json-schema.org/draft-07/schema
11 pattern: ^[0-9a-z-]+$
15 len-or-define:
17 pattern: ^[0-9A-Za-z_-]+( - 1)?$
19 len-or-limit:
20 # literal int, const name, or limit based on fixed-width type
21 # e.g. u8-min, u16-max, etc.
[all …]
H A Dnetlink-raw.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 ---
4 $id: http://kernel.org/schemas/netlink/netlink-raw.yaml#
5 $schema: https://json-schema.org/draft-07/schema
11 pattern: ^[0-9a-z-]+$
12 name-cap:
14 pattern: ^[0-9a-zA-Z-]+$
18 len-or-define:
20 pattern: ^[0-9A-Za-z_-]+( - 1)?$
22 len-or-limit:
[all …]
/linux/
H A DMakefile1 # SPDX-License-Identifier: GPL-2.0
5 EXTRAVERSION = -rc4
14 ifeq ($(filter output-sync,$(.FEATURES)),)
28 # Most importantly: sub-Makefiles should only ever modify files in
31 # unavoidable when linking the built-in.a targets which finally
41 this-makefile := $(lastword $(MAKEFILE_LIST))
42 abs_srctree := $(realpath $(dir $(this-makefile)))
47 # Do not use make's built-in rules and variables
48 # (this increases performance and avoids hard-to-debug behaviour)
49 MAKEFLAGS += -rR
[all …]
/linux/tools/net/ynl/pyynl/lib/
H A Dynl.py1 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
3 # pylint: disable=missing-class-docstring, missing-function-docstring
4 # pylint: disable=too-many-branches, too-many-locals, too-many-instance-attributes
5 # pylint: disable=too-many-lines
39 # pylint: disable=too-few-public-methods
121 'binary', 'string', 'nul-string',
122 'nested', 'nested-array',
128 self.error = -nl_msg.error
154 pol = ynl.get_policy('page-pool-stats-get', 'do')
160 nested). Optional attributes depending on the 'type': min-value,
[all …]