Searched refs:bpf_prog_detach2 (Results 1 – 16 of 16) sorted by relevance
/linux-6.12.1/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() 353 err = bpf_prog_detach2(verdict, map, first); in test_sockmap_skb_verdict_attach() 387 err = bpf_prog_detach2(bpf_program__fd(prog), map, BPF_SK_SKB_STREAM_VERDICT); in test_sockmap_skb_verdict_attach_with_link() 446 bpf_prog_detach2(verdict_fd, map_fd, attach_type); in test_sockmap_progs_query()
|
D | sockmap_helpers.h | 172 int __ret = bpf_prog_detach2((prog), (target), (type)); \
|
D | flow_dissector.c | 591 err = bpf_prog_detach2(prog_fd, 0, BPF_FLOW_DISSECTOR); in test_skb_less_prog_attach()
|
D | sockopt.c | 1191 bpf_prog_detach2(prog_fd, cgroup_fd, test->attach_type); in run_test()
|
/linux-6.12.1/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_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()
|
D | test_sockmap.c | 1282 bpf_prog_detach2(bpf_program__fd(progs[3]), cg_fd, BPF_CGROUP_SOCK_OPS); in run_options()
|
/linux-6.12.1/tools/lib/bpf/ |
D | libbpf.map | 37 bpf_prog_detach2;
|
D | bpf.h | 333 LIBBPF_API int bpf_prog_detach2(int prog_fd, int attachable_fd,
|
D | bpf.c | 719 int bpf_prog_detach2(int prog_fd, int target_fd, enum bpf_attach_type type) in bpf_prog_detach2() function
|
/linux-6.12.1/tools/bpf/bpftool/ |
D | cgroup.c | 633 if (bpf_prog_detach2(prog_fd, cgroup_fd, attach_type)) { in do_detach()
|
D | prog.c | 1098 err = bpf_prog_detach2(progfd, mapfd, attach_type); in do_detach()
|