Home
last modified time | relevance | path

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

12345678910

/tools/testing/selftests/bpf/progs/
Dmap_kptr_fail.c29 int key = 0; in size_not_bpf_dw() local
43 int key = 0, id; in non_const_var_off() local
61 int key = 0, id; in non_const_var_off_kptr_xchg() local
79 int key = 0; in misaligned_access_write() local
94 int key = 0; in misaligned_access_read() local
108 int key = 0, id; in reject_var_off_store() local
131 int key = 0; in reject_bad_type_match() local
150 int key = 0; in marked_as_untrusted_or_null() local
165 int key = 0; in correct_btf_id_check_size() local
182 int key = 0; in inherit_untrusted_on_walk() local
[all …]
Dtest_tunnel_kern.c66 struct bpf_tunnel_key key; in gre_set_tunnel() local
88 struct bpf_tunnel_key key; in gre_get_tunnel() local
103 struct bpf_tunnel_key key; in ip6gretap_set_tunnel() local
127 struct bpf_tunnel_key key; in ip6gretap_get_tunnel() local
146 struct bpf_tunnel_key key; in erspan_set_tunnel() local
189 struct bpf_tunnel_key key; in erspan_get_tunnel() local
225 struct bpf_tunnel_key key; in ip4ip6erspan_set_tunnel() local
269 struct bpf_tunnel_key key; in ip4ip6erspan_get_tunnel() local
307 struct bpf_tunnel_key key; in vxlan_set_tunnel_dst() local
346 struct bpf_tunnel_key key; in vxlan_set_tunnel_src() local
[all …]
Dcb_refs.c20 static __noinline int cb1(void *map, void *key, void *value, void *ctx) in cb1()
41 static __always_inline int cb2(void *map, void *key, void *value, void *ctx) in cb2()
69 static __always_inline int cb(void *map, void *key, void *value, void *ctx) in cb()
74 static __always_inline int cb3(void *map, void *key, void *value, void *ctx) in cb3()
Dfor_each_array_map_elem.c29 unused_subprog(struct bpf_map *map, __u32 *key, __u64 *val, in unused_subprog()
37 check_array_elem(struct bpf_map *map, __u32 *key, __u64 *val, in check_array_elem()
50 check_percpu_elem(struct bpf_map *map, __u32 *key, __u64 *val, in check_percpu_elem()
Dmap_kptr.c146 int key = 0; in test_map_kptr() local
167 int key = 0; in test_map_in_map_kptr() local
198 int key = 0, ret; in test_map_kptr_ref() local
265 int key = 0; in test_map_kptr_ref2() local
Dtimer.c61 static int timer_cb1(void *map, int *key, struct bpf_timer *timer) in timer_cb1()
156 static int timer_cb2(void *map, int *key, struct hmap_elem *val) in timer_cb2()
219 int key = HTAB, key_malloc = HTAB_MALLOC; in bpf_timer_test() local
242 int key = HTAB, key_malloc = HTAB_MALLOC; in BPF_PROG2() local
Dtest_helper_restricted.c28 static int timer_cb(void *map, int *key, struct timer *timer) in timer_cb()
36 const int key = 0; in timer_work() local
49 const int key = 0; in spin_lock_work() local
Dudp_limit.c20 __u32 key; in sock() local
49 __u32 key; in sock_release() local
Dbpf_hashmap_full_update_bench.c22 static int loop_update_callback(__u32 index, u32 *key) in loop_update_callback()
34 u32 key = cpu + MAX_ENTRIES; in benchmark() local
/tools/perf/util/bpf_skel/
Dkwork_trace.bpf.c89 static __always_inline int trace_event_match(struct work_key *key, char *name) in trace_event_match()
116 static __always_inline void do_update_time(void *map, struct work_key *key, in do_update_time()
145 static __always_inline void do_update_timestart(void *map, struct work_key *key) in do_update_timestart()
153 struct work_key *key) in do_update_timeend()
164 struct work_key *key, char *name) in do_update_name()
170 static __always_inline int update_timestart(void *map, struct work_key *key) in update_timestart()
181 struct work_key *key, in update_timestart_and_name()
194 void *time_map, struct work_key *key) in update_timeend()
207 struct work_key *key, in update_timeend_and_name()
223 struct work_key key = { in report_irq_handler_entry() local
[all …]
/tools/perf/arch/x86/util/
Dkvm-stat.c32 struct event_key *key) in mmio_event_get_key()
43 struct perf_sample *sample, struct event_key *key) in mmio_event_begin()
60 struct event_key *key) in mmio_event_end()
77 struct event_key *key, in mmio_event_decode_key()
95 struct event_key *key) in ioport_event_get_key()
103 struct event_key *key) in ioport_event_begin()
121 struct event_key *key, in ioport_event_decode_key()
139 struct event_key *key) in msr_event_get_key()
147 struct event_key *key) in msr_event_begin()
165 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
Dsockmap_listen.c139 #define xbpf_map_delete_elem(fd, key) \ argument
147 #define xbpf_map_lookup_elem(fd, key, val) \ argument
155 #define xbpf_map_update_elem(fd, key, val, flags) \ argument
326 u32 key = 0; in test_insert_invalid() local
343 u32 key = 0; in test_insert_opened() local
366 u32 key = 0; in test_insert_bound() local
392 u32 key; in test_insert() local
408 u32 key; in test_delete_after_insert() local
426 u32 key; in test_delete_after_close() local
449 u32 key; in test_lookup_after_insert() local
[all …]
/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()
150 unsigned long long key, value[nr_cpus]; in test_lru_sanity0() local
241 unsigned long long key, end_key, value[nr_cpus]; in test_lru_sanity1() local
317 unsigned long long key, value[nr_cpus]; in test_lru_sanity2() local
424 unsigned long long key, end_key, value[nr_cpus]; in test_lru_sanity3() local
489 unsigned long long key, value[nr_cpus]; in test_lru_sanity4() local
547 unsigned long long key, value[nr_cpus]; in do_test_lru_sanity5() local
564 unsigned long long key, value[nr_cpus]; in test_lru_sanity5() local
612 unsigned long long key, value[nr_cpus]; in test_lru_sanity6() local
678 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 …]
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 *key; in test_lpm_map() local
426 struct bpf_lpm_trie_key *key; in test_lpm_delete() local
689 } key[MAX_TEST_KEYS]; member
/tools/perf/arch/s390/util/
Dkvm-stat.c29 struct event_key *key) in event_icpt_insn_get_key()
40 struct event_key *key) in event_sigp_get_key()
48 struct event_key *key) in event_diag_get_key()
56 struct event_key *key) in event_icpt_prog_get_key()
/tools/bpf/bpftool/
Dmap.c73 struct bpf_map_info *map_info, void *key, in do_dump_btf()
133 static void print_entry_json(struct bpf_map_info *info, unsigned char *key, in print_entry_json()
192 print_entry_error_msg(struct bpf_map_info *info, unsigned char *key, in print_entry_error_msg()
212 print_entry_error(struct bpf_map_info *map_info, void *key, int lookup_errno) in print_entry_error()
245 static void print_entry_plain(struct bpf_map_info *info, unsigned char *key, in print_entry_plain()
334 void *key, void *value, __u32 key_size, __u32 value_size, in parse_elem()
737 static int dump_map_elem(int fd, void *key, void *value, in dump_map_elem()
827 void *key, *value, *prev_key; in map_dump() local
963 static int alloc_key_value(struct bpf_map_info *info, void **key, void **value) in alloc_key_value()
995 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
/tools/lib/bpf/
Dhashmap.h47 const void *key; member
117 const void *key, void *value) in hashmap__add()
123 const void *key, void *value, in hashmap__set()
131 const void *key, void *value, in hashmap__update()
139 const void *key, void *value) in hashmap__append()
Dhashmap.c131 const void *key, size_t hash, in hashmap_find_entry()
154 int hashmap__insert(struct hashmap *map, const void *key, void *value, in hashmap__insert()
206 bool hashmap__find(const struct hashmap *map, const void *key, void **value) in hashmap__find()
220 bool hashmap__delete(struct hashmap *map, const void *key, in hashmap__delete()
/tools/perf/util/
Dhashmap.h47 const void *key; member
117 const void *key, void *value) in hashmap__add()
123 const void *key, void *value, in hashmap__set()
131 const void *key, void *value, in hashmap__update()
139 const void *key, void *value) in hashmap__append()
Dhashmap.c131 const void *key, size_t hash, in hashmap_find_entry()
154 int hashmap__insert(struct hashmap *map, const void *key, void *value, in hashmap__insert()
206 bool hashmap__find(const struct hashmap *map, const void *key, void **value) in hashmap__find()
220 bool hashmap__delete(struct hashmap *map, const void *key, in hashmap__delete()

12345678910