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

/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dlibbpf_get_fd_by_id_opts.c37 fd = bpf_map_get_fd_by_id(info_m.id);
38 if (!ASSERT_LT(fd, 0, "bpf_map_get_fd_by_id"))
H A Dbtf_map_in_map.c118 fd = bpf_map_get_fd_by_id(map1_id);
123 fd = bpf_map_get_fd_by_id(map2_id);
H A Dmmap.c272 tmp_fd = bpf_map_get_fd_by_id(data_map_id);
291 tmp_fd = bpf_map_get_fd_by_id(data_map_id);
H A Dbpf_obj_id.c39 err = bpf_map_get_fd_by_id(0);
40 ASSERT_LT(err, 0, "bpf_map_get_fd_by_id");
41 ASSERT_EQ(errno, ENOENT, "bpf_map_get_fd_by_id");
44 ASSERT_LT(err, 0, "bpf_map_get_fd_by_id");
45 ASSERT_EQ(errno, ENOENT, "bpf_map_get_fd_by_id");
214 map_fd = bpf_map_get_fd_by_id(next_id);
218 if (!ASSERT_GE(map_fd, 0, "bpf_map_get_fd_by_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");
/linux-master/tools/testing/selftests/bpf/
H A Dtest_skb_cgroup_id_user.c106 map_fd = bpf_map_get_fd_by_id(map_ids[0]);
H A Dtest_tcp_check_syncookie_user.c111 map_fd = bpf_map_get_fd_by_id(map_ids[0]);
H A Dxdp_synproxy.c314 err = bpf_map_get_fd_by_id(map_ids[i]);
316 fprintf(stderr, "Error: bpf_map_get_fd_by_id: %s\n", strerror(-err));
H A Dtest_maps.c1274 fd = bpf_map_get_fd_by_id(id);
/linux-master/tools/bpf/bpftool/
H A Dstruct_ops.c145 fd = bpf_map_get_fd_by_id(id);
252 fd = bpf_map_get_fd_by_id(id);
H A Dcommon.c915 fd = bpf_map_get_fd_by_id(id);
968 (*fds)[0] = bpf_map_get_fd_by_id(id);
H A Dbtf.c775 fd = bpf_map_get_fd_by_id(id);
H A Dmap.c710 fd = bpf_map_get_fd_by_id(id);
H A Dprog.c256 map_fd = bpf_map_get_fd_by_id(map_ids[i]);
/linux-master/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);
/linux-master/tools/lib/bpf/
H A Dbpf.h494 LIBBPF_API int bpf_map_get_fd_by_id(__u32 id);
H A Dbpf.c1088 int bpf_map_get_fd_by_id(__u32 id) function
/linux-master/tools/perf/util/
H A Dbpf_counter.c500 diff_map_fd = bpf_map_get_fd_by_id(entry.diff_map_id);
/linux-master/kernel/bpf/
H A Dsyscall.c4385 static int bpf_map_get_fd_by_id(const union bpf_attr *attr) function
5696 err = bpf_map_get_fd_by_id(&attr);

Completed in 318 milliseconds