Home
last modified time | relevance | path

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

12345678910>>...14

/tools/testing/selftests/bpf/progs/
A Dmap_kptr_fail.c28 int key = 0; in size_not_bpf_dw() local
81 int key = 0; in misaligned_access_write() local
97 int key = 0; in misaligned_access_read() 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
209 int key = 0; in reject_kptr_xchg_on_unref() local
224 int key = 0; in mark_ref_as_untrusted_or_null() local
240 int key = 0; in reject_untrusted_store_to_ref() local
[all …]
A 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 …]
A 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
A 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
A Dverifier_array_access.c549 __u32 __attribute__((aligned(8))) key = 1; in an_array_with_a_constant_no_nullness() local
565 __u32 __attribute__((aligned(8))) key = 1; in multiple_array_with_a_constant_no_nullness() local
588 __u32 key = 0; in an_array_with_a_32bit_constant_0_no_nullness() local
602 __u32 __attribute__((aligned(8))) key = 1; in a_pcpu_array_with_a_constant_no_nullness() local
617 __u32 __attribute__((aligned(8))) key = 3; in an_array_with_a_constant_no_nullness_out_of_bounds() local
631 __u32 __attribute__((aligned(8))) key; in an_array_with_a_constant_too_small() local
655 __u64 key = 1; in an_array_with_a_constant_too_big() local
672 __u32 __attribute__((aligned(8))) key; in mixed_const_and_non_const_key_lookup() local
721 __u64 key = 0xFFFFFFFFFFFFFFFF; in doesnt_reject_irrelevant_maps() local
A 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
A 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
A 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
A Dfree_timer.c21 static int timer_cb(void *map, void *key, struct map_value *value) in timer_cb()
31 static int start_cb(int key) in start_cb()
47 static int overwrite_cb(int key) in overwrite_cb()
A 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
/tools/perf/util/bpf_skel/
A Dkwork_trace.bpf.c208 struct work_key *key, in update_timeend_and_name()
224 struct work_key key = { in report_irq_handler_entry() local
240 struct work_key key = { in report_irq_handler_exit() local
266 struct work_key key = { in report_softirq_entry() local
284 struct work_key key = { in report_softirq_exit() local
297 struct work_key key = { in latency_softirq_raise() local
315 struct work_key key = { in latency_softirq_entry() local
327 struct work_key key = { in report_workqueue_execute_start() local
340 struct work_key key = { in report_workqueue_execute_end() local
357 struct work_key key = { in latency_workqueue_activate_work() local
[all …]
A Dkwork_top.bpf.c109 struct task_key key = { in update_task_info() local
125 static __always_inline void update_work(struct work_key *key, __u64 delta) in update_work()
152 struct work_key key = { in on_sched_out() local
215 struct work_key key = { in on_irq_handler_entry() local
251 struct work_key key = { in on_irq_handler_exit() local
287 struct work_key key = { in on_softirq_entry() local
323 struct work_key key = { in on_softirq_exit() local
/tools/perf/arch/x86/util/
A 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/
A 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
A 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
/tools/testing/selftests/bpf/
A 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 …]
A Dtest_maps.c152 long long key, next_key, first_key; in test_hashmap_percpu() local
359 int key, next_key, fd; in test_arraymap() local
415 int key, next_key, fd, i; in test_arraymap_percpu() local
478 int key, fd, i; in test_arraymap_percpu_many_keys() local
510 __u32 key, value; in test_devmap() local
524 __u32 key, value; in test_devmap_hash() local
666 __u32 key, value; in test_sockmap() local
1311 } key; in test_map_large() local
1446 int i, key, value, err; in test_update_delete() local
1533 int fd, key = 0, value = 0; in test_map_rdonly() local
[all …]
A 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()
/tools/perf/util/
A 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/lib/bpf/
A 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/
A 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/testing/selftests/bpf/map_tests/
A Dlpm_trie_map_basic_ops.c35 uint8_t key[]; member
59 const uint8_t *key, in tlpm_add()
99 const uint8_t *key, in tlpm_match()
128 const uint8_t *key, in tlpm_delete()
232 struct bpf_lpm_trie_key_u8 *key; in test_lpm_map() local
444 struct bpf_lpm_trie_key_u8 *key; in test_lpm_delete() local
707 } key[MAX_TEST_KEYS]; member
806 struct lpm_trie_int_key key; in test_lpm_trie_update_flags() local
919 struct lpm_trie_int_key key; in test_lpm_trie_update_full_map() local
1007 struct lpm_trie_bytes_key key, next_key; in test_lpm_trie_iterate_strs() local
[all …]
/tools/bpf/bpftool/
A Dmap.c72 struct bpf_map_info *map_info, void *key, in do_dump_btf()
194 print_entry_error_msg(struct bpf_map_info *info, unsigned char *key, in print_entry_error_msg()
340 static int parse_elem(char **argv, struct bpf_map_info *info, void *key, in parse_elem()
745 static int dump_map_elem(int fd, void *key, void *value, in dump_map_elem()
829 void *key, *value, *prev_key; in map_dump() local
997 void *key, *value; in do_update() local
1034 static void print_key_value(struct bpf_map_info *info, void *key, in print_key_value()
1075 void *key, *value; in do_lookup() local
1127 void *key, *nextkey; in do_getnext() local
1198 void *key; in do_delete() local
[all …]
/tools/include/linux/
A 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/tracing/rtla/src/
A Dtimerlat_bpf.c114 unsigned int key = 0; in timerlat_bpf_restart_tracing() local
125 int key, in get_value()
154 int timerlat_bpf_get_hist_value(int key, in timerlat_bpf_get_hist_value()
169 int timerlat_bpf_get_summary_value(enum summary_field key, in timerlat_bpf_get_summary_value()

Completed in 59 milliseconds

12345678910>>...14