Home
last modified time | relevance | path

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

123

/linux-6.1.9/tools/perf/util/
Dbpf_counter.h100 bpf_obj_get_info_by_fd(fd, &link_info, &link_info_len); in bpf_link_get_id()
109 bpf_obj_get_info_by_fd(fd, &link_info, &link_info_len); in bpf_link_get_prog_id()
118 bpf_obj_get_info_by_fd(fd, &map_info, &map_info_len); in bpf_map_get_id()
Dbpf-utils.c124 err = bpf_obj_get_info_by_fd(fd, &info, &info_len); in get_bpf_prog_info_linear()
186 err = bpf_obj_get_info_by_fd(fd, &info_linear->info, &info_len); in get_bpf_prog_info_linear()
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dxdp_link.c32 err = bpf_obj_get_info_by_fd(prog_fd1, &prog_info, &prog_info_len); in serial_test_xdp_link()
38 err = bpf_obj_get_info_by_fd(prog_fd2, &prog_info, &prog_info_len); in serial_test_xdp_link()
122 err = bpf_obj_get_info_by_fd(bpf_link__fd(link), &link_info, &link_info_len); in serial_test_xdp_link()
140 err = bpf_obj_get_info_by_fd(bpf_link__fd(link), &link_info, &link_info_len); in serial_test_xdp_link()
Dbpf_obj_id.c82 err = bpf_obj_get_info_by_fd(map_fds[i], &map_infos[i], in serial_test_bpf_obj_id()
121 err = bpf_obj_get_info_by_fd(prog_fds[i], &prog_infos[i], in serial_test_bpf_obj_id()
164 err = bpf_obj_get_info_by_fd(bpf_link__fd(links[i]), in serial_test_bpf_obj_id()
220 err = bpf_obj_get_info_by_fd(prog_fd, &prog_info, &info_len); in serial_test_bpf_obj_id()
231 err = bpf_obj_get_info_by_fd(prog_fd, &prog_info, &info_len); in serial_test_bpf_obj_id()
280 err = bpf_obj_get_info_by_fd(map_fd, &map_info, &info_len); in serial_test_bpf_obj_id()
325 err = bpf_obj_get_info_by_fd(link_fd, &link_info, &info_len); in serial_test_bpf_obj_id()
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_attach.c21 err = bpf_obj_get_info_by_fd(fd1, &info, &len); in serial_test_xdp_attach()
31 err = bpf_obj_get_info_by_fd(fd2, &info, &len); in serial_test_xdp_attach()
Dxdp_cpumap_attach.c36 err = bpf_obj_get_info_by_fd(prog_fd, &info, &len); in test_xdp_with_cpumap_helpers()
88 err = bpf_obj_get_info_by_fd(frags_prog_fd, &info, &len); in test_xdp_with_cpumap_frags_helpers()
Dxdp_devmap_attach.c38 err = bpf_obj_get_info_by_fd(dm_fd, &info, &len); in test_xdp_with_devmap_helpers()
101 err = bpf_obj_get_info_by_fd(dm_fd_frags, &info, &len); in test_xdp_with_devmap_frags_helpers()
Dfexit_bpf2bpf.c80 err = bpf_obj_get_info_by_fd(tgt_fd, &prog_info, &info_len); in test_fexit_bpf2bpf_common()
137 err = bpf_obj_get_info_by_fd(bpf_link__fd(link[i]), in test_fexit_bpf2bpf_common()
418 ret = bpf_obj_get_info_by_fd(attach_prog_fd, &info, &info_len); in find_prog_btf_id()
488 ASSERT_OK(bpf_obj_get_info_by_fd(fentry_fd, &info, &info_len), in test_fentry_to_cgroup_bpf()
Dunpriv_bpf_disabled.c182 if (ASSERT_OK(bpf_obj_get_info_by_fd(map_fds[0], &map_info, &map_info_len), in test_unpriv_bpf_disabled_negative()
190 if (ASSERT_OK(bpf_obj_get_info_by_fd(bpf_link__fd(skel->links.sys_nanosleep_enter), in test_unpriv_bpf_disabled_negative()
272 ASSERT_OK(bpf_obj_get_info_by_fd(prog_fd, &prog_info, &prog_info_len), in test_unpriv_bpf_disabled()
Dverif_stats.c19 err = bpf_obj_get_info_by_fd(skel->progs.sys_enter.prog_fd, &info, &len); in test_verif_stats()
Denable_stats.c31 err = bpf_obj_get_info_by_fd(prog_fd, &info, &info_len); in test_enable_stats()
Drecursion.c34 err = bpf_obj_get_info_by_fd(bpf_program__fd(skel->progs.on_delete), in test_recursion()
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()
Dxdp_info.c36 err = bpf_obj_get_info_by_fd(prog_fd, &info, &len); in serial_test_xdp_info()
Dprog_run_opts.c15 err = bpf_obj_get_info_by_fd(prog_fd, &info, &info_len); in check_run_cnt()
Dperf_link.c57 err = bpf_obj_get_info_by_fd(link_fd, &info, &info_len); in serial_test_perf_link()
/linux-6.1.9/tools/testing/selftests/bpf/
Dxdp_synproxy.c219 err = bpf_obj_get_info_by_fd(prog_fd, &info, &info_len); in syncookie_attach()
294 err = bpf_obj_get_info_by_fd(prog_fd, &prog_info, &info_len); in syncookie_open_bpf_maps()
319 err = bpf_obj_get_info_by_fd(map_fd, &map_info, &info_len); in syncookie_open_bpf_maps()
Dtest_skb_cgroup_id_user.c96 if (bpf_obj_get_info_by_fd(prog_fd, &info, &info_len)) { in get_map_fd_by_prog_id()
/linux-6.1.9/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()
528 if (!bpf_obj_get_info_by_fd(bpf_map__fd(map), &info, in do_register()
Dcommon.c354 if (bpf_obj_get_info_by_fd(prog_fd, &info, &info_len)) in get_prog_full_name()
489 if (bpf_obj_get_info_by_fd(fd, &pinned_info, &len)) in do_build_table_cb()
755 err = bpf_obj_get_info_by_fd(fd, &info, &len); in prog_fd_by_nametag()
915 err = bpf_obj_get_info_by_fd(fd, &info, &len); in map_fd_by_name()
1034 err = bpf_obj_get_info_by_fd(fd, info, info_len); in map_parse_fd_and_info()
Dbtf.c543 err = bpf_obj_get_info_by_fd(btf_fd, &btf_info, &len); in btf_is_kernel_module()
612 err = bpf_obj_get_info_by_fd(fd, &info, &len); in do_dump()
795 err = bpf_obj_get_info_by_fd(fd, info, len); in build_btf_type_table()
944 err = bpf_obj_get_info_by_fd(fd, &info, &len); in show_btf()
956 err = bpf_obj_get_info_by_fd(fd, &info, &len); in show_btf()
Dprog.c199 err = bpf_obj_get_info_by_fd(fd, &info, &len); in show_prog_maps()
232 ret = bpf_obj_get_info_by_fd(prog_fd, &prog_info, &prog_info_len); in find_metadata()
249 ret = bpf_obj_get_info_by_fd(prog_fd, &prog_info, &prog_info_len); in find_metadata()
260 ret = bpf_obj_get_info_by_fd(map_fd, map_info, &map_info_len); in find_metadata()
583 err = bpf_obj_get_info_by_fd(fd, &info, &len); in show_prog()
951 err = bpf_obj_get_info_by_fd(fds[i], &info, &info_len); in do_dump()
963 err = bpf_obj_get_info_by_fd(fds[i], &info, &info_len); in do_dump()
2106 err = bpf_obj_get_info_by_fd(tgt_fd, &info, &info_len); in profile_target_name()
2128 err = bpf_obj_get_info_by_fd(tgt_fd, &info, &info_len); in profile_target_name()
Dlink.c148 err = bpf_obj_get_info_by_fd(prog_fd, info, &len); in get_prog_info()
332 err = bpf_obj_get_info_by_fd(fd, &info, &len); in do_show_link()
/linux-6.1.9/samples/bpf/
Dxdp1_user.c156 err = bpf_obj_get_info_by_fd(prog_fd, &info, &info_len); in main()

123