Home
last modified time | relevance | path

Searched refs:bpf_link_get_fd_by_id (Results 1 – 9 of 9) sorted by relevance

/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dbpf_obj_id.c43 err = bpf_link_get_fd_by_id(0); in serial_test_bpf_obj_id()
307 link_fd = bpf_link_get_fd_by_id(next_id); in serial_test_bpf_obj_id()
Dunpriv_bpf_disabled.c197 ASSERT_EQ(bpf_link_get_fd_by_id(link_info.id), -EPERM, "link_get_fd_by_id_fails"); in test_unpriv_bpf_disabled_negative()
/linux-6.6.21/tools/lib/bpf/
Dlibbpf.map165 bpf_link_get_fd_by_id;
Dbpf.h480 LIBBPF_API int bpf_link_get_fd_by_id(__u32 id);
Dbpf.c1111 int bpf_link_get_fd_by_id(__u32 id) in bpf_link_get_fd_by_id() function
/linux-6.6.21/tools/perf/util/
Dbpf_counter.c428 evsel->bperf_leader_link_fd = bpf_link_get_fd_by_id(entry->link_id); in bperf_reload_leader_program()
482 evsel->bperf_leader_link_fd = bpf_link_get_fd_by_id(entry.link_id); in bperf__load()
/linux-6.6.21/tools/bpf/bpftool/
Dlink.c108 fd = bpf_link_get_fd_by_id(id); in link_parse_fd()
957 fd = bpf_link_get_fd_by_id(id); in do_show()
Dnet.c777 fd = bpf_link_get_fd_by_id(id); in show_link_netfilter()
/linux-6.6.21/kernel/bpf/
Dsyscall.c5184 static int bpf_link_get_fd_by_id(const union bpf_attr *attr) in bpf_link_get_fd_by_id() function
5461 err = bpf_link_get_fd_by_id(&attr); in __sys_bpf()