/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A D | btf_map_in_map.c | 34 int inner_map_fd, outer_map_fd, err, zero = 0; in kern_sync_rcu() local 36 inner_map_fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, 4, 4, 1, 0); in kern_sync_rcu() 37 if (CHECK(inner_map_fd < 0, "inner_map_create", "failed %d\n", -errno)) in kern_sync_rcu() 41 sizeof(int), inner_map_fd, 1, 0); in kern_sync_rcu() 43 close(inner_map_fd); in kern_sync_rcu() 47 err = bpf_map_update_elem(outer_map_fd, &zero, &inner_map_fd, 0); in kern_sync_rcu() 51 close(inner_map_fd); in kern_sync_rcu() 169 int err, inner_map_fd, zero = 0; in test_diff_size() local 175 inner_map_fd = bpf_map__fd(skel->maps.sockarr_sz2); in test_diff_size() 177 &inner_map_fd, in test_diff_size() [all...] |
H A D | select_reuseport.c | 90 attr.inner_map_fd = reuseport_array; in create_maps()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/map_tests/ |
H A D | map_in_map_batch_ops.c | 66 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()
|
H A D | map_percpu_stats.c | 372 .inner_map_fd = create_small_hash(), in create_hash_of_maps() 378 close(map_opts.inner_map_fd); in create_hash_of_maps()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | btf_map_in_map.c | 136 int err, inner_map_fd, zero = 0; in test_diff_size() local 142 inner_map_fd = bpf_map__fd(skel->maps.sockarr_sz2); in test_diff_size() 144 &inner_map_fd, 0); in test_diff_size() 148 inner_map_fd = bpf_map__fd(skel->maps.inner_map_sz2); in test_diff_size() 150 &inner_map_fd, 0); in test_diff_size()
|
H A D | bloom_filter_map.c | 101 int outer_map_fd, inner_map_fd, err, i, key = 0; in test_inner_map() local 105 inner_map_fd = bpf_map_create(BPF_MAP_TYPE_BLOOM_FILTER, NULL, 0, sizeof(*rand_vals), in test_inner_map() 107 if (!ASSERT_GE(inner_map_fd, 0, "bpf_map_create bloom filter inner map")) in test_inner_map() 111 err = bpf_map_update_elem(inner_map_fd, NULL, rand_vals + i, BPF_ANY); in test_inner_map() 112 if (!ASSERT_OK(err, "Add random value to inner_map_fd")) in test_inner_map() 118 err = bpf_map_update_elem(outer_map_fd, &key, &inner_map_fd, BPF_ANY); in test_inner_map() 139 close(inner_map_fd); in test_inner_map()
|
H A D | select_reuseport.c | 79 opts.inner_map_fd = reuseport_array; in create_maps()
|
/kernel/linux/linux-5.10/samples/bpf/ |
H A D | test_map_in_map_user.c | 34 static void check_map_id(int inner_map_fd, int map_in_map_fd, uint32_t key) in check_map_id() argument 40 ret = bpf_obj_get_info_by_fd(inner_map_fd, &info, &info_len); in check_map_id()
|
H A D | bpf_load.c | 285 int inner_map_fd = map_fd[maps[i].def.inner_map_idx]; in load_maps() local 290 inner_map_fd, in load_maps()
|
/kernel/linux/linux-6.6/samples/bpf/ |
H A D | test_map_in_map_user.c | 35 static void check_map_id(int inner_map_fd, int map_in_map_fd, uint32_t key) in check_map_id() argument 41 ret = bpf_map_get_info_by_fd(inner_map_fd, &info, &info_len); in check_map_id()
|
/kernel/linux/linux-5.10/tools/lib/bpf/ |
H A D | bpf.h | 50 __u32 inner_map_fd; member 67 int inner_map_fd, int max_entries, 71 int inner_map_fd, int max_entries,
|
H A D | bpf.c | 102 attr.inner_map_fd = create_attr->inner_map_fd; in bpf_create_map_xattr() 158 int key_size, int inner_map_fd, int max_entries, in bpf_create_map_in_map_node() 168 attr.inner_map_fd = inner_map_fd; in bpf_create_map_in_map_node() 184 int key_size, int inner_map_fd, int max_entries, in bpf_create_map_in_map() 188 inner_map_fd, max_entries, map_flags, in bpf_create_map_in_map() 157 bpf_create_map_in_map_node(enum bpf_map_type map_type, const char *name, int key_size, int inner_map_fd, int max_entries, __u32 map_flags, int node) bpf_create_map_in_map_node() argument 183 bpf_create_map_in_map(enum bpf_map_type map_type, const char *name, int key_size, int inner_map_fd, int max_entries, __u32 map_flags) bpf_create_map_in_map() argument
|
/kernel/linux/linux-5.10/tools/bpf/bpftool/ |
H A D | map.c | 1314 int inner_map_fd; in do_create() local 1319 inner_map_fd = map_parse_fd_and_info(&argc, &argv, in do_create() 1321 if (inner_map_fd < 0) in do_create() 1323 attr.inner_map_fd = inner_map_fd; in do_create() 1352 if (attr.inner_map_fd > 0) in do_create() 1353 close(attr.inner_map_fd); in do_create()
|
/kernel/linux/linux-6.6/tools/bpf/bpftool/ |
H A D | map.c | 1312 int inner_map_fd; in do_create() local 1317 inner_map_fd = map_parse_fd_and_info(&argc, &argv, in do_create() 1319 if (inner_map_fd < 0) in do_create() 1321 attr.inner_map_fd = inner_map_fd; in do_create() 1350 if (attr.inner_map_fd > 0) in do_create() 1351 close(attr.inner_map_fd); in do_create()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
H A D | test_verifier.c | 477 int inner_map_fd, outer_map_fd; in create_map_in_map() local 479 inner_map_fd = bpf_create_map(BPF_MAP_TYPE_ARRAY, sizeof(int), in create_map_in_map() 481 if (inner_map_fd < 0) { in create_map_in_map() 485 return inner_map_fd; in create_map_in_map() 489 sizeof(int), inner_map_fd, 1, 0); in create_map_in_map() 497 close(inner_map_fd); in create_map_in_map()
|
/kernel/linux/linux-6.6/tools/lib/bpf/ |
H A D | gen_loader.c | 36 __u32 inner_map_fd; member 484 move_stack2blob(gen, attr_field(map_create_attr, inner_map_fd), 4, in bpf_gen__map_create() 485 stack_off(inner_map_fd)); in bpf_gen__map_create() 511 stack_off(inner_map_fd))); in bpf_gen__map_create() 523 emit_sys_close_stack(gen, stack_off(inner_map_fd)); in bpf_gen__map_create()
|
H A D | libbpf_probes.c | 366 opts.inner_map_fd = fd_inner; in probe_map_create()
|
H A D | bpf.h | 48 __u32 inner_map_fd; member
|
H A D | bpf.c | 195 attr.inner_map_fd = OPTS_GET(opts, inner_map_fd, 0); in bpf_map_create()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
H A D | test_verifier.c | 639 int inner_map_fd, outer_map_fd; in create_map_in_map() local 641 inner_map_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY, NULL, sizeof(int), in create_map_in_map() 643 if (inner_map_fd < 0) { in create_map_in_map() 647 return inner_map_fd; in create_map_in_map() 650 opts.inner_map_fd = inner_map_fd; in create_map_in_map() 660 close(inner_map_fd); in create_map_in_map()
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
H A D | bpf.h | 193 __u32 inner_map_fd; member
|
/kernel/linux/linux-5.10/tools/include/uapi/linux/ |
H A D | bpf.h | 492 __u32 inner_map_fd; /* fd pointing to the inner map */ member
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
H A D | bpf.h | 492 __u32 inner_map_fd; /* fd pointing to the inner map */ member
|
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/ |
H A D | bpf.h | 292 __u32 inner_map_fd; member
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
H A D | bpf.h | 292 __u32 inner_map_fd; member
|