Searched refs:bpf_map_get_fd_by_id (Results 1 – 17 of 17) sorted by relevance
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | libbpf_get_fd_by_id_opts.c | 37 fd = bpf_map_get_fd_by_id(info_m.id); in test_libbpf_get_fd_by_id_opts() 38 if (!ASSERT_LT(fd, 0, "bpf_map_get_fd_by_id")) in test_libbpf_get_fd_by_id_opts()
|
H A D | bpf_obj_id.c | 39 err = bpf_map_get_fd_by_id(0); in serial_test_bpf_obj_id() 40 ASSERT_LT(err, 0, "bpf_map_get_fd_by_id"); in serial_test_bpf_obj_id() 41 ASSERT_EQ(errno, ENOENT, "bpf_map_get_fd_by_id"); in serial_test_bpf_obj_id() 44 ASSERT_LT(err, 0, "bpf_map_get_fd_by_id"); in serial_test_bpf_obj_id() 45 ASSERT_EQ(errno, ENOENT, "bpf_map_get_fd_by_id"); in serial_test_bpf_obj_id() 214 map_fd = bpf_map_get_fd_by_id(next_id); in serial_test_bpf_obj_id() 218 if (!ASSERT_GE(map_fd, 0, "bpf_map_get_fd_by_id")) in serial_test_bpf_obj_id()
|
H A D | mmap.c | 272 tmp_fd = bpf_map_get_fd_by_id(data_map_id); in test_mmap() 291 tmp_fd = bpf_map_get_fd_by_id(data_map_id); in test_mmap()
|
H A D | fd_htab_lookup.c | 35 inner_fd = bpf_map_get_fd_by_id(value); in htab_lookup_fn()
|
H A D | fd_array.c | 59 fd = bpf_map_get_fd_by_id(id); in map_exists()
|
H A D | unpriv_bpf_disabled.c | 189 ASSERT_EQ(bpf_map_get_fd_by_id(map_info.id), -EPERM, "map_get_fd_by_id_fails"); in test_unpriv_bpf_disabled_negative()
|
/linux/tools/bpf/bpftool/ |
H A D | struct_ops.c | 145 fd = bpf_map_get_fd_by_id(id); in get_next_struct_ops_map() 252 fd = bpf_map_get_fd_by_id(id); in do_one_id()
|
H A D | prog.c | 256 map_fd = bpf_map_get_fd_by_id(map_ids[i]); in find_metadata()
|
/linux/tools/testing/selftests/bpf/map_tests/ |
H A D | map_in_map_batch_ops.c | 93 inner_map_fd = bpf_map_get_fd_by_id(outer_map_value); in validate_fetch_results()
|
/linux/tools/lib/bpf/ |
H A D | libbpf.map | 14 bpf_map_get_fd_by_id;
|
H A D | bpf.h | 503 LIBBPF_API int bpf_map_get_fd_by_id(__u32 id);
|
H A D | bpf.c | 1136 int bpf_map_get_fd_by_id(__u32 id) in bpf_map_get_fd_by_id() function
|
/linux/tools/testing/selftests/bpf/ |
H A D | xdp_synproxy.c | 314 err = bpf_map_get_fd_by_id(map_ids[i]); in syncookie_open_bpf_maps() 316 fprintf(stderr, "Error: bpf_map_get_fd_by_id: %s\n", strerror(-err)); in syncookie_open_bpf_maps()
|
H A D | test_maps.c | 1270 fd = bpf_map_get_fd_by_id(id); in test_map_in_map()
|
/linux/tools/perf/util/ |
H A D | bpf_counter.c | 521 diff_map_fd = bpf_map_get_fd_by_id(entry.diff_map_id); in bperf__load()
|
H A D | bpf-event.c | 195 map_fd = bpf_map_get_fd_by_id(map_id); in bpf_metadata_read_map_data()
|
/linux/kernel/bpf/ |
H A D | syscall.c | 4706 static int bpf_map_get_fd_by_id(const union bpf_attr *attr) in bpf_map_get_fd_by_id() function 6065 err = bpf_map_get_fd_by_id(&attr); in __sys_bpf()
|