Home
last modified time | relevance | path

Searched refs:rand_vals (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
Dbloom_filter_map.c98 static void test_inner_map(struct bloom_filter_map *skel, const __u32 *rand_vals, in test_inner_map() argument
105 inner_map_fd = bpf_map_create(BPF_MAP_TYPE_BLOOM_FILTER, NULL, 0, sizeof(*rand_vals), in test_inner_map()
111 err = bpf_map_update_elem(inner_map_fd, NULL, rand_vals + i, BPF_ANY); in test_inner_map()
147 __u32 *rand_vals = NULL; in setup_progs() local
158 rand_vals = malloc(sizeof(*rand_vals) * map_size); in setup_progs()
159 if (!rand_vals) { in setup_progs()
178 rand_vals[i] = val; in setup_progs()
182 *out_rand_vals = rand_vals; in setup_progs()
189 if (rand_vals) in setup_progs()
190 free(rand_vals); in setup_progs()
[all …]
/Linux-v6.6/tools/testing/selftests/bpf/progs/
Dbloom_filter_bench.c14 __u8 rand_vals[2500000]; variable
131 rand_vals + index); in bloom_hashmap_lookup()
143 rand_vals + index); in bloom_hashmap_lookup()
/Linux-v6.6/tools/testing/selftests/bpf/benchs/
Dbench_bloom_filter_map.c233 nr_rand_bytes = syscall(__NR_getrandom, ctx.skel->bss->rand_vals, in populate_maps()