Home
last modified time | relevance | path

Searched refs:outer_map_fd (Results 1 - 5 of 5) sorted by relevance

/kernel/linux/linux-6.6/tools/testing/selftests/bpf/map_tests/
H A Dmap_in_map_batch_ops.c68 int outer_map_fd; in create_outer_map() local
72 outer_map_fd = bpf_map_create(map_type, "outer_map", sizeof(__u32), in create_outer_map()
75 CHECK(outer_map_fd < 0, in create_outer_map()
80 return outer_map_fd; in create_outer_map()
83 static void validate_fetch_results(int outer_map_fd, in validate_fetch_results() argument
121 static void fetch_and_validate(int outer_map_fd, in fetch_and_validate() argument
142 ? bpf_map_lookup_and_delete_batch(outer_map_fd, in fetch_and_validate()
148 : bpf_map_lookup_batch(outer_map_fd, in fetch_and_validate()
177 validate_fetch_results(outer_map_fd, fetched_keys, in fetch_and_validate()
195 int outer_map_fd, re in _map_in_map_batch_ops() local
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_map_in_map.c34 int inner_map_fd, outer_map_fd, err, zero = 0; in kern_sync_rcu() local
40 outer_map_fd = bpf_create_map_in_map(BPF_MAP_TYPE_ARRAY_OF_MAPS, NULL, in kern_sync_rcu()
42 if (CHECK(outer_map_fd < 0, "outer_map_create", "failed %d\n", -errno)) { in kern_sync_rcu()
47 err = bpf_map_update_elem(outer_map_fd, &zero, &inner_map_fd, 0); in kern_sync_rcu()
52 close(outer_map_fd); in kern_sync_rcu()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dbloom_filter_map.c101 int outer_map_fd, inner_map_fd, err, i, key = 0; in test_inner_map() local
117 outer_map_fd = bpf_map__fd(skel->maps.outer_map); in test_inner_map()
118 err = bpf_map_update_elem(outer_map_fd, &key, &inner_map_fd, BPF_ANY); in test_inner_map()
135 err = bpf_map_delete_elem(outer_map_fd, &key); in test_inner_map()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
H A Dtest_verifier.c477 int inner_map_fd, outer_map_fd; in create_map_in_map() local
488 outer_map_fd = bpf_create_map_in_map(BPF_MAP_TYPE_ARRAY_OF_MAPS, NULL, in create_map_in_map()
490 if (outer_map_fd < 0) { in create_map_in_map()
499 return outer_map_fd; in create_map_in_map()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Dtest_verifier.c639 int inner_map_fd, outer_map_fd; in create_map_in_map() local
651 outer_map_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY_OF_MAPS, NULL, in create_map_in_map()
653 if (outer_map_fd < 0) { in create_map_in_map()
662 return outer_map_fd; in create_map_in_map()

Completed in 6 milliseconds