Home
last modified time | relevance | path

Searched refs:spec (Results 1 – 25 of 45) sorted by relevance

12

/tools/testing/selftests/bpf/
A Dtest_loader.c143 free(spec->priv.name); in free_test_spec()
414 memset(spec, 0, sizeof(*spec)); in parse_test_spec()
636 spec->unpriv.expect_failure = spec->priv.expect_failure; in parse_test_spec()
639 spec->unpriv.retval = spec->priv.retval; in parse_test_spec()
640 spec->unpriv.execute = spec->priv.execute; in parse_test_spec()
644 clone_msgs(&spec->priv.expect_msgs, &spec->unpriv.expect_msgs); in parse_test_spec()
646 clone_msgs(&spec->priv.expect_xlated, &spec->unpriv.expect_xlated); in parse_test_spec()
648 clone_msgs(&spec->priv.jited, &spec->unpriv.jited); in parse_test_spec()
651 spec->valid = true; in parse_test_spec()
944 struct test_subspec *subspec = unpriv ? &spec->unpriv : &spec->priv; in run_subtest()
[all …]
/tools/lib/bpf/
A Drelo_core.c278 memset(spec, 0, sizeof(*spec)); in bpf_core_parse_spec()
310 acc = &spec->spec[0]; in bpf_core_parse_spec()
340 acc = &spec->spec[spec->len]; in bpf_core_parse_spec()
377 spec->spec[spec->len].type_id = id; in bpf_core_parse_spec()
378 spec->spec[spec->len].idx = access_idx; in bpf_core_parse_spec()
518 spec->raw_spec[spec->raw_len++] = i; in bpf_core_match_member()
532 targ_acc = &spec->spec[spec->len++]; in bpf_core_match_member()
702 acc = &spec->spec[spec->len - 1]; in bpf_core_calc_field_relo()
876 t = btf_type_by_id(spec->btf, spec->spec[0].type_id); in bpf_core_calc_enumval_relo()
1225 if (spec->spec[i].name) in bpf_core_format_spec()
[all …]
A Dusdt.bpf.h97 struct __bpf_usdt_spec *spec; in bpf_usdt_arg_cnt() local
105 if (!spec) in bpf_usdt_arg_cnt()
108 return spec->arg_cnt; in bpf_usdt_arg_cnt()
118 struct __bpf_usdt_spec *spec; in bpf_usdt_arg_size() local
126 if (!spec) in bpf_usdt_arg_size()
132 if (arg_num >= spec->arg_cnt) in bpf_usdt_arg_size()
150 struct __bpf_usdt_spec *spec; in bpf_usdt_arg() local
162 if (!spec) in bpf_usdt_arg()
168 if (arg_num >= spec->arg_cnt) in bpf_usdt_arg()
241 if (!spec) in bpf_usdt_cookie()
[all …]
A Drelo_core.h32 struct bpf_core_accessor spec[BPF_CORE_SPEC_MAX_LEN]; member
95 struct bpf_core_spec *spec);
97 int bpf_core_format_spec(char *buf, size_t buf_sz, const struct bpf_core_spec *spec);
A Dusdt.c240 struct usdt_spec spec; member
577 static int parse_usdt_spec(struct usdt_spec *spec, const struct usdt_note *note, __u64 usdt_cookie);
787 err = parse_usdt_spec(&target->spec, &note, usdt_cookie); in collect_usdt_targets()
1050 if (is_new && bpf_map_update_elem(spec_map_fd, &spec_id, &target->spec, BPF_ANY)) { in usdt_manager_attach_usdt()
1198 spec->usdt_cookie = usdt_cookie; in parse_usdt_spec()
1199 spec->arg_cnt = 0; in parse_usdt_spec()
1203 if (spec->arg_cnt >= USDT_MAX_ARG_CNT) { in parse_usdt_spec()
1209 arg = &spec->args[spec->arg_cnt]; in parse_usdt_spec()
1210 len = parse_usdt_arg(s, spec->arg_cnt, arg, &arg_sz); in parse_usdt_spec()
1224 spec->arg_cnt, s, arg_sz); in parse_usdt_spec()
[all …]
/tools/net/sunrpc/xdrgen/generators/
A Dpointer.py34 type=kernel_c_type(field.spec),
57 type=kernel_c_type(field.spec),
66 type=kernel_c_type(field.spec),
102 type=field.spec.type_name,
135 type=field.spec.type_name,
145 type=field.spec.type_name,
155 type=field.spec.type_name,
182 type=field.spec.type_name,
214 type=field.spec.type_name,
223 type=field.spec.type_name,
[all …]
A Dstruct.py34 type=kernel_c_type(field.spec),
57 type=kernel_c_type(field.spec),
66 type=kernel_c_type(field.spec),
102 type=field.spec.type_name,
135 type=field.spec.type_name,
145 type=field.spec.type_name,
155 type=field.spec.type_name,
182 type=field.spec.type_name,
214 type=field.spec.type_name,
223 type=field.spec.type_name,
[all …]
A Dtypedef.py27 type=kernel_c_type(node.spec),
45 type=node.spec.type_name,
54 type=node.spec.type_name,
91 type=node.spec.type_name,
100 type=node.spec.type_name,
119 type=node.spec.type_name,
151 type=node.spec.type_name,
161 type=node.spec.type_name,
180 type=node.spec.type_name,
212 type=node.spec.type_name,
[all …]
A Dunion.py31 type=node.spec.type_name,
32 classifier=node.spec.c_classifier,
48 type=node.arm.spec.type_name,
49 classifier=node.arm.spec.c_classifier,
100 type=node.arm.spec.type_name,
101 classifier=node.arm.spec.c_classifier,
130 type=default_case.arm.spec.type_name,
131 classifier=default_case.arm.spec.c_classifier,
147 node.discriminant.spec.type_name in big_endian,
184 type=node.arm.spec.type_name,
[all …]
A D__init__.py56 def kernel_c_type(spec: _XdrTypeSpecifier) -> str:
67 if spec.type_name in builtin_native_c_type:
68 return builtin_native_c_type[spec.type_name]
69 return spec.type_name
/tools/perf/util/
A Dtrace-event-scripting.c32 char spec[]; member
37 static struct script_spec *script_spec__new(const char *spec, in script_spec__new() argument
40 struct script_spec *s = malloc(sizeof(*s) + strlen(spec) + 1); in script_spec__new()
43 strcpy(s->spec, spec); in script_spec__new()
55 static struct script_spec *script_spec__find(const char *spec) in script_spec__find() argument
60 if (strcasecmp(s->spec, spec) == 0) in script_spec__find()
69 s = script_spec__find(spec); in script_spec_register()
73 s = script_spec__new(spec, ops); in script_spec_register()
81 struct scripting_ops *script_spec__lookup(const char *spec) in script_spec__lookup() argument
83 struct script_spec *s = script_spec__find(spec); in script_spec__lookup()
[all …]
A Dbranch.c216 const char *branch_spec_desc(int spec) in branch_spec_desc() argument
225 if (spec >= 0 && spec < PERF_BR_SPEC_MAX) in branch_spec_desc()
226 return branch_spec_outcomes[spec]; in branch_spec_desc()
A Dbranch.h25 u64 spec:2; member
94 const char *branch_spec_desc(int spec);
A Dexpr.l110 spec \\{sch}
112 symbol ({spec}|{sym})+
A Dtrace-event.h116 struct scripting_ops *script_spec__lookup(const char *spec);
117 int script_spec__for_each(int (*cb)(struct scripting_ops *ops, const char *spec));
/tools/net/sunrpc/xdrgen/
A Dxdr_ast.py196 spec: _XdrTypeSpecifier
219 spec: _XdrTypeSpecifier
245 spec: _XdrTypeSpecifier
268 spec: _XdrTypeSpecifier
273 return max_widths[self.spec.type_name]
617 spec = children[0]
625 spec = children[0]
636 spec = children[0]
639 return _XdrOptionalData(name, spec)
643 spec = children[0]
[all …]
/tools/verification/rvgen/
A D__main__.py44 print("Opening and parsing the specification file %s" % params.spec)
46 monitor = dot2k(params.spec, params.monitor_type, vars(params))
48 monitor = ltl2k(params.spec, params.monitor_type, vars(params))
/tools/net/ynl/pyynl/
A Dcli.py113 spec = f"{spec_dir()}/{args.family}.yaml"
114 if args.schema is None and spec.startswith(sys_schema_dir):
119 spec = args.spec
120 if not os.path.isfile(spec):
123 ynl = YnlFamily(spec, args.schema, args.process_unknown,
A Dethtool.py51 for spec in desc:
53 field, name, tp = spec
55 field, name = spec
160 spec = os.path.join(spec_dir(), 'ethtool.yaml')
163 ynl = YnlFamily(spec, schema)
A Dynl_gen_c.py219 spec = self._attr_policy(policy)
509 spec = self._attr_policy(policy)
1327 elif 'sub-message' in spec:
1346 def _load_nested_set_nest(self, spec): argument
1348 nested = spec['nested-attributes']
1357 if 'type-value' in spec:
1377 "parent-sub-message": spec,
1415 elif 'sub-message' in spec:
1428 elif 'sub-message' in spec:
1482 spec.set_request()
[all …]
/tools/testing/selftests/breakpoints/
A Dstep_after_suspend_test.c161 struct itimerspec spec = {}; in suspend() local
170 spec.it_value.tv_sec = 5; in suspend()
171 err = timerfd_settime(timerfd, 0, &spec, NULL); in suspend()
/tools/testing/selftests/bpf/prog_tests/
A Dreg_bounds.c893 if (spec.init_subregs) in load_range_cmp_prog()
898 if (spec.init_subregs) in load_range_cmp_prog()
908 if (spec.setup_subregs) { in load_range_cmp_prog()
929 if (spec.setup_subregs) { in load_range_cmp_prog()
965 if (spec.compare_subregs) { in load_range_cmp_prog()
972 if (spec.compare_subregs) in load_range_cmp_prog()
982 if (spec.compare_subregs) { in load_range_cmp_prog()
999 if (spec.compare_subregs) { in load_range_cmp_prog()
1176 spec.compare_subregs ? "bc" : "bf", in parse_range_cmp_log()
1177 spec.compare_subregs ? "w0" : "r0", in parse_range_cmp_log()
[all …]
/tools/net/ynl/
A Dynl-regen.sh34 --spec $KDIR/${params[0]} $args -o $f
/tools/net/ynl/generated/
A DMakefile44 @$(TOOL) --mode user --header --spec $< -o $@ $(YNL_GEN_ARG_$*)
48 @$(TOOL) --mode user --source --spec $< -o $@ $(YNL_GEN_ARG_$*)
/tools/testing/kunit/
A Dkunit_kernel.py226 spec = importlib.util.spec_from_file_location(module_path, config_path)
227 assert spec is not None
228 config = importlib.util.module_from_spec(spec)
230 assert isinstance(spec.loader, importlib.abc.Loader)
231 spec.loader.exec_module(config)

Completed in 49 milliseconds

12