Home
last modified time | relevance | path

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

/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ !
Dcgroup_attach_autodetach.c88 int fd = bpf_prog_get_fd_by_id(prog_ids[i]); in serial_test_cgroup_attach_autodetach()
Dbpf_obj_id.c35 err = bpf_prog_get_fd_by_id(0); in serial_test_bpf_obj_id()
197 prog_fd = bpf_prog_get_fd_by_id(next_id); in serial_test_bpf_obj_id()
Dlsm_cgroup.c48 fd = bpf_prog_get_fd_by_id(p.prog_ids[i]); in query_prog_cnt()
Dunpriv_bpf_disabled.c182 ASSERT_EQ(bpf_prog_get_fd_by_id(prog_id), -EPERM, "prog_get_fd_by_id_fails"); in test_unpriv_bpf_disabled_negative()
/linux-6.6.21/tools/testing/selftests/bpf/ !
Dtest_cpp.cpp110 bpf_prog_get_fd_by_id(0); in main()
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()
Dtest_skb_cgroup_id_user.c87 prog_fd = bpf_prog_get_fd_by_id(prog_id); in get_map_fd_by_prog_id()
Dtest_tcp_check_syncookie_user.c90 prog_fd = bpf_prog_get_fd_by_id(prog_id); in get_map_fd_by_prog_id()
/linux-6.6.21/samples/bpf/ !
Dxdp_fwd_user.c72 prog_fd = bpf_prog_get_fd_by_id(curr_prog_id); in do_detach()
/linux-6.6.21/tools/perf/util/ !
Dbpf-event.c408 fd = bpf_prog_get_fd_by_id(id); in perf_event__synthesize_bpf_events()
456 fd = bpf_prog_get_fd_by_id(id); in perf_env__add_bpf_info()
Dbpf_counter.c111 prog_fd = bpf_prog_get_fd_by_id(prog_id); in bpf_program_profiler_load_one()
493 evsel->bperf_leader_prog_fd = bpf_prog_get_fd_by_id( in bperf__load()
/linux-6.6.21/tools/lib/bpf/ !
Dlibbpf.map38 bpf_prog_get_fd_by_id;
Dbpf.h471 LIBBPF_API int bpf_prog_get_fd_by_id(__u32 id);
Dbpf.c1042 int bpf_prog_get_fd_by_id(__u32 id) in bpf_prog_get_fd_by_id() function
/linux-6.6.21/tools/bpf/bpftool/ !
Dcommon.c755 fd = bpf_prog_get_fd_by_id(id); in prog_fd_by_nametag()
817 (*fds)[0] = bpf_prog_get_fd_by_id(id); in prog_parse_fds()
Dcgroup.c107 prog_fd = bpf_prog_get_fd_by_id(id); in show_bpf_prog()
Dbtf_dumper.c56 prog_fd = bpf_prog_get_fd_by_id(prog_id); in dump_prog_id_as_func_ptr()
Dnet.c436 fd = bpf_prog_get_fd_by_id(id); in __show_dev_tc_bpf_name()
Dbtf.c772 fd = bpf_prog_get_fd_by_id(id); in build_btf_type_table()
Dlink.c240 prog_fd = bpf_prog_get_fd_by_id(prog_id); in get_prog_info()
Dprog.c669 fd = bpf_prog_get_fd_by_id(id); in do_show()
/linux-6.6.21/Documentation/bpf/libbpf/ !
Dlibbpf_naming_convention.rst80 LIBBPF_API int bpf_prog_get_fd_by_id(__u32 id);
/linux-6.6.21/kernel/bpf/ !
Dsyscall.c4137 static int bpf_prog_get_fd_by_id(const union bpf_attr *attr) in bpf_prog_get_fd_by_id() function
5418 err = bpf_prog_get_fd_by_id(&attr); in __sys_bpf()