/linux-6.12.1/tools/testing/selftests/bpf/progs/ |
D | map_kptr_fail.c | 16 struct array_map { struct 21 } array_map SEC(".maps"); 30 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() [all …]
|
D | cb_refs.c | 16 } array_map SEC(".maps"); 35 bpf_for_each_map_elem(&array_map, cb1, &p, 0); in underflow_prog() 55 v = bpf_map_lookup_elem(&array_map, &(int){0}); in leak_prog() 60 bpf_for_each_map_elem(&array_map, cb2, &p, 0); in leak_prog() 78 bpf_for_each_map_elem(&array_map, cb, &p, 0); in cb3() 95 bpf_for_each_map_elem(&array_map, cb3, &sp, 0); in nested_cb()
|
D | linked_list.h | 28 struct array_map { struct 35 struct array_map array_map SEC(".maps"); 36 struct array_map inner_map SEC(".maps"); 43 __array(values, struct array_map);
|
D | test_spin_lock_fail.c | 12 struct array_map { struct 17 } array_map SEC(".maps"); 24 __array(values, struct array_map); 27 [0] = &array_map, 59 f = bpf_map_lookup_elem(&array_map, &key); in lock_id_mapval_preserve() 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()
|
D | test_map_ops.c | 27 } array_map SEC(".maps"); 114 bpf_map_update_elem(&array_map, &key, &val, flags); in map_for_each_pass() 116 err = bpf_for_each_map_elem(&array_map, callback, &callback_ctx, flags); in map_for_each_pass() 132 bpf_map_update_elem(&array_map, &key, &val, flags); in map_for_each_fail() 135 err = bpf_for_each_map_elem(&array_map, callback, &callback_ctx, flags); in map_for_each_fail()
|
D | bloom_filter_bench.c | 23 } array_map SEC(".maps"); 99 bpf_for_each_map_elem(&array_map, bloom_callback, &data, 0); in bloom_lookup() 112 bpf_for_each_map_elem(&array_map, bloom_callback, &data, 0); in bloom_update()
|
D | for_each_map_elem_write_key.c | 10 } array_map SEC(".maps"); 23 bpf_for_each_map_elem(&array_map, check_array_elem, NULL, 0); in test_map_key_write()
|
D | map_kptr.c | 12 struct array_map { struct 17 } array_map SEC(".maps"); 109 DEFINE_MAP_OF_MAP(BPF_MAP_TYPE_ARRAY_OF_MAPS, array_map, array_of_array_maps); 115 DEFINE_MAP_OF_MAP(BPF_MAP_TYPE_HASH_OF_MAPS, array_map, hash_of_array_maps); 207 TEST(array_map); in test_map_kptr() 417 TEST(array_map); in test_map_kptr_ref1() 455 TEST(array_map); in test_map_kptr_ref2()
|
D | test_map_lock.c | 31 } array_map SEC(".maps"); 51 q = bpf_map_lookup_elem(&array_map, &key); in bpf_map_lock_test()
|
D | test_kfunc_dynptr_param.c | 31 } array_map SEC(".maps"); 68 value = bpf_map_lookup_elem(&array_map, &zero); in BPF_PROG()
|
D | dynptr_success.c | 34 } array_map SEC(".maps"); 80 bpf_map_update_elem(&array_map, &key, &val, 0); in test_dynptr_data() 82 map_val = bpf_map_lookup_elem(&array_map, &key); in test_dynptr_data()
|
D | linked_list.c | 298 v = bpf_map_lookup_elem(&array_map, &(int){0}); in map_list_push_pop() 356 v = bpf_map_lookup_elem(&array_map, &(int){0}); in map_list_push_pop_multiple() 393 v = bpf_map_lookup_elem(&array_map, &(int){0}); in map_list_in_list()
|
D | crypto_common.h | 23 struct array_map { struct
|
D | cpumask_common.h | 24 struct array_map { struct
|
D | linked_list_fail.c | 19 v = bpf_map_lookup_elem(&array_map, &(int){ 0 }); \ 22 v2 = bpf_map_lookup_elem(&array_map, &(int){ 0 }); \
|
/linux-6.12.1/samples/bpf/ |
D | xdp_sample.bpf.c | 9 array_map rx_cnt SEC(".maps"); 10 array_map redir_err_cnt SEC(".maps"); 11 array_map cpumap_enqueue_cnt SEC(".maps"); 12 array_map cpumap_kthread_cnt SEC(".maps"); 13 array_map exception_cnt SEC(".maps"); 14 array_map devmap_xmit_cnt SEC(".maps");
|
D | xdp_sample.bpf.h | 24 } array_map; typedef 26 extern array_map rx_cnt;
|
D | map_perf_test.bpf.c | 94 } array_map SEC(".maps"); 291 value = bpf_map_lookup_elem(&array_map, &key); in BPF_KSYSCALL()
|
/linux-6.12.1/tools/testing/selftests/bpf/benchs/ |
D | bench_bloom_filter_map.c | 214 ctx.array_map_fd = bpf_map__fd(ctx.skel->maps.array_map); in populate_maps() 274 bpf_map__set_max_entries(skel->maps.array_map, args.nr_entries); in setup_skeleton() 279 bpf_map__set_value_size(skel->maps.array_map, args.value_size); in setup_skeleton()
|
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | linked_list.c | 172 clear_fields(skel->maps.array_map); in test_linked_list_success() 206 clear_fields(skel->maps.array_map); in test_linked_list_success() 228 clear_fields(skel->maps.array_map); in test_linked_list_success()
|
D | map_kptr.c | 51 ret = bpf_map__update_elem(skel->maps.array_map, in test_map_kptr_success()
|
/linux-6.12.1/Documentation/bpf/ |
D | cpumasks.rst | 57 struct array_map {
|