Home
last modified time | relevance | path

Searched refs:elem (Results 1 – 25 of 31) sorted by relevance

12

/tools/testing/selftests/bpf/progs/
A Dres_spin_lock_fail.c33 if (!elem) in res_spin_lock_arg()
47 if (!elem) in res_spin_lock_AA()
61 if (!elem) in res_spin_lock_cond_AA()
76 if (!elem) in res_spin_lock_mismatch_1()
91 if (!elem) in res_spin_lock_mismatch_2()
107 if (!elem) in res_spin_lock_irq_mismatch_1()
124 if (!elem) in res_spin_lock_irq_mismatch_2()
139 if (!elem) in res_spin_lock_ooo()
160 if (!elem) in res_spin_lock_ooo_irq()
199 if (!elem) in res_spin_lock_bad_off()
[all …]
A Dasync_stack_depth.c36 struct hmap_elem *elem; in pseudo_call_check() local
39 elem = bpf_map_lookup_elem(&hmap, &(int){0}); in pseudo_call_check()
40 if (!elem) in pseudo_call_check()
44 return bpf_timer_set_callback(&elem->timer, timer_cb) + buf[0]; in pseudo_call_check()
51 struct hmap_elem *elem; in async_call_root_check() local
54 elem = bpf_map_lookup_elem(&hmap, &(int){0}); in async_call_root_check()
55 if (!elem) in async_call_root_check()
58 return bpf_timer_set_callback(&elem->timer, bad_timer_cb) + buf[0]; in async_call_root_check()
A Dtimer_lockup.c12 struct elem { struct
20 __type(value, struct elem); argument
27 __type(value, struct elem);
33 static int timer_cb1(void *map, int *k, struct elem *v) in timer_cb1()
45 static int timer_cb2(void *map, int *k, struct elem *v) in timer_cb2()
A Dpercpu_alloc_array.c7 struct elem { struct
16 __type(value, struct elem); argument
29 struct elem *e; in BPF_PROG()
53 struct elem *e; in BPF_PROG()
83 struct elem *e; in BPF_PROG()
113 struct elem *e; in BPF_PROG()
135 struct elem *e; in BPF_PROG()
A Dwq_failures.c12 struct elem { struct
20 __type(value, struct elem); argument
27 __type(value, struct elem);
55 struct elem *val; in __flag()
80 struct elem *val; in __flag()
A Dpercpu_alloc_cgrp_local_storage.c7 struct elem { struct
16 __type(value, struct elem); argument
27 struct elem *e; in BPF_PROG()
53 struct elem *e; in BPF_PROG()
82 struct elem *e; in BPF_PROG()
A Dwq.c34 struct elem { struct
43 __type(value, struct elem); argument
50 __type(value, struct elem);
59 struct elem init = {}, *val; in test_elem_callback()
130 struct elem *data = (struct elem *)value; in wq_cb_sleepable()
A Dpercpu_alloc_fail.c24 struct elem { struct
33 __type(value, struct elem); argument
43 struct elem *e; in BPF_PROG()
68 struct elem *e; in BPF_PROG()
92 struct elem *e; in BPF_PROG()
A Darena_list.c24 struct elem { struct
54 struct elem __arena *n = bpf_alloc(sizeof(*n)); in arena_list_add()
71 struct elem __arena *n; in arena_list_del()
A Dtimer.c32 struct elem { struct
40 __type(value, struct elem); argument
47 __type(value, struct elem);
54 __type(value, struct elem);
105 struct elem init = {}; in timer_cb1()
138 struct elem init = {}; in BPF_PROG2()
407 struct elem init; in race()
409 __builtin_memset(&init, 0, sizeof(struct elem)); in race()
A Dtimer_failure.c13 struct elem { struct
21 __type(value, struct elem); argument
A Dlocal_storage_bench.c51 static int do_lookup(unsigned int elem, struct loop_ctx *lctx) in do_lookup() argument
61 inner_map = bpf_map_lookup_elem(map, &elem); in do_lookup()
74 if (!elem) in do_lookup()
A Dexceptions_fail.c99 struct hmap_elem *elem; in reject_async_callback_throw() local
101 elem = bpf_map_lookup_elem(&hmap, &(int){0}); in reject_async_callback_throw()
102 if (!elem) in reject_async_callback_throw()
104 return bpf_timer_set_callback(&elem->timer, timer_cb); in reject_async_callback_throw()
A Dverifier_private_stack.c13 struct elem { struct
22 __type(value, struct elem); argument
/tools/net/ynl/pyynl/lib/
A Dnlspec.py494 def new_enum(self, elem): argument
500 def new_struct(self, elem): argument
519 if 'value' in elem:
531 if 'notify' in elem or 'event' in elem:
537 elif 'do' in elem or 'dump' in elem:
538 mode = elem['do'] if 'do' in elem else elem['dump']
582 for elem in definitions:
583 if elem['type'] == 'enum' or elem['type'] == 'flags':
584 self.consts[elem['name']] = self.new_enum(elem)
586 self.consts[elem['name']] = self.new_struct(elem)
[all …]
/tools/testing/selftests/arm64/gcs/
A Dbasic-gcs.c187 int elem; in map_guarded_stack() local
202 elem = (page_size / sizeof(uint64_t)) - 1; in map_guarded_stack()
203 if (buf[elem]) { in map_guarded_stack()
204 ksft_print_msg("Last entry is 0x%llx not 0x0\n", buf[elem]); in map_guarded_stack()
209 elem--; in map_guarded_stack()
213 if (buf[elem] != expected_cap) { in map_guarded_stack()
215 buf[elem], expected_cap); in map_guarded_stack()
218 ksft_print_msg("cap token is 0x%llx\n", buf[elem]); in map_guarded_stack()
221 for (elem = 0; elem < page_size / sizeof(uint64_t) - 2; elem++) { in map_guarded_stack()
222 if (!buf[elem]) in map_guarded_stack()
[all …]
/tools/perf/util/cs-etm-decoder/
A Dcs-etm-decoder.c447 switch (elem->isa) { in cs_etm_decoder__buffer_range()
465 packet->start_addr = elem->st_addr; in cs_etm_decoder__buffer_range()
466 packet->end_addr = elem->en_addr; in cs_etm_decoder__buffer_range()
472 if (elem->last_i_type == OCSD_INSTR_BR || elem->last_i_type == OCSD_INSTR_BR_INDIRECT) in cs_etm_decoder__buffer_range()
544 const ocsd_generic_trace_elem *elem, in cs_etm_decoder__set_tid() argument
556 if (elem->context.ctxt_id_valid) in cs_etm_decoder__set_tid()
557 tid = elem->context.context_id; in cs_etm_decoder__set_tid()
560 if (elem->context.vmid_valid) in cs_etm_decoder__set_tid()
561 tid = elem->context.vmid; in cs_etm_decoder__set_tid()
600 switch (elem->elem_type) { in cs_etm_decoder__gen_trace_elem_printer()
[all …]
/tools/perf/util/bpf_skel/
A Dbperf_cgroup.bpf.c85 __u32 *elem; in get_cgroup_v1_idx() local
108 elem = bpf_map_lookup_elem(&cgrp_idx, &cgrp_id); in get_cgroup_v1_idx()
109 if (!elem) in get_cgroup_v1_idx()
112 cgrps[cnt++] = *elem; in get_cgroup_v1_idx()
123 __u32 *elem; in get_cgroup_v2_idx() local
133 elem = bpf_map_lookup_elem(&cgrp_idx, &cgrp_id); in get_cgroup_v2_idx()
134 if (!elem) in get_cgroup_v2_idx()
137 cgrps[cnt++] = *elem; in get_cgroup_v2_idx()
/tools/testing/selftests/net/netfilter/
A Dnft_concat_range.sh1219 local elem="$1"
1273 local elem="$1"
1290 local elem="$1"
1318 local elem=""
1330 elem="$(format)"
1331 add "$elem" || return 1
1631 local elem=""
1637 elem="$(format)"
1638 add "$elem" || return 1
1829 nft "get element inet filter test { $elem }" | grep -q "$elem"
[all …]
/tools/testing/selftests/alsa/
A Dmixer-test.c49 int elem; member
139 ctl_data->elem = ctl; in find_controls()
413 ctl->card->card_name, ctl->elem); in test_ctl_get_value()
421 ctl->card->card_name, ctl->elem); in test_ctl_get_value()
437 ctl->card->card_name, ctl->elem); in test_ctl_get_value()
477 ctl->card->card_name, ctl->elem); in test_ctl_name()
741 ctl->card->card_name, ctl->elem); in test_ctl_write_default()
891 ctl->card->card_name, ctl->elem); in test_ctl_write_valid()
1103 ctl->card->card_name, ctl->elem); in test_ctl_write_invalid()
1109 ctl->card->card_name, ctl->elem); in test_ctl_event_missing()
[all …]
/tools/perf/util/scripting-engines/
A Dtrace-event-perl.c284 HV *elem; in perl_process_callchain() local
290 elem = newHV(); in perl_process_callchain()
291 if (!elem) in perl_process_callchain()
294 if (!hv_stores(elem, "ip", newSVuv(node->ip))) { in perl_process_callchain()
295 hv_undef(elem); in perl_process_callchain()
302 hv_undef(elem); in perl_process_callchain()
310 !hv_stores(elem, "sym", newRV_noinc((SV*)sym))) { in perl_process_callchain()
312 hv_undef(elem); in perl_process_callchain()
328 if (!hv_stores(elem, "dso", newSVpv(dsoname,0))) { in perl_process_callchain()
329 hv_undef(elem); in perl_process_callchain()
[all …]
/tools/testing/selftests/bpf/prog_tests/
A Darena_list.c15 struct elem { struct
22 struct elem __arena *n; in list_sum() argument
/tools/gpio/
A Dgpio-sloppy-logic-analyzer.sh129 IFS='+'; for elem in $trig; do
130 chan=${elem%[lhfrLHFR]}
131 mode=${elem#$chan}
133 [ "$chan" != "$elem" ] && [ "$chan" -le $max_chans ] || fail "Trigger syntax error: $elem"
/tools/testing/selftests/filesystems/
A Dutils.c70 void *elem; member
84 list->elem = NULL; in list_init()
251 struct id_map *map = iterator->elem; in map_ids_from_idmap()
324 uid_mapl.elem = &uid_map; in get_userns_fd()
325 gid_mapl.elem = &gid_map; in get_userns_fd()
/tools/perf/util/
A Dhwmon_pmu.c164 const char **elem; in parse_hwmon_filename() local
189 elem = bsearch(&fn_type, hwmon_type_strs + 1, ARRAY_SIZE(hwmon_type_strs) - 1, in parse_hwmon_filename()
191 if (!elem) { in parse_hwmon_filename()
197 *type = elem - &hwmon_type_strs[0]; in parse_hwmon_filename()
209 elem = bsearch(fn_item, hwmon_item_strs + 1, ARRAY_SIZE(hwmon_item_strs) - 1, in parse_hwmon_filename()
211 if (!elem) { in parse_hwmon_filename()
216 *item = elem - &hwmon_item_strs[0]; in parse_hwmon_filename()

Completed in 38 milliseconds

12