Home
last modified time | relevance | path

Searched refs:bpf_map_lookup_elem (Results 1 – 25 of 228) sorted by relevance

12345678910

/Linux-v6.1/tools/testing/selftests/bpf/progs/
Dtest_sockmap_kern.h99 f = bpf_map_lookup_elem(&sock_skb_opts, &two); in bpf_prog1()
120 f = bpf_map_lookup_elem(&sock_skb_opts, &zero); in bpf_prog2()
156 f = bpf_map_lookup_elem(&sock_skb_opts, &one); in bpf_prog3()
176 f = bpf_map_lookup_elem(&sock_skb_opts, &one); in bpf_prog3()
240 bytes = bpf_map_lookup_elem(&sock_apply_bytes, &zero); in bpf_prog4()
243 bytes = bpf_map_lookup_elem(&sock_cork_bytes, &zero); in bpf_prog4()
246 start = bpf_map_lookup_elem(&sock_bytes, &zero); in bpf_prog4()
247 end = bpf_map_lookup_elem(&sock_bytes, &one); in bpf_prog4()
250 start_push = bpf_map_lookup_elem(&sock_bytes, &two); in bpf_prog4()
251 end_push = bpf_map_lookup_elem(&sock_bytes, &three); in bpf_prog4()
[all …]
Dmap_kptr_fail.c31 v = bpf_map_lookup_elem(&array_map, &key); in size_not_bpf_dw()
45 v = bpf_map_lookup_elem(&array_map, &key); in non_const_var_off()
63 v = bpf_map_lookup_elem(&array_map, &key); in non_const_var_off_kptr_xchg()
81 v = bpf_map_lookup_elem(&array_map, &key); in misaligned_access_write()
96 v = bpf_map_lookup_elem(&array_map, &key); in misaligned_access_read()
110 v = bpf_map_lookup_elem(&array_map, &key); in reject_var_off_store()
133 v = bpf_map_lookup_elem(&array_map, &key); in reject_bad_type_match()
152 v = bpf_map_lookup_elem(&array_map, &key); in marked_as_untrusted_or_null()
167 v = bpf_map_lookup_elem(&array_map, &key); in correct_btf_id_check_size()
184 v = bpf_map_lookup_elem(&array_map, &key); in inherit_untrusted_on_walk()
[all …]
Dtimer.c79 lru_timer = bpf_map_lookup_elem(&lru, &lru_key); in timer_cb1()
105 bpf_map_lookup_elem(map, &lru_key); in timer_cb1()
130 arr_timer = bpf_map_lookup_elem(&array, &array_key); in BPF_PROG2()
136 lru_timer = bpf_map_lookup_elem(&lru, &lru_key); in BPF_PROG2()
148 arr_timer = bpf_map_lookup_elem(&array, &array_key); in BPF_PROG2()
172 arr_timer = bpf_map_lookup_elem(&array, &array_key); in timer_cb2()
221 val = bpf_map_lookup_elem(&hmap, &key); in bpf_timer_test()
228 val = bpf_map_lookup_elem(&hmap_malloc, &key_malloc); in bpf_timer_test()
246 val = bpf_map_lookup_elem(&hmap, &key); in BPF_PROG2()
253 val = bpf_map_lookup_elem(&hmap_malloc, &key_malloc); in BPF_PROG2()
[all …]
Dlsm.c123 value = bpf_map_lookup_elem(&array, &key); in BPF_PROG()
126 value = bpf_map_lookup_elem(&hash, &key); in BPF_PROG()
129 value = bpf_map_lookup_elem(&lru_hash, &key); in BPF_PROG()
132 value = bpf_map_lookup_elem(&percpu_array, &key); in BPF_PROG()
135 value = bpf_map_lookup_elem(&percpu_hash, &key); in BPF_PROG()
138 value = bpf_map_lookup_elem(&lru_percpu_hash, &key); in BPF_PROG()
141 inner_map = bpf_map_lookup_elem(&outer_arr, &key); in BPF_PROG()
143 value = bpf_map_lookup_elem(inner_map, &key); in BPF_PROG()
147 inner_map = bpf_map_lookup_elem(&outer_hash, &key); in BPF_PROG()
149 value = bpf_map_lookup_elem(inner_map, &key); in BPF_PROG()
Dtest_sk_lookup.c117 sk = bpf_map_lookup_elem(&redir_map, &KEY_SERVER_A); in redir_port()
140 sk = bpf_map_lookup_elem(&redir_map, &KEY_SERVER_A); in redir_ip4()
166 sk = bpf_map_lookup_elem(&redir_map, &KEY_SERVER_A); in redir_ip6()
181 sk = bpf_map_lookup_elem(&redir_map, &KEY_SERVER_A); in select_sock_a()
196 sk = bpf_map_lookup_elem(&redir_map, &KEY_SERVER_A); in select_sock_a_no_reuseport()
223 sk = bpf_map_lookup_elem(&redir_map, &KEY_SERVER_B); in sk_assign_eexist()
231 sk = bpf_map_lookup_elem(&redir_map, &KEY_SERVER_A); in sk_assign_eexist()
256 sk = bpf_map_lookup_elem(&redir_map, &KEY_SERVER_A); in sk_assign_replace_flag()
264 sk = bpf_map_lookup_elem(&redir_map, &KEY_SERVER_B); in sk_assign_replace_flag()
295 sk = bpf_map_lookup_elem(&redir_map, &KEY_SERVER_B); in sk_assign_null()
[all …]
Dtest_sockmap_listen.c52 count = bpf_map_lookup_elem(&verdict_map, &verdict); in prog_stream_verdict()
73 count = bpf_map_lookup_elem(&verdict_map, &verdict); in prog_skb_verdict()
92 count = bpf_map_lookup_elem(&verdict_map, &verdict); in prog_msg_verdict()
112 count = bpf_map_lookup_elem(&verdict_map, &verdict); in prog_reuseport()
Dpyperf.h187 int32_t *symbol_id = bpf_map_lookup_elem(&symbolmap, sym); in process_frame_callback()
191 symbol_id = bpf_map_lookup_elem(&symbolmap, sym); in process_frame_callback()
224 PidData* pidData = bpf_map_lookup_elem(&pidmap, &pid); in __on_event()
229 Event* event = bpf_map_lookup_elem(&eventmap, &zero); in __on_event()
279 int32_t* symbol_counter = bpf_map_lookup_elem(&symbolmap, &sym); in __on_event()
310 int32_t *symbol_id = bpf_map_lookup_elem(&symbolmap, &sym); in __on_event()
313 symbol_id = bpf_map_lookup_elem(&symbolmap, &sym); in __on_event()
330 Stats* stats = bpf_map_lookup_elem(&statsmap, &zero); in __on_event()
Dtest_map_in_map.c32 map = bpf_map_lookup_elem(&mim_array, &key); in xdp_mimtest0()
37 value_p = bpf_map_lookup_elem(map, &key); in xdp_mimtest0()
41 map = bpf_map_lookup_elem(&mim_hash, &key); in xdp_mimtest0()
Dlinked_maps1.c67 value_struct = bpf_map_lookup_elem(&map1, &key_struct); in BPF_PROG()
71 val = bpf_map_lookup_elem(&map2, &key); in BPF_PROG()
75 val = bpf_map_lookup_elem(&map_weak, &key); in BPF_PROG()
Dlinked_maps2.c61 value_struct = bpf_map_lookup_elem(&map1, &key_struct); in BPF_PROG()
65 val = bpf_map_lookup_elem(&map2, &key); in BPF_PROG()
69 val = bpf_map_lookup_elem(&map_weak, &key); in BPF_PROG()
Dtimer_mim_reject.c56 inner_map = bpf_map_lookup_elem(&outer_arr, &array_key); in BPF_PROG()
60 inner_map2 = bpf_map_lookup_elem(&outer_arr, &array_key2); in BPF_PROG()
64 val = bpf_map_lookup_elem(inner_map, &hash_key); in BPF_PROG()
/Linux-v6.1/samples/bpf/
Dcpustat_kern.c116 cts = bpf_map_lookup_elem(&my_map, &key); in bpf_prog1()
121 cstate = bpf_map_lookup_elem(&my_map, &key); in bpf_prog1()
126 pts = bpf_map_lookup_elem(&my_map, &key); in bpf_prog1()
131 pstate = bpf_map_lookup_elem(&my_map, &key); in bpf_prog1()
176 val = bpf_map_lookup_elem(&pstate_duration, &key); in bpf_prog1()
199 val = bpf_map_lookup_elem(&cstate_duration, &key); in bpf_prog1()
221 pts = bpf_map_lookup_elem(&my_map, &key); in bpf_prog2()
226 pstate = bpf_map_lookup_elem(&my_map, &key); in bpf_prog2()
231 cstate = bpf_map_lookup_elem(&my_map, &key); in bpf_prog2()
273 val = bpf_map_lookup_elem(&pstate_duration, &key); in bpf_prog2()
Dibumad_kern.c85 val = bpf_map_lookup_elem(&read_count, &class); in on_ib_umad_read_recv()
88 val = bpf_map_lookup_elem(&read_count, &class); in on_ib_umad_read_recv()
105 val = bpf_map_lookup_elem(&read_count, &class); in on_ib_umad_read_send()
108 val = bpf_map_lookup_elem(&read_count, &class); in on_ib_umad_read_send()
125 val = bpf_map_lookup_elem(&write_count, &class); in on_ib_umad_write()
128 val = bpf_map_lookup_elem(&write_count, &class); in on_ib_umad_write()
Dxdp_redirect_cpu.bpf.c150 cpu_selected = bpf_map_lookup_elem(&cpus_available, &key0); in xdp_prognum0_no_touch()
155 rec = bpf_map_lookup_elem(&rx_cnt, &key); in xdp_prognum0_no_touch()
181 cpu_selected = bpf_map_lookup_elem(&cpus_available, &key0); in xdp_prognum1_touch_data()
190 rec = bpf_map_lookup_elem(&rx_cnt, &key); in xdp_prognum1_touch_data()
224 cpu_max = bpf_map_lookup_elem(&cpus_count, &key0); in xdp_prognum2_round_robin()
228 cpu_iterator = bpf_map_lookup_elem(&cpus_iterator, &key0); in xdp_prognum2_round_robin()
237 cpu_selected = bpf_map_lookup_elem(&cpus_available, &cpu_idx); in xdp_prognum2_round_robin()
242 rec = bpf_map_lookup_elem(&rx_cnt, &key); in xdp_prognum2_round_robin()
269 rec = bpf_map_lookup_elem(&rx_cnt, &key); in xdp_prognum3_proto_separate()
308 cpu_lookup = bpf_map_lookup_elem(&cpus_available, &cpu_idx); in xdp_prognum3_proto_separate()
[all …]
Dmap_perf_test_kern.c115 value = bpf_map_lookup_elem(&hash_map, &key); in SYSCALL()
133 value = bpf_map_lookup_elem(&percpu_hash_map, &key); in SYSCALL()
150 value = bpf_map_lookup_elem(&hash_map_alloc, &key); in SYSCALL()
167 value = bpf_map_lookup_elem(&percpu_hash_map_alloc, &key); in SYSCALL()
224 nolocal_lru_map = bpf_map_lookup_elem(&array_of_lru_hashs, in SYSCALL()
240 bpf_map_lookup_elem(&lru_hash_lookup_map, &key); in SYSCALL()
271 bpf_map_lookup_elem(&lpm_trie_map_alloc, &key); in SYSCALL()
284 value = bpf_map_lookup_elem(&hash_map, &key); in SYSCALL()
297 value = bpf_map_lookup_elem(&array_map, &key); in SYSCALL()
Dxdp_router_ipv4.bpf.c84 rec = bpf_map_lookup_elem(&rx_cnt, &key); in xdp_router_ipv4_prog()
118 direct_entry = bpf_map_lookup_elem(&exact_match, &iph->daddr); in xdp_router_ipv4_prog()
137 prefix_value = bpf_map_lookup_elem(&lpm_map, &key4); in xdp_router_ipv4_prog()
146 dest_mac = bpf_map_lookup_elem(&arp_table, &iph->daddr); in xdp_router_ipv4_prog()
151 dest_mac = bpf_map_lookup_elem(&arp_table, in xdp_router_ipv4_prog()
Dsockex1_user.c49 assert(bpf_map_lookup_elem(map_fd, &key, &tcp_cnt) == 0); in main()
52 assert(bpf_map_lookup_elem(map_fd, &key, &udp_cnt) == 0); in main()
55 assert(bpf_map_lookup_elem(map_fd, &key, &icmp_cnt) == 0); in main()
Dxdp_sample.bpf.c79 rec = bpf_map_lookup_elem(&redir_err_cnt, &idx); in xdp_redirect_collect_stat()
139 rec = bpf_map_lookup_elem(&cpumap_enqueue_cnt, &idx); in BPF_PROG()
166 rec = bpf_map_lookup_elem(&cpumap_kthread_cnt, &cpu); in BPF_PROG()
197 rec = bpf_map_lookup_elem(&exception_cnt, &idx); in BPF_PROG()
222 rec = bpf_map_lookup_elem(&devmap_xmit_cnt, &cpu); in BPF_PROG()
256 rec = bpf_map_lookup_elem(&devmap_xmit_cnt_multi, &idx); in BPF_PROG()
/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/
Dbtf_map_in_map.c53 bpf_map_lookup_elem(map1_fd, &key, &val); in test_lookup_update()
55 bpf_map_lookup_elem(map2_fd, &key, &val); in test_lookup_update()
57 bpf_map_lookup_elem(map3_fd, &key, &val); in test_lookup_update()
66 bpf_map_lookup_elem(map1_fd, &key, &val); in test_lookup_update()
68 bpf_map_lookup_elem(map2_fd, &key, &val); in test_lookup_update()
70 bpf_map_lookup_elem(map4_fd, &key, &val); in test_lookup_update()
77 bpf_map_lookup_elem(map5_fd, &key, &val); in test_lookup_update()
Dlookup_and_delete.c126 err = bpf_map_lookup_elem(map_fd, &key, &value); in test_lookup_and_delete_hash()
166 err = bpf_map_lookup_elem(map_fd, &key, value); in test_lookup_and_delete_percpu_hash()
207 err = bpf_map_lookup_elem(map_fd, &key, &value); in test_lookup_and_delete_lru_hash()
212 err = bpf_map_lookup_elem(map_fd, &key, &value); in test_lookup_and_delete_lru_hash()
266 err = bpf_map_lookup_elem(map_fd, &key, &value); in test_lookup_and_delete_lru_percpu_hash()
271 err = bpf_map_lookup_elem(map_fd, &key, &value); in test_lookup_and_delete_lru_percpu_hash()
/Linux-v6.1/tools/perf/util/bpf_skel/
Dfunc_latency.bpf.c58 ok = bpf_map_lookup_elem(&cpu_filter, &cpu); in BPF_PROG()
67 ok = bpf_map_lookup_elem(&task_filter, &pid); in BPF_PROG()
91 start = bpf_map_lookup_elem(&functime, &tid); in BPF_PROG()
108 hist = bpf_map_lookup_elem(&latency, &key); in BPF_PROG()
Dbperf_cgroup.bpf.c108 elem = bpf_map_lookup_elem(&cgrp_idx, &cgrp_id); in get_cgroup_v1_idx()
133 elem = bpf_map_lookup_elem(&cgrp_idx, &cgrp_id); in get_cgroup_v2_idx()
168 prev_val = bpf_map_lookup_elem(&prev_readings, &key); in bperf_cgroup_count()
173 prev_val = bpf_map_lookup_elem(&prev_readings, &key); in bperf_cgroup_count()
197 cgrp_val = bpf_map_lookup_elem(&cgrp_readings, &key); in bperf_cgroup_count()
Dbperf_follower.bpf.c58 accum_key = bpf_map_lookup_elem(&filter, &filter_key); in BPF_PROG()
63 diff_val = bpf_map_lookup_elem(&diff_readings, &zero); in BPF_PROG()
67 accum_val = bpf_map_lookup_elem(&accum_readings, accum_key); in BPF_PROG()
/Linux-v6.1/tools/testing/selftests/bpf/
Dtest_lru_map.c85 assert(!bpf_map_lookup_elem(mfd, &zero, value)); in bpf_map_lookup_elem_with_ref_bit()
100 assert(!bpf_map_lookup_elem(map1, &next_key, value1)); in map_subset()
101 ret = bpf_map_lookup_elem(map0, &next_key, value0); in map_subset()
187 assert(bpf_map_lookup_elem(lru_map_fd, &key, value) == -ENOENT); in test_lru_sanity0()
199 assert(bpf_map_lookup_elem(lru_map_fd, &key, value) == -ENOENT); in test_lru_sanity0()
215 assert(bpf_map_lookup_elem(lru_map_fd, &key, value) == -ENOENT); in test_lru_sanity0()
378 assert(bpf_map_lookup_elem(lru_map_fd, &key, value) == -ENOENT); in test_lru_sanity2()
558 assert(bpf_map_lookup_elem(map_fd, &last_key, value) == -ENOENT); in do_test_lru_sanity5()
713 assert(bpf_map_lookup_elem(lru_map_fd, &key, value) == -ENOENT); in test_lru_sanity7()
725 assert(bpf_map_lookup_elem(lru_map_fd, &key, value) == -ENOENT); in test_lru_sanity7()
[all …]
/Linux-v6.1/tools/bpf/bpftool/skeleton/
Dprofiler.bpf.c50 ptrs[i] = bpf_map_lookup_elem(&fentry_readings, &flag); in BPF_PROG()
75 before = bpf_map_lookup_elem(&fentry_readings, &id); in fexit_update_maps()
84 accum = bpf_map_lookup_elem(&accum_readings, &id); in fexit_update_maps()
109 count = bpf_map_lookup_elem(&counts, &zero); in BPF_PROG()

12345678910