Home
last modified time | relevance | path

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

12345678910>>...12

/Linux-v6.6/tools/testing/selftests/bpf/progs/
Dverifier_helper_value_access.c60 : __imm(bpf_map_lookup_elem), in access_to_map_full_range()
86 : __imm(bpf_map_lookup_elem), in access_to_map_partial_range()
110 : __imm(bpf_map_lookup_elem), in access_to_map_empty_range()
135 : __imm(bpf_map_lookup_elem), in map_out_of_bound_range()
161 : __imm(bpf_map_lookup_elem), in access_to_map_negative_range()
187 : __imm(bpf_map_lookup_elem), in via_const_imm_full_range()
215 : __imm(bpf_map_lookup_elem), in via_const_imm_partial_range()
241 : __imm(bpf_map_lookup_elem), in via_const_imm_empty_range()
268 : __imm(bpf_map_lookup_elem), in imm_out_of_bound_range()
296 : __imm(bpf_map_lookup_elem), in const_imm_negative_range_adjustment_1()
[all …]
Dverifier_value_ptr_arith.c73 : __imm(bpf_map_lookup_elem), in value_ptr_unknown_vs_const()
111 : __imm(bpf_map_lookup_elem), in value_ptr_const_vs_unknown()
147 : __imm(bpf_map_lookup_elem), in ptr_const_vs_const_ne()
181 : __imm(bpf_map_lookup_elem), in ptr_const_vs_const_eq()
219 : __imm(bpf_map_lookup_elem), in ptr_unknown_vs_unknown_eq()
259 : __imm(bpf_map_lookup_elem), in ptr_unknown_vs_unknown_lt()
299 : __imm(bpf_map_lookup_elem), in ptr_unknown_vs_unknown_gt()
329 : __imm(bpf_map_lookup_elem), in value_ptr_from_different_maps()
362 : __imm(bpf_map_lookup_elem), in known_scalar_from_different_maps()
392 : __imm(bpf_map_lookup_elem), in maps_but_same_value_properties()
[all …]
Dverifier_bounds.c41 : __imm(bpf_map_lookup_elem), in bounds_map_value_variant_1()
72 : __imm(bpf_map_lookup_elem), in bounds_map_value_variant_2()
105 : __imm(bpf_map_lookup_elem), in subtraction_on_pointers_for_unpriv()
135 : __imm(bpf_map_lookup_elem), in based_on_zero_extended_mov()
166 : __imm(bpf_map_lookup_elem), in on_sign_extended_mov_test1()
197 : __imm(bpf_map_lookup_elem), in on_sign_extended_mov_test2()
224 : __imm(bpf_map_lookup_elem), in var_off_insn_off_test1()
253 : __imm(bpf_map_lookup_elem), in var_off_insn_off_test2()
295 : __imm(bpf_map_lookup_elem), in of_non_boundary_crossing_range()
336 : __imm(bpf_map_lookup_elem), in of_boundary_crossing_range_1()
[all …]
Dtest_sockmap_kern.h100 f = bpf_map_lookup_elem(&sock_skb_opts, &two); in bpf_prog1()
124 f = bpf_map_lookup_elem(&sock_skb_opts, &zero); in bpf_prog2()
160 f = bpf_map_lookup_elem(&sock_skb_opts, &one); in bpf_prog3()
180 f = bpf_map_lookup_elem(&sock_skb_opts, &one); in bpf_prog3()
242 bytes = bpf_map_lookup_elem(&sock_apply_bytes, &zero); in bpf_prog4()
245 bytes = bpf_map_lookup_elem(&sock_cork_bytes, &zero); in bpf_prog4()
248 start = bpf_map_lookup_elem(&sock_bytes, &zero); in bpf_prog4()
249 end = bpf_map_lookup_elem(&sock_bytes, &one); in bpf_prog4()
252 start_push = bpf_map_lookup_elem(&sock_bytes, &two); in bpf_prog4()
253 end_push = bpf_map_lookup_elem(&sock_bytes, &three); in bpf_prog4()
[all …]
Dverifier_bounds_mix_sign_unsign.c42 __imm(bpf_map_lookup_elem), in signed_and_unsigned_positive_bounds()
74 __imm(bpf_map_lookup_elem), in checks_mixing_signed_and_unsigned()
108 __imm(bpf_map_lookup_elem), in signed_and_unsigned_variant_2()
141 __imm(bpf_map_lookup_elem), in signed_and_unsigned_variant_3()
172 __imm(bpf_map_lookup_elem), in signed_and_unsigned_variant_4()
205 __imm(bpf_map_lookup_elem), in signed_and_unsigned_variant_5()
267 __imm(bpf_map_lookup_elem), in signed_and_unsigned_variant_7()
302 __imm(bpf_map_lookup_elem), in signed_and_unsigned_variant_8()
335 __imm(bpf_map_lookup_elem), in signed_and_unsigned_variant_9()
369 __imm(bpf_map_lookup_elem), in signed_and_unsigned_variant_10()
[all …]
Dverifier_array_access.c56 : __imm(bpf_map_lookup_elem), in an_array_with_a_constant_1()
83 : __imm(bpf_map_lookup_elem), in __flag()
111 : __imm(bpf_map_lookup_elem), in __flag()
144 : __imm(bpf_map_lookup_elem), in __flag()
169 : __imm(bpf_map_lookup_elem), in an_array_with_a_constant_2()
198 : __imm(bpf_map_lookup_elem), in __flag()
228 : __imm(bpf_map_lookup_elem), in __flag()
259 : __imm(bpf_map_lookup_elem), in __flag()
291 : __imm(bpf_map_lookup_elem), in __flag()
325 : __imm(bpf_map_lookup_elem), in __flag()
[all …]
Dmap_kptr_fail.c30 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()
64 v = bpf_map_lookup_elem(&array_map, &key); in non_const_var_off_kptr_xchg()
83 v = bpf_map_lookup_elem(&array_map, &key); in misaligned_access_write()
99 v = bpf_map_lookup_elem(&array_map, &key); in misaligned_access_read()
114 v = bpf_map_lookup_elem(&array_map, &key); in reject_var_off_store()
138 v = bpf_map_lookup_elem(&array_map, &key); in reject_bad_type_match()
158 v = bpf_map_lookup_elem(&array_map, &key); in marked_as_untrusted_or_null()
174 v = bpf_map_lookup_elem(&array_map, &key); in correct_btf_id_check_size()
192 v = bpf_map_lookup_elem(&array_map, &key); in inherit_untrusted_on_walk()
[all …]
Dtest_spin_lock_fail.c59 f = bpf_map_lookup_elem(&array_map, &key); in lock_id_mapval_preserve()
73 map = bpf_map_lookup_elem(&map_of_maps, &key); in lock_id_innermapval_preserve()
76 f = bpf_map_lookup_elem(map, &key); in lock_id_innermapval_preserve()
91 map = bpf_map_lookup_elem(&map_of_maps, &key); \
94 iv = bpf_map_lookup_elem(map, &key); \
97 v = bpf_map_lookup_elem(&array_map, &key); \
129 f1 = bpf_map_lookup_elem(&array_map, &key); in lock_id_mismatch_mapval_mapval()
132 f2 = bpf_map_lookup_elem(&array_map, &key); in lock_id_mismatch_mapval_mapval()
154 map = bpf_map_lookup_elem(&map_of_maps, &key); in lock_id_mismatch_innermapval_innermapval1()
157 f1 = bpf_map_lookup_elem(map, &key); in lock_id_mismatch_innermapval_innermapval1()
[all …]
Dverifier_spin_lock.c46 : __imm(bpf_map_lookup_elem), in spin_lock_test1_success()
79 : __imm(bpf_map_lookup_elem), in lock_test2_direct_ld_st()
113 : __imm(bpf_map_lookup_elem), in __flag()
147 : __imm(bpf_map_lookup_elem), in __flag()
181 __imm(bpf_map_lookup_elem), in call_within_a_locked_region()
215 : __imm(bpf_map_lookup_elem), in spin_lock_test6_missing_unlock()
249 : __imm(bpf_map_lookup_elem), in lock_test7_unlock_without_lock()
285 : __imm(bpf_map_lookup_elem), in spin_lock_test8_double_lock()
324 : __imm(bpf_map_lookup_elem), in spin_lock_test9_different_lock()
356 : __imm(bpf_map_lookup_elem), in lock_in_subprog_without_unlock()
[all …]
Dverifier_regalloc.c47 __imm(bpf_map_lookup_elem), in __flag()
77 __imm(bpf_map_lookup_elem), in regalloc_negative()
108 __imm(bpf_map_lookup_elem), in __flag()
140 __imm(bpf_map_lookup_elem), in __flag()
175 __imm(bpf_map_lookup_elem), in __flag()
211 __imm(bpf_map_lookup_elem), in __flag()
243 __imm(bpf_map_lookup_elem), in __flag()
275 __imm(bpf_map_lookup_elem), in __flag()
312 __imm(bpf_map_lookup_elem), in __flag()
359 __imm(bpf_map_lookup_elem), in regalloc_spill_jeq()
Dverifier_value_or_null.c47 : __imm(bpf_map_lookup_elem), in share_map_lookup_elem_result()
72 : __imm(bpf_map_lookup_elem), in map_value_or_null_1()
96 : __imm(bpf_map_lookup_elem), in map_value_or_null_2()
120 : __imm(bpf_map_lookup_elem), in map_value_or_null_3()
148 : __imm(bpf_map_lookup_elem), in multiple_map_lookup_elem_calls()
178 : __imm(bpf_map_lookup_elem), in with_2nd_lookup_in_branch()
207 : __imm(bpf_map_lookup_elem), in __flag()
232 : __imm(bpf_map_lookup_elem), in lookup_and_null_branch_prediction()
283 __imm(bpf_map_lookup_elem), in __flag()
Dtimer.c87 lru_timer = bpf_map_lookup_elem(&lru, &lru_key); in timer_cb1()
113 bpf_map_lookup_elem(map, &lru_key); in timer_cb1()
138 arr_timer = bpf_map_lookup_elem(&array, &array_key); in BPF_PROG2()
144 lru_timer = bpf_map_lookup_elem(&lru, &lru_key); in BPF_PROG2()
156 arr_timer = bpf_map_lookup_elem(&array, &array_key); in BPF_PROG2()
180 arr_timer = bpf_map_lookup_elem(&array, &array_key); in timer_cb2()
229 val = bpf_map_lookup_elem(&hmap, &key); in bpf_timer_test()
236 val = bpf_map_lookup_elem(&hmap_malloc, &key_malloc); in bpf_timer_test()
254 val = bpf_map_lookup_elem(&hmap, &key); in BPF_PROG2()
261 val = bpf_map_lookup_elem(&hmap_malloc, &key_malloc); in BPF_PROG2()
[all …]
Dverifier_helper_restricted.c106 : __imm(bpf_map_lookup_elem), in in_bpf_prog_type_kprobe_2()
131 : __imm(bpf_map_lookup_elem), in bpf_prog_type_perf_event_2()
156 : __imm(bpf_map_lookup_elem), in in_bpf_prog_type_tracepoint_2()
181 : __imm(bpf_map_lookup_elem), in bpf_prog_type_raw_tracepoint_2()
204 : __imm(bpf_map_lookup_elem), in in_bpf_prog_type_kprobe_3()
227 : __imm(bpf_map_lookup_elem), in in_bpf_prog_type_tracepoint_3()
250 : __imm(bpf_map_lookup_elem), in bpf_prog_type_perf_event_3()
273 : __imm(bpf_map_lookup_elem), in bpf_prog_type_raw_tracepoint_3()
Dlsm.c124 value = bpf_map_lookup_elem(&array, &key); in BPF_PROG()
127 value = bpf_map_lookup_elem(&hash, &key); in BPF_PROG()
130 value = bpf_map_lookup_elem(&lru_hash, &key); in BPF_PROG()
133 value = bpf_map_lookup_elem(&percpu_array, &key); in BPF_PROG()
136 value = bpf_map_lookup_elem(&percpu_hash, &key); in BPF_PROG()
139 value = bpf_map_lookup_elem(&lru_percpu_hash, &key); in BPF_PROG()
142 inner_map = bpf_map_lookup_elem(&outer_arr, &key); in BPF_PROG()
144 value = bpf_map_lookup_elem(inner_map, &key); in BPF_PROG()
148 inner_map = bpf_map_lookup_elem(&outer_hash, &key); in BPF_PROG()
150 value = bpf_map_lookup_elem(inner_map, &key); in BPF_PROG()
Dverifier_helper_access_var_len.c341 : __imm(bpf_map_lookup_elem), in memory_map_jmp_correct_bounds()
374 : __imm(bpf_map_lookup_elem), in memory_map_jmp_wrong_max()
407 : __imm(bpf_map_lookup_elem), in map_adjusted_jmp_correct_bounds()
442 : __imm(bpf_map_lookup_elem), in map_adjusted_jmp_wrong_max()
531 __imm(bpf_map_lookup_elem), in ptr_to_mem_or_null_4()
561 __imm(bpf_map_lookup_elem), in ptr_to_mem_or_null_5()
589 __imm(bpf_map_lookup_elem), in ptr_to_mem_or_null_6()
690 : __imm(bpf_map_lookup_elem), in ptr_to_mem_or_null_11()
717 : __imm(bpf_map_lookup_elem), in ptr_to_mem_or_null_12()
743 : __imm(bpf_map_lookup_elem), in ptr_to_mem_or_null_13()
Dverifier_value_illegal_alu.c41 : __imm(bpf_map_lookup_elem), in value_illegal_alu_op_1()
65 : __imm(bpf_map_lookup_elem), in value_illegal_alu_op_2()
89 : __imm(bpf_map_lookup_elem), in value_illegal_alu_op_3()
114 : __imm(bpf_map_lookup_elem), in __flag()
144 : __imm(bpf_map_lookup_elem), in __flag()
Dverifier_search_pruning.c49 : __imm(bpf_map_lookup_elem), in __retval()
73 : __imm(bpf_map_lookup_elem), in __retval()
121 : __imm(bpf_map_lookup_elem), in __flag()
156 __imm(bpf_map_lookup_elem), in should_be_verified_nop_operation()
188 __imm(bpf_map_lookup_elem), in be_verified_invalid_stack_access()
227 __imm(bpf_map_lookup_elem), in tracking_for_u32_spill_fill()
Dverifier_var_off.c222 : __imm(bpf_map_lookup_elem), in access_max_out_of_bound()
251 : __imm(bpf_map_lookup_elem), in access_min_out_of_bound()
280 : __imm(bpf_map_lookup_elem), in access_min_off_min_initialized()
313 : __imm(bpf_map_lookup_elem), in stack_access_priv_vs_unpriv()
344 : __imm(bpf_map_lookup_elem), in variable_offset_stack_access_ok()
Dverifier_map_in_map.c43 : __imm(bpf_map_lookup_elem), in map_in_map_access()
81 : __imm(bpf_map_lookup_elem), in __flag()
110 : __imm(bpf_map_lookup_elem), in invalid_inner_map_pointer()
137 : __imm(bpf_map_lookup_elem), in on_the_inner_map_pointer()
Dverifier_value.c39 : __imm(bpf_map_lookup_elem), in store_of_cleared_call_register()
89 : __imm(bpf_map_lookup_elem), in __flag()
121 : __imm(bpf_map_lookup_elem), in __flag()
152 : __imm(bpf_map_lookup_elem), in __flag()
Dtest_sockmap_listen.c47 value = bpf_map_lookup_elem(&parser_map, &key); in prog_stream_parser()
66 count = bpf_map_lookup_elem(&verdict_map, &verdict); in prog_stream_verdict()
87 count = bpf_map_lookup_elem(&verdict_map, &verdict); in prog_skb_verdict()
106 count = bpf_map_lookup_elem(&verdict_map, &verdict); in prog_msg_verdict()
126 count = bpf_map_lookup_elem(&verdict_map, &verdict); in prog_reuseport()
/Linux-v6.6/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()
Dmap_perf_test.bpf.c113 value = bpf_map_lookup_elem(&hash_map, &key); in BPF_KSYSCALL()
131 value = bpf_map_lookup_elem(&percpu_hash_map, &key); in BPF_KSYSCALL()
148 value = bpf_map_lookup_elem(&hash_map_alloc, &key); in BPF_KSYSCALL()
165 value = bpf_map_lookup_elem(&percpu_hash_map_alloc, &key); in BPF_KSYSCALL()
218 nolocal_lru_map = bpf_map_lookup_elem(&array_of_lru_hashs, in BPF_KSYSCALL()
234 bpf_map_lookup_elem(&lru_hash_lookup_map, &key); in BPF_KSYSCALL()
265 bpf_map_lookup_elem(&lpm_trie_map_alloc, &key); in BPF_KSYSCALL()
278 value = bpf_map_lookup_elem(&hash_map, &key); in BPF_KSYSCALL()
291 value = bpf_map_lookup_elem(&array_map, &key); in BPF_KSYSCALL()
/Linux-v6.6/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()

12345678910>>...12