Home
last modified time | relevance | path

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

/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dcgroup_attach_override.c72 if (CHECK(bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS), in serial_test_cgroup_attach_override()
87 if (CHECK(bpf_prog_detach(foo, BPF_CGROUP_INET_EGRESS), in serial_test_cgroup_attach_override()
106 if (CHECK(bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS), in serial_test_cgroup_attach_override()
111 if (CHECK(!bpf_prog_detach(foo, BPF_CGROUP_INET_EGRESS), in serial_test_cgroup_attach_override()
/linux-6.6.21/tools/testing/selftests/bpf/
Dflow_dissector_load.c49 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_maps.c801 err = bpf_prog_detach(fd, BPF_SK_SKB_STREAM_PARSER); in test_sockmap()
807 err = bpf_prog_detach(fd, BPF_SK_SKB_STREAM_VERDICT); in test_sockmap()
813 err = bpf_prog_detach(fd, BPF_SK_MSG_VERDICT); in test_sockmap()
819 err = bpf_prog_detach(fd, __MAX_BPF_ATTACH_TYPE); in test_sockmap()
Dtest_sock.c512 bpf_prog_detach(cgfd, test->attach_type); in run_test_case()
Dtest_sock_addr.c1382 bpf_prog_detach(cgfd, test->attach_type); in run_test_case()
Dtest_sysctl.c1589 bpf_prog_detach(cgfd, atype); in run_test_case()
/linux-6.6.21/samples/bpf/
Dtest_cgrp2_attach.c170 ret = bpf_prog_detach(cg_fd, type); in main()
Dtest_cgrp2_sock.c284 ret = bpf_prog_detach(cg_fd, BPF_CGROUP_INET_SOCK_CREATE); in main()
/linux-6.6.21/tools/lib/bpf/
Dlibbpf.map36 bpf_prog_detach;
Dbpf.h317 LIBBPF_API int bpf_prog_detach(int attachable_fd, enum bpf_attach_type type);
Dbpf.c707 int bpf_prog_detach(int target_fd, enum bpf_attach_type type) in bpf_prog_detach() function
/linux-6.6.21/kernel/bpf/
Dsyscall.c3907 static int bpf_prog_detach(const union bpf_attr *attr) in bpf_prog_detach() function
5397 err = bpf_prog_detach(&attr); in __sys_bpf()