| /tools/testing/selftests/bpf/progs/ |
| A D | res_spin_lock_fail.c | 33 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 D | async_stack_depth.c | 36 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 D | timer_lockup.c | 12 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 D | percpu_alloc_array.c | 7 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 D | wq_failures.c | 12 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 D | percpu_alloc_cgrp_local_storage.c | 7 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 D | wq.c | 34 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 D | percpu_alloc_fail.c | 24 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 D | arena_list.c | 24 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 D | timer.c | 32 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 D | timer_failure.c | 13 struct elem { struct 21 __type(value, struct elem); argument
|
| A D | local_storage_bench.c | 51 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 D | exceptions_fail.c | 99 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 D | verifier_private_stack.c | 13 struct elem { struct 22 __type(value, struct elem); argument
|
| /tools/net/ynl/pyynl/lib/ |
| A D | nlspec.py | 494 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 D | basic-gcs.c | 187 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 D | cs-etm-decoder.c | 447 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 D | bperf_cgroup.bpf.c | 85 __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 D | nft_concat_range.sh | 1219 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 D | mixer-test.c | 49 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 D | trace-event-perl.c | 284 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 D | arena_list.c | 15 struct elem { struct 22 struct elem __arena *n; in list_sum() argument
|
| /tools/gpio/ |
| A D | gpio-sloppy-logic-analyzer.sh | 129 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 D | utils.c | 70 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 D | hwmon_pmu.c | 164 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()
|