Home
last modified time | relevance | path

Searched refs:inner_map_fd (Results 1 – 13 of 13) sorted by relevance

/tools/testing/selftests/bpf/map_tests/
A Dmap_in_map_batch_ops.c66 static int create_outer_map(enum bpf_map_type map_type, __u32 inner_map_fd) in create_outer_map() argument
71 attr.inner_map_fd = inner_map_fd; in create_outer_map()
88 int inner_map_fd, entry, err; in validate_fetch_results() local
93 inner_map_fd = bpf_map_get_fd_by_id(outer_map_value); in validate_fetch_results()
94 CHECK(inner_map_fd < 0, in validate_fetch_results()
98 err = bpf_map_get_next_key(inner_map_fd, NULL, &inner_map_key); in validate_fetch_results()
103 err = bpf_map_lookup_elem(inner_map_fd, &inner_map_key, in validate_fetch_results()
106 close(inner_map_fd); in validate_fetch_results()
A Dmap_percpu_stats.c396 .inner_map_fd = create_small_hash(), in create_hash_of_maps()
402 close(map_opts.inner_map_fd); in create_hash_of_maps()
/tools/testing/selftests/bpf/prog_tests/
A Dbloom_filter_map.c112 int outer_map_fd, inner_map_fd, err, i, key = 0; in test_inner_map() local
116 inner_map_fd = bpf_map_create(BPF_MAP_TYPE_BLOOM_FILTER, NULL, 0, sizeof(*rand_vals), in test_inner_map()
118 if (!ASSERT_GE(inner_map_fd, 0, "bpf_map_create bloom filter inner map")) in test_inner_map()
122 err = bpf_map_update_elem(inner_map_fd, NULL, rand_vals + i, BPF_ANY); in test_inner_map()
129 err = bpf_map_update_elem(outer_map_fd, &key, &inner_map_fd, BPF_ANY); in test_inner_map()
150 close(inner_map_fd); in test_inner_map()
A Dbtf_map_in_map.c112 int err, inner_map_fd, zero = 0; in test_diff_size() local
118 inner_map_fd = bpf_map__fd(skel->maps.sockarr_sz2); in test_diff_size()
120 &inner_map_fd, 0); in test_diff_size()
124 inner_map_fd = bpf_map__fd(skel->maps.inner_map_sz2); in test_diff_size()
126 &inner_map_fd, 0); in test_diff_size()
A Dselect_reuseport.c77 opts.inner_map_fd = reuseport_array; in create_maps()
/tools/bpf/bpftool/
A Dmap.c1326 int inner_map_fd; in do_create() local
1331 inner_map_fd = map_parse_fd_and_info(&argc, &argv, in do_create()
1333 if (inner_map_fd < 0) in do_create()
1335 attr.inner_map_fd = inner_map_fd; in do_create()
1364 if (attr.inner_map_fd > 0) in do_create()
1365 close(attr.inner_map_fd); in do_create()
/tools/testing/selftests/bpf/
A Dtest_verifier.c637 int inner_map_fd, outer_map_fd; in create_map_in_map() local
639 inner_map_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, NULL, sizeof(int), in create_map_in_map()
641 if (inner_map_fd < 0) { in create_map_in_map()
645 return inner_map_fd; in create_map_in_map()
648 opts.inner_map_fd = inner_map_fd; in create_map_in_map()
658 close(inner_map_fd); in create_map_in_map()
/tools/lib/bpf/
A Dgen_loader.c37 __u32 inner_map_fd; member
518 move_stack2blob(gen, attr_field(map_create_attr, inner_map_fd), 4, in bpf_gen__map_create()
519 stack_off(inner_map_fd)); in bpf_gen__map_create()
545 stack_off(inner_map_fd))); in bpf_gen__map_create()
557 emit_sys_close_stack(gen, stack_off(inner_map_fd)); in bpf_gen__map_create()
A Dlibbpf_probes.c379 opts.inner_map_fd = fd_inner; in probe_map_create()
A Dbpf.h48 __u32 inner_map_fd; member
A Dbpf.c199 attr.inner_map_fd = OPTS_GET(opts, inner_map_fd, 0); in bpf_map_create()
A Dlibbpf.c558 int inner_map_fd; member
1784 map->inner_map_fd = -1; in bpf_object__add_map()
5253 map->inner_map_fd = map->inner_map->fd; in bpf_object__create_map()
5255 if (map->inner_map_fd >= 0) in bpf_object__create_map()
5256 create_attr.inner_map_fd = map->inner_map_fd; in bpf_object__create_map()
10505 if (map->inner_map_fd != -1) { in bpf_map__set_inner_map_fd()
10513 map->inner_map_fd = fd; in bpf_map__set_inner_map_fd()
/tools/include/uapi/linux/
A Dbpf.h1493 __u32 inner_map_fd; /* fd pointing to the inner map */ member

Completed in 62 milliseconds