Home
last modified time | relevance | path

Searched refs:bpf_prog_get_fd_by_id (Results 1 – 19 of 19) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dcgroup_attach_autodetach.c88 int fd = bpf_prog_get_fd_by_id(prog_ids[i]); in serial_test_cgroup_attach_autodetach()
H A Dbpf_obj_id.c35 err = bpf_prog_get_fd_by_id(0); in serial_test_bpf_obj_id()
161 prog_fd = bpf_prog_get_fd_by_id(next_id); in serial_test_bpf_obj_id()
H A Dunpriv_bpf_disabled.c183 ASSERT_EQ(bpf_prog_get_fd_by_id(prog_id), -EPERM, "prog_get_fd_by_id_fails"); in test_unpriv_bpf_disabled_negative()
/linux/tools/testing/selftests/bpf/
H A Dtest_cpp.cpp116 bpf_prog_get_fd_by_id(0); in main()
H A Dxdp_synproxy.c46 prog_fd = bpf_prog_get_fd_by_id(attached_prog_id); in cleanup()
284 prog_fd = bpf_prog_get_fd_by_id(prog_id); in syncookie_open_bpf_maps()
/linux/samples/bpf/
H A Dxdp_fwd_user.c72 prog_fd = bpf_prog_get_fd_by_id(curr_prog_id); in do_detach()
/linux/tools/lib/bpf/
H A Dlibbpf.map38 bpf_prog_get_fd_by_id;
H A Dbpf.h500 LIBBPF_API int bpf_prog_get_fd_by_id(__u32 id);
H A Dbpf.c1113 int bpf_prog_get_fd_by_id(__u32 id) in bpf_prog_get_fd_by_id() function
/linux/tools/bpf/bpftool/
H A Dcommon.c831 fd = bpf_prog_get_fd_by_id(id); in prog_fd_by_nametag()
893 (*fds)[0] = bpf_prog_get_fd_by_id(id); in prog_parse_fds()
H A Dcgroup.c141 prog_fd = bpf_prog_get_fd_by_id(id); in show_bpf_prog()
H A Dbtf_dumper.c56 prog_fd = bpf_prog_get_fd_by_id(prog_id); in dump_prog_id_as_func_ptr()
H A Dnet.c445 fd = bpf_prog_get_fd_by_id(id); in __show_dev_tc_bpf_name()
H A Dlink.c240 prog_fd = bpf_prog_get_fd_by_id(prog_id); in get_prog_info()
H A Dbtf.c1155 fd = bpf_prog_get_fd_by_id(id); in build_btf_type_table()
H A Dprog.c673 fd = bpf_prog_get_fd_by_id(id); in do_show()
/linux/tools/perf/util/
H A Dbpf-event.c791 fd = bpf_prog_get_fd_by_id(id); in perf_event__synthesize_bpf_events()
839 fd = bpf_prog_get_fd_by_id(id); in perf_env__add_bpf_info()
/linux/Documentation/bpf/libbpf/
H A Dlibbpf_naming_convention.rst80 LIBBPF_API int bpf_prog_get_fd_by_id(__u32 id);
/linux/kernel/bpf/
H A Dsyscall.c4681 static int bpf_prog_get_fd_by_id(const union bpf_attr *attr) in bpf_prog_get_fd_by_id() function
6062 err = bpf_prog_get_fd_by_id(&attr); in __sys_bpf()