Home
last modified time | relevance | path

Searched refs:bpf_prog_detach (Results 1 – 14 of 14) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dcgroup_attach_override.c72 if (CHECK(bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_override()
87 if (CHECK(bpf_prog_detach(foo, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_override()
106 if (CHECK(bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_override()
111 if (CHECK(!bpf_prog_detach(foo, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_override()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dflow_dissector_load.c47 ret = bpf_prog_detach(0, BPF_FLOW_DISSECTOR); in detach_program()
Dtest_tcpnotify_user.c163 bpf_prog_detach(cg_fd, BPF_CGROUP_SOCK_OPS); in main()
Dtest_tcpbpf_user.c161 bpf_prog_detach(cg_fd, BPF_CGROUP_SOCK_OPS); in main()
Dtest_sock.c440 bpf_prog_detach(cgfd, test->attach_type); in run_test_case()
Dtest_maps.c791 err = bpf_prog_detach(fd, BPF_SK_SKB_STREAM_PARSER); in test_sockmap()
797 err = bpf_prog_detach(fd, BPF_SK_SKB_STREAM_VERDICT); in test_sockmap()
803 err = bpf_prog_detach(fd, BPF_SK_MSG_VERDICT); in test_sockmap()
809 err = bpf_prog_detach(fd, __MAX_BPF_ATTACH_TYPE); in test_sockmap()
Dtest_sysctl.c1595 bpf_prog_detach(cgfd, atype); in run_test_case()
Dtest_sock_addr.c1607 bpf_prog_detach(cgfd, test->attach_type); in run_test_case()
/kernel/linux/linux-5.10/samples/bpf/
Dtest_cgrp2_attach.c165 ret = bpf_prog_detach(cg_fd, type); in main()
Dtest_cgrp2_sock.c280 ret = bpf_prog_detach(cg_fd, BPF_CGROUP_INET_SOCK_CREATE); in main()
/kernel/linux/linux-5.10/tools/lib/bpf/
Dlibbpf.map60 bpf_prog_detach;
Dbpf.h167 LIBBPF_API int bpf_prog_detach(int attachable_fd, enum bpf_attach_type type);
Dbpf.c562 int bpf_prog_detach(int target_fd, enum bpf_attach_type type) in bpf_prog_detach() function
/kernel/linux/linux-5.10/kernel/bpf/
Dsyscall.c3044 static int bpf_prog_detach(const union bpf_attr *attr) in bpf_prog_detach() function
4432 err = bpf_prog_detach(&attr); in SYSCALL_DEFINE3()