Home
last modified time | relevance | path

Searched refs:bpf_map_get_fd_by_id (Results 1 - 25 of 33) sorted by relevance

12

/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_map_in_map.c118 fd = bpf_map_get_fd_by_id(map1_id); in test_lookup_update()
123 fd = bpf_map_get_fd_by_id(map2_id); in test_lookup_update()
H A Dlibbpf_get_fd_by_id_opts.c37 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 Dmmap.c272 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 Dbpf_obj_id.c39 err = bpf_map_get_fd_by_id(0); in serial_test_bpf_obj_id()
258 map_fd = bpf_map_get_fd_by_id(next_id); in serial_test_bpf_obj_id()
H A Dunpriv_bpf_disabled.c188 ASSERT_EQ(bpf_map_get_fd_by_id(map_info.id), -EPERM, "map_get_fd_by_id_fails"); in test_unpriv_bpf_disabled_negative()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_map_in_map.c151 fd = bpf_map_get_fd_by_id(map1_id); in test_lookup_update()
156 fd = bpf_map_get_fd_by_id(map2_id); in test_lookup_update()
H A Dmmap.c258 tmp_fd = bpf_map_get_fd_by_id(data_map_id); in test_mmap()
277 tmp_fd = bpf_map_get_fd_by_id(data_map_id); in test_mmap()
H A Dbpf_obj_id.c39 err = bpf_map_get_fd_by_id(0); in test_bpf_obj_id()
258 map_fd = bpf_map_get_fd_by_id(next_id); in test_bpf_obj_id()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
H A Dtest_skb_cgroup_id_user.c107 map_fd = bpf_map_get_fd_by_id(map_ids[0]); in get_map_fd_by_prog_id()
H A Dtest_tcp_check_syncookie_user.c110 map_fd = bpf_map_get_fd_by_id(map_ids[0]); in get_map_fd_by_prog_id()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Dtest_skb_cgroup_id_user.c106 map_fd = bpf_map_get_fd_by_id(map_ids[0]); in get_map_fd_by_prog_id()
H A Dtest_tcp_check_syncookie_user.c111 map_fd = bpf_map_get_fd_by_id(map_ids[0]); in get_map_fd_by_prog_id()
H A Dxdp_synproxy.c314 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()
/kernel/linux/linux-5.10/tools/bpf/bpftool/
H A Dstruct_ops.c147 fd = bpf_map_get_fd_by_id(id); in get_next_struct_ops_map()
254 fd = bpf_map_get_fd_by_id(id); in do_one_id()
H A Dcommon.c826 fd = bpf_map_get_fd_by_id(id); in map_fd_by_name()
879 (*fds)[0] = bpf_map_get_fd_by_id(id); in map_parse_fds()
H A Dbtf.c656 fd = bpf_map_get_fd_by_id(id); in build_btf_type_table()
/kernel/linux/linux-6.6/tools/bpf/bpftool/
H A Dstruct_ops.c145 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 Dcommon.c915 fd = bpf_map_get_fd_by_id(id); in map_fd_by_name()
968 (*fds)[0] = bpf_map_get_fd_by_id(id); in map_parse_fds()
H A Dbtf.c775 fd = bpf_map_get_fd_by_id(id); in build_btf_type_table()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/map_tests/
H A Dmap_in_map_batch_ops.c93 inner_map_fd = bpf_map_get_fd_by_id(outer_map_value); in validate_fetch_results()
/kernel/linux/linux-5.10/tools/lib/bpf/
H A Dbpf.h230 LIBBPF_API int bpf_map_get_fd_by_id(__u32 id);
H A Dxsk.c536 fd = bpf_map_get_fd_by_id(map_ids[i]); in xsk_lookup_bpf_maps()
H A Dbpf.c803 int bpf_map_get_fd_by_id(__u32 id) in bpf_map_get_fd_by_id() function
/kernel/linux/linux-6.6/tools/lib/bpf/
H A Dbpf.h474 LIBBPF_API int bpf_map_get_fd_by_id(__u32 id);
/kernel/linux/linux-6.6/tools/perf/util/
H A Dbpf_counter.c497 diff_map_fd = bpf_map_get_fd_by_id(entry.diff_map_id); in bperf__load()

Completed in 23 milliseconds

12