Home
last modified time | relevance | path

Searched defs:key (Results 1 – 25 of 317) sorted by relevance

12345678910>>...13

/tools/testing/selftests/bpf/progs/
Dmap_kptr_fail.c28 int key = 0; in size_not_bpf_dw() local
43 int key = 0, id; in non_const_var_off() local
62 int key = 0, id; in non_const_var_off_kptr_xchg() local
81 int key = 0; in misaligned_access_write() local
97 int key = 0; in misaligned_access_read() local
112 int key = 0, id; in reject_var_off_store() local
136 int key = 0; in reject_bad_type_match() local
156 int key = 0; in marked_as_untrusted_or_null() local
172 int key = 0; in correct_btf_id_check_size() local
190 int key = 0; in inherit_untrusted_on_walk() local
[all …]
Dtest_tunnel_kern.c61 struct bpf_tunnel_key key; in gre_set_tunnel() local
83 struct bpf_tunnel_key key; in gre_set_tunnel_no_key() local
104 struct bpf_tunnel_key key; in gre_get_tunnel() local
119 struct bpf_tunnel_key key; in ip6gretap_set_tunnel() local
143 struct bpf_tunnel_key key; in ip6gretap_get_tunnel() local
162 struct bpf_tunnel_key key; in erspan_set_tunnel() local
205 struct bpf_tunnel_key key; in erspan_get_tunnel() local
241 struct bpf_tunnel_key key; in ip4ip6erspan_set_tunnel() local
285 struct bpf_tunnel_key key; in ip4ip6erspan_get_tunnel() local
322 struct bpf_tunnel_key key; in vxlan_set_tunnel_dst() local
[all …]
Dwq.c56 static int test_elem_callback(void *map, int *key, in test_elem_callback()
89 static int test_hmap_elem_callback(void *map, int *key, in test_hmap_elem_callback()
120 static int wq_callback(void *map, int *key, void *value) in wq_callback()
128 static int wq_cb_sleepable(void *map, int *key, void *value) in wq_cb_sleepable()
146 int key = 0; in test_call_array_sleepable() local
156 int key = 1; in test_syscall_array_sleepable() local
166 int key = 2; in test_call_hash_sleepable() local
176 int key = 3; in test_call_hash_malloc_sleepable() local
186 int key = 4; in test_call_lru_sleepable() local
Dwq_failures.c31 static int wq_callback(void *map, int *key, void *value) in wq_callback()
38 static int wq_cb_sleepable(void *map, int *key, void *value) in wq_cb_sleepable()
56 int key = 0; in __flag() local
81 int key = 0; in __flag() local
104 int key = 0; in test_wrong_wq_pointer() local
130 int key = 0; in test_wrong_wq_pointer_offset() local
Dtest_map_ops.c32 static u64 callback(u64 map, u64 key, u64 val, u64 ctx, u64 flags) in callback()
40 const int key = 0; in map_update() local
54 const int key = 0; in map_delete() local
106 const int key = 0; in map_for_each_pass() local
124 const int key = 0; in map_for_each_fail() local
Dtimer_lockup.c36 int key = 0; in timer_cb1() local
48 int key = 0; in timer_cb2() local
61 int key = 0; in timer1_prog() local
77 int key = 0; in timer2_prog() local
Dtimer.c73 static int timer_cb1(void *map, int *key, struct bpf_timer *timer) in timer_cb1()
168 static int timer_cb2(void *map, int *key, struct hmap_elem *val) in timer_cb2()
231 int key = HTAB, key_malloc = HTAB_MALLOC; in bpf_timer_test() local
254 int key = HTAB, key_malloc = HTAB_MALLOC; in BPF_PROG2() local
301 static int timer_cb3(void *map, int *key, struct bpf_timer *timer) in timer_cb3()
320 int key = 0; in BPF_PROG2() local
338 static int timer_cb_pinned(void *map, int *key, struct bpf_timer *timer) in timer_cb_pinned()
351 int key = 0; in test_pinned_timer() local
Dtest_spin_lock_fail.c57 int key = 0; in lock_id_mapval_preserve() local
70 int key = 0; in lock_id_innermapval_preserve() local
127 int key = 0; in lock_id_mismatch_mapval_mapval() local
151 int key = 0; in lock_id_mismatch_innermapval_innermapval1() local
175 int key = 0; in lock_id_mismatch_innermapval_innermapval2() local
Dlocal_kptr_stash.c14 long key; member
39 long key; member
44 long key; member
194 int key = 1; in unstash_rb_node() local
221 int key = 0; in stash_test_ref_kfunc() local
265 int key = 0; in stash_refcounted_node() local
Dcb_refs.c18 static __noinline int cb1(void *map, void *key, void *value, void *ctx) in cb1()
40 static __always_inline int cb2(void *map, void *key, void *value, void *ctx) in cb2()
67 static __always_inline int cb(void *map, void *key, void *value, void *ctx) in cb()
72 static __always_inline int cb3(void *map, void *key, void *value, void *ctx) in cb3()
/tools/perf/util/bpf_skel/
Dkwork_trace.bpf.c90 static __always_inline int trace_event_match(struct work_key *key, char *name) in trace_event_match()
117 static __always_inline void do_update_time(void *map, struct work_key *key, in do_update_time()
146 static __always_inline void do_update_timestart(void *map, struct work_key *key) in do_update_timestart()
154 struct work_key *key) in do_update_timeend()
165 struct work_key *key, char *name) in do_update_name()
171 static __always_inline int update_timestart(void *map, struct work_key *key) in update_timestart()
182 struct work_key *key, in update_timestart_and_name()
195 void *time_map, struct work_key *key) in update_timeend()
208 struct work_key *key, in update_timeend_and_name()
224 struct work_key key = { in report_irq_handler_entry() local
[all …]
Dkwork_top.bpf.c107 struct task_key key = { in update_task_info() local
123 static __always_inline void update_work(struct work_key *key, __u64 delta) in update_work()
150 struct work_key key = { in on_sched_out() local
213 struct work_key key = { in on_irq_handler_entry() local
249 struct work_key key = { in on_irq_handler_exit() local
285 struct work_key key = { in on_softirq_entry() local
321 struct work_key key = { in on_softirq_exit() local
/tools/perf/arch/x86/util/
Dkvm-stat.c31 struct event_key *key) in mmio_event_get_key()
42 struct perf_sample *sample, struct event_key *key) in mmio_event_begin()
59 struct event_key *key) in mmio_event_end()
76 struct event_key *key, in mmio_event_decode_key()
94 struct event_key *key) in ioport_event_get_key()
102 struct event_key *key) in ioport_event_begin()
120 struct event_key *key, in ioport_event_decode_key()
138 struct event_key *key) in msr_event_get_key()
146 struct event_key *key) in msr_event_begin()
164 struct event_key *key, in msr_event_decode_key()
/tools/testing/selftests/bpf/prog_tests/
Dlookup_and_delete.c15 __u64 key, value = START_VALUE; in fill_values() local
29 __u64 key, value[nr_cpus]; in fill_values_percpu() local
78 static int trigger_tp(struct test_lookup_and_delete *skel, __u64 key, in trigger_tp()
101 __u64 key, value; in test_lookup_and_delete_hash() local
137 __u64 key, val, value[nr_cpus]; in test_lookup_and_delete_percpu_hash() local
177 __u64 key, value; in test_lookup_and_delete_lru_hash() local
223 __u64 key, val, value[nr_cpus]; in test_lookup_and_delete_lru_percpu_hash() local
Dcg_storage_multi.c22 static bool assert_storage(struct bpf_map *map, const void *key, in assert_storage()
40 static bool assert_storage_noexist(struct bpf_map *map, const void *key) in assert_storage_noexist()
92 struct bpf_cgroup_storage_key key; in test_egress_only() local
162 struct bpf_cgroup_storage_key key; in test_isolated() local
275 __u64 key; in test_shared() local
Dmap_init.c24 map_key_t key; in map_populate() local
78 static int prog_run_insert_elem(struct test_map_init *skel, map_key_t key, in prog_run_insert_elem()
134 map_key_t key; in test_pcpu_map_init() local
174 map_key_t key; in test_pcpu_lru_map_init() local
/tools/testing/selftests/bpf/
Dtest_lru_map.c42 static int bpf_map_lookup_elem_with_ref_bit(int fd, unsigned long long key, in bpf_map_lookup_elem_with_ref_bit()
163 unsigned long long key, value[nr_cpus]; in test_lru_sanity0() local
254 unsigned long long key, end_key, value[nr_cpus]; in test_lru_sanity1() local
322 unsigned long long key, value[nr_cpus]; in test_lru_sanity2() local
428 unsigned long long key, end_key, value[nr_cpus]; in test_lru_sanity3() local
490 unsigned long long key, value[nr_cpus]; in test_lru_sanity4() local
549 unsigned long long key, value[nr_cpus]; in do_test_lru_sanity5() local
566 unsigned long long key, value[nr_cpus]; in test_lru_sanity5() local
614 unsigned long long key, value[nr_cpus]; in test_lru_sanity6() local
680 unsigned long long key, value[nr_cpus]; in test_lru_sanity7() local
[all …]
Dtest_maps.c39 long long key, next_key, first_key, value; in test_hashmap() local
156 long long key, next_key, first_key; in test_hashmap_percpu() local
271 long long key, value[VALUE_SIZE] = {}; in helper_fill_hashmap() local
293 long long key, value[VALUE_SIZE], next_key; in test_hashmap_walk() local
331 long long key, next_first, next_second; in test_hashmap_zero_seed() local
363 int key, next_key, fd; in test_arraymap() local
419 int key, next_key, fd, i; in test_arraymap_percpu() local
482 int key, fd, i; in test_arraymap_percpu_many_keys() local
514 __u32 key, value; in test_devmap() local
528 __u32 key, value; in test_devmap_hash() local
[all …]
Dbpf_arena_htab.h34 int key; member
40 static hashtab_elem_t *lookup_elem_raw(arena_list_head_t *head, __u32 hash, int key) in lookup_elem_raw()
51 static int htab_hash(int key) in htab_hash()
56 __weak int htab_lookup_elem(htab_t *htab __arg_arena, int key) in htab_lookup_elem()
69 __weak int htab_update_elem(htab_t *htab __arg_arena, int key, int value) in htab_update_elem()
Dtest_lpm_map.c33 uint8_t key[]; member
41 const uint8_t *key, in tlpm_add()
81 const uint8_t *key, in tlpm_match()
110 const uint8_t *key, in tlpm_delete()
190 uint8_t key[] = { rand() % 0xff, rand() % 0xff }; in test_lpm_order() local
214 struct bpf_lpm_trie_key_u8 *key; in test_lpm_map() local
426 struct bpf_lpm_trie_key_u8 *key; in test_lpm_delete() local
689 } key[MAX_TEST_KEYS]; member
/tools/lib/bpf/
Dhashmap.h62 long key; member
133 #define hashmap__insert(map, key, value, strategy, old_key, old_value) \ argument
138 #define hashmap__add(map, key, value) \ argument
141 #define hashmap__set(map, key, value, old_key, old_value) \ argument
144 #define hashmap__update(map, key, value, old_key, old_value) \ argument
147 #define hashmap__append(map, key, value) \ argument
152 #define hashmap__delete(map, key, old_key, old_value) \ argument
159 #define hashmap__find(map, key, value) \ argument
/tools/perf/util/
Dhashmap.h62 long key; member
133 #define hashmap__insert(map, key, value, strategy, old_key, old_value) \ argument
138 #define hashmap__add(map, key, value) \ argument
141 #define hashmap__set(map, key, value, old_key, old_value) \ argument
144 #define hashmap__update(map, key, value, old_key, old_value) \ argument
147 #define hashmap__append(map, key, value) \ argument
152 #define hashmap__delete(map, key, old_key, old_value) \ argument
159 #define hashmap__find(map, key, value) \ argument
/tools/perf/arch/s390/util/
Dkvm-stat.c28 struct event_key *key) in event_icpt_insn_get_key()
39 struct event_key *key) in event_sigp_get_key()
47 struct event_key *key) in event_diag_get_key()
55 struct event_key *key) in event_icpt_prog_get_key()
/tools/bpf/bpftool/
Dmap.c72 struct bpf_map_info *map_info, void *key, in do_dump_btf()
132 static void print_entry_json(struct bpf_map_info *info, unsigned char *key, in print_entry_json()
194 print_entry_error_msg(struct bpf_map_info *info, unsigned char *key, in print_entry_error_msg()
214 print_entry_error(struct bpf_map_info *map_info, void *key, int lookup_errno) in print_entry_error()
247 static void print_entry_plain(struct bpf_map_info *info, unsigned char *key, in print_entry_plain()
341 void *key, void *value, __u32 key_size, __u32 value_size, in parse_elem()
742 static int dump_map_elem(int fd, void *key, void *value, in dump_map_elem()
826 void *key, *value, *prev_key; in map_dump() local
962 static int alloc_key_value(struct bpf_map_info *info, void **key, void **value) in alloc_key_value()
994 void *key, *value; in do_update() local
[all …]
/tools/include/linux/
Drbtree.h267 rb_find(const void *key, const struct rb_root *tree, in rb_find()
268 int (*cmp)(const void *key, const struct rb_node *)) in rb_find()
295 rb_find_first(const void *key, const struct rb_root *tree, in rb_find_first()
296 int (*cmp)(const void *key, const struct rb_node *)) in rb_find_first()
325 rb_next_match(const void *key, struct rb_node *node, in rb_next_match()
326 int (*cmp)(const void *key, const struct rb_node *)) in rb_next_match()
341 #define rb_for_each(node, key, tree, cmp) \ argument

12345678910>>...13