Home
last modified time | relevance | path

Searched refs:bpf_obj_get_info_by_fd (Results 1 – 25 of 32) sorted by relevance

12

/tools/testing/selftests/bpf/prog_tests/
Dmetadata.c28 ret = bpf_obj_get_info_by_fd(map_fd, &map_info, &map_info_len); in prog_holds_map()
33 ret = bpf_obj_get_info_by_fd(prog_fd, &prog_info, &prog_info_len); in prog_holds_map()
47 ret = bpf_obj_get_info_by_fd(prog_fd, &prog_info, &prog_info_len); in prog_holds_map()
Dxdp_link.c31 err = bpf_obj_get_info_by_fd(prog_fd1, &prog_info, &prog_info_len); in test_xdp_link()
37 err = bpf_obj_get_info_by_fd(prog_fd2, &prog_info, &prog_info_len); in test_xdp_link()
123 err = bpf_obj_get_info_by_fd(bpf_link__fd(link), &link_info, &link_info_len); in test_xdp_link()
139 err = bpf_obj_get_info_by_fd(bpf_link__fd(link), &link_info, &link_info_len); in test_xdp_link()
Dbpf_obj_id.c82 err = bpf_obj_get_info_by_fd(map_fds[i], &map_infos[i], in test_bpf_obj_id()
121 err = bpf_obj_get_info_by_fd(prog_fds[i], &prog_infos[i], in test_bpf_obj_id()
164 err = bpf_obj_get_info_by_fd(bpf_link__fd(links[i]), in test_bpf_obj_id()
220 err = bpf_obj_get_info_by_fd(prog_fd, &prog_info, &info_len); in test_bpf_obj_id()
231 err = bpf_obj_get_info_by_fd(prog_fd, &prog_info, &info_len); in test_bpf_obj_id()
280 err = bpf_obj_get_info_by_fd(map_fd, &map_info, &info_len); in test_bpf_obj_id()
325 err = bpf_obj_get_info_by_fd(link_fd, &link_info, &info_len); in test_bpf_obj_id()
Dxdp_attach.c22 err = bpf_obj_get_info_by_fd(fd1, &info, &len); in test_xdp_attach()
32 err = bpf_obj_get_info_by_fd(fd2, &info, &len); in test_xdp_attach()
Denable_stats.c31 err = bpf_obj_get_info_by_fd(prog_fd, &info, &info_len); in test_enable_stats()
Dxdp_info.c36 err = bpf_obj_get_info_by_fd(prog_fd, &info, &len); in test_xdp_info()
Dxdp_cpumap_attach.c37 err = bpf_obj_get_info_by_fd(prog_fd, &info, &len); in test_xdp_with_cpumap_helpers()
Dxdp_devmap_attach.c39 err = bpf_obj_get_info_by_fd(dm_fd, &info, &len); in test_xdp_with_devmap_helpers()
Dflow_dissector_reattach.c63 err = bpf_obj_get_info_by_fd(prog, &info, &info_len); in query_prog_id()
500 err = bpf_obj_get_info_by_fd(link, &info, &info_len); in test_link_get_info()
524 err = bpf_obj_get_info_by_fd(link, &info, &info_len); in test_link_get_info()
549 err = bpf_obj_get_info_by_fd(link, &info, &info_len); in test_link_get_info()
Dtp_attach_query.c48 err = bpf_obj_get_info_by_fd(prog_fd[i], &prog_info, &info_len); in test_tp_attach_query()
Dbtf_map_in_map.c17 err = bpf_obj_get_info_by_fd(bpf_map__fd(map), &info, &info_len); in bpf_map_id()
Dpinning.c21 err = bpf_obj_get_info_by_fd(bpf_map__fd(map), in get_map_id()
/tools/testing/selftests/bpf/
Dtesting_helpers.c74 err = bpf_obj_get_info_by_fd(bpf_link__fd(link), info, &info_len); in link_info_prog_id()
Dtest_skb_cgroup_id_user.c97 if (bpf_obj_get_info_by_fd(prog_fd, &info, &info_len)) { in get_map_fd_by_prog_id()
Dtest_tcp_check_syncookie_user.c98 if (bpf_obj_get_info_by_fd(prog_fd, &info, &info_len)) { in get_map_fd_by_prog_id()
/tools/bpf/bpftool/
Dstruct_ops.c156 err = bpf_obj_get_info_by_fd(fd, info, &info_len); in get_next_struct_ops_map()
267 if (bpf_obj_get_info_by_fd(fd, info, &info_len)) { in do_one_id()
531 if (!bpf_obj_get_info_by_fd(bpf_map__fd(map), &info, in do_register()
Dcommon.c416 if (bpf_obj_get_info_by_fd(fd, &pinned_info, &len)) in do_build_table_cb()
681 err = bpf_obj_get_info_by_fd(fd, &info, &len); in prog_fd_by_nametag()
833 err = bpf_obj_get_info_by_fd(fd, &info, &len); in map_fd_by_name()
952 err = bpf_obj_get_info_by_fd(fd, info, info_len); in map_parse_fd_and_info()
Dlink.c106 err = bpf_obj_get_info_by_fd(prog_fd, info, &len); in get_prog_info()
271 err = bpf_obj_get_info_by_fd(fd, &info, &len); in do_show_link()
Dbtf.c485 err = bpf_obj_get_info_by_fd(fd, &info, &len); in do_dump()
673 err = bpf_obj_get_info_by_fd(fd, info, len); in build_btf_type_table()
811 err = bpf_obj_get_info_by_fd(fd, &info, &len); in show_btf()
Dmap.c664 err = bpf_obj_get_info_by_fd(fds[i], &info, &len); in do_show_subset()
727 err = bpf_obj_get_info_by_fd(fd, &info, &len); in do_show()
780 err = bpf_obj_get_info_by_fd(fds[i], &info, &len); in maps_have_btf()
942 if (bpf_obj_get_info_by_fd(fds[i], &info, &len)) { in do_dump()
Dprog.c139 err = bpf_obj_get_info_by_fd(fd, &info, &len); in show_prog_maps()
172 ret = bpf_obj_get_info_by_fd(prog_fd, &prog_info, &prog_info_len); in find_metadata()
189 ret = bpf_obj_get_info_by_fd(prog_fd, &prog_info, &prog_info_len); in find_metadata()
200 ret = bpf_obj_get_info_by_fd(map_fd, map_info, &map_info_len); in find_metadata()
509 err = bpf_obj_get_info_by_fd(fd, &info, &len); in show_prog()
/tools/lib/bpf/
Dlibbpf.map36 bpf_obj_get_info_by_fd;
Dringbuf.c68 err = bpf_obj_get_info_by_fd(map_fd, &info, &len); in ring_buffer__add()
Dxsk.c515 err = bpf_obj_get_info_by_fd(ctx->prog_fd, &prog_info, &prog_len); in xsk_lookup_bpf_maps()
529 err = bpf_obj_get_info_by_fd(ctx->prog_fd, &prog_info, &prog_len); in xsk_lookup_bpf_maps()
541 err = bpf_obj_get_info_by_fd(fd, &map_info, &map_len); in xsk_lookup_bpf_maps()
Dbpf.h233 LIBBPF_API int bpf_obj_get_info_by_fd(int bpf_fd, void *info, __u32 *info_len);

12