/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
D | cgroup_link.c | 130 err = bpf_prog_detach2(prog_fd, cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS); in serial_test_cgroup_link() 153 err = bpf_prog_detach2(prog_fd, cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS); in serial_test_cgroup_link() 172 bpf_prog_detach2(prog_fd, cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS); in serial_test_cgroup_link() 242 bpf_prog_detach2(prog_fd, cgs[last_cg].fd, in serial_test_cgroup_link()
|
D | cgroup_attach_multi.c | 183 if (CHECK(bpf_prog_detach2(-1, cg5, BPF_CGROUP_INET_EGRESS), in serial_test_cgroup_attach_multi() 247 if (CHECK(!bpf_prog_detach2(0, cg3, BPF_CGROUP_INET_EGRESS), in serial_test_cgroup_attach_multi() 251 if (CHECK(bpf_prog_detach2(allow_prog[3], cg3, BPF_CGROUP_INET_EGRESS), in serial_test_cgroup_attach_multi() 262 if (CHECK(bpf_prog_detach2(-1, cg4, BPF_CGROUP_INET_EGRESS), in serial_test_cgroup_attach_multi()
|
D | lsm_cgroup.c | 291 ASSERT_GE(bpf_prog_detach2(post_create_prog_fd2, cgroup_fd, in test_lsm_cgroup_functional() 295 ASSERT_GE(bpf_prog_detach2(alloc_prog_fd, cgroup_fd, in test_lsm_cgroup_functional() 297 ASSERT_GE(bpf_prog_detach2(clone_prog_fd, cgroup_fd, in test_lsm_cgroup_functional()
|
D | flow_dissector_reattach.c | 116 err = bpf_prog_detach2(prog2, 0, BPF_FLOW_DISSECTOR); in test_prog_attach_prog_attach() 168 err = bpf_prog_detach2(prog1, 0, BPF_FLOW_DISSECTOR); in test_prog_attach_link_create() 211 err = bpf_prog_detach2(prog1, 0, BPF_FLOW_DISSECTOR); in test_link_create_prog_detach() 231 err = bpf_prog_detach2(prog1, 0, BPF_FLOW_DISSECTOR); in test_prog_attach_detach_query()
|
D | sockmap_basic.c | 127 err = bpf_prog_detach2(verdict, map, BPF_SK_MSG_VERDICT); in test_skmsg_helpers() 294 err = bpf_prog_detach2(verdict, map, first); in test_sockmap_skb_verdict_attach() 353 bpf_prog_detach2(verdict_fd, map_fd, attach_type); in test_sockmap_progs_query()
|
D | sockmap_helpers.h | 158 int __ret = bpf_prog_detach2((prog), (target), (type)); \
|
D | flow_dissector.c | 592 err = bpf_prog_detach2(prog_fd, 0, BPF_FLOW_DISSECTOR); in test_skb_less_prog_attach()
|
D | sockopt.c | 1048 bpf_prog_detach2(prog_fd, cgroup_fd, test->attach_type); in run_test()
|
/linux-6.6.21/tools/testing/selftests/bpf/ |
D | test_lirc_mode2_user.c | 76 ret = bpf_prog_detach2(progfd, lircfd, BPF_LIRC_MODE2); in main() 170 ret = bpf_prog_detach2(progfd, lircfd, BPF_LIRC_MODE2); in main()
|
D | test_sockmap.c | 1282 bpf_prog_detach2(prog_fd[3], cg_fd, BPF_CGROUP_SOCK_OPS); in run_options() 1283 bpf_prog_detach2(prog_fd[0], map_fd[0], BPF_SK_SKB_STREAM_PARSER); in run_options() 1284 bpf_prog_detach2(prog_fd[1], map_fd[0], BPF_SK_SKB_STREAM_VERDICT); in run_options() 1285 bpf_prog_detach2(prog_fd[0], map_fd[8], BPF_SK_SKB_STREAM_PARSER); in run_options() 1286 bpf_prog_detach2(prog_fd[2], map_fd[8], BPF_SK_SKB_STREAM_VERDICT); in run_options() 1289 bpf_prog_detach2(tx_prog_fd, map_fd[1], BPF_SK_MSG_VERDICT); in run_options()
|
D | test_maps.c | 1103 err = bpf_prog_detach2(parse_prog, map_fd_rx, __MAX_BPF_ATTACH_TYPE); in test_sockmap() 1109 err = bpf_prog_detach2(parse_prog, map_fd_rx, BPF_SK_SKB_STREAM_PARSER); in test_sockmap() 1115 err = bpf_prog_detach2(verdict_prog, map_fd_rx, BPF_SK_SKB_STREAM_VERDICT); in test_sockmap()
|
/linux-6.6.21/tools/lib/bpf/ |
D | libbpf.map | 37 bpf_prog_detach2;
|
D | bpf.h | 318 LIBBPF_API int bpf_prog_detach2(int prog_fd, int attachable_fd,
|
D | bpf.c | 712 int bpf_prog_detach2(int prog_fd, int target_fd, enum bpf_attach_type type) in bpf_prog_detach2() function
|
/linux-6.6.21/tools/bpf/bpftool/ |
D | cgroup.c | 599 if (bpf_prog_detach2(prog_fd, cgroup_fd, attach_type)) { in do_detach()
|
D | prog.c | 1094 err = bpf_prog_detach2(progfd, mapfd, attach_type); in do_detach()
|