Home
last modified time | relevance | path

Searched refs:array_map (Results 1 – 22 of 22) sorted by relevance

/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dmap_kptr_fail.c16 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 …]
Dcb_refs.c16 } 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()
Dlinked_list.h28 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);
Dtest_spin_lock_fail.c12 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()
Dtest_map_ops.c27 } 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()
Dbloom_filter_bench.c23 } 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()
Dfor_each_map_elem_write_key.c10 } array_map SEC(".maps");
23 bpf_for_each_map_elem(&array_map, check_array_elem, NULL, 0); in test_map_key_write()
Dmap_kptr.c12 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()
Dtest_map_lock.c31 } array_map SEC(".maps");
51 q = bpf_map_lookup_elem(&array_map, &key); in bpf_map_lock_test()
Dtest_kfunc_dynptr_param.c31 } array_map SEC(".maps");
68 value = bpf_map_lookup_elem(&array_map, &zero); in BPF_PROG()
Ddynptr_success.c34 } 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()
Dlinked_list.c298 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()
Dcrypto_common.h23 struct array_map { struct
Dcpumask_common.h24 struct array_map { struct
Dlinked_list_fail.c19 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/
Dxdp_sample.bpf.c9 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");
Dxdp_sample.bpf.h24 } array_map; typedef
26 extern array_map rx_cnt;
Dmap_perf_test.bpf.c94 } 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/
Dbench_bloom_filter_map.c214 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/
Dlinked_list.c172 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()
Dmap_kptr.c51 ret = bpf_map__update_elem(skel->maps.array_map, in test_map_kptr_success()
/linux-6.12.1/Documentation/bpf/
Dcpumasks.rst57 struct array_map {