Home
last modified time | relevance | path

Searched refs:bpf_prog_detach2 (Results 1 – 16 of 16) sorted by relevance

/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dcgroup_link.c130 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()
Dcgroup_attach_multi.c183 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()
Dlsm_cgroup.c291 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()
Dflow_dissector_reattach.c116 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()
Dsockmap_basic.c127 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()
Dsockmap_helpers.h172 int __ret = bpf_prog_detach2((prog), (target), (type)); \
Dflow_dissector.c591 err = bpf_prog_detach2(prog_fd, 0, BPF_FLOW_DISSECTOR); in test_skb_less_prog_attach()
Dsockopt.c1191 bpf_prog_detach2(prog_fd, cgroup_fd, test->attach_type); in run_test()
/linux-6.12.1/tools/testing/selftests/bpf/
Dtest_lirc_mode2_user.c76 ret = bpf_prog_detach2(progfd, lircfd, BPF_LIRC_MODE2); in main()
170 ret = bpf_prog_detach2(progfd, lircfd, BPF_LIRC_MODE2); in main()
Dtest_maps.c1103 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()
Dtest_sockmap.c1282 bpf_prog_detach2(bpf_program__fd(progs[3]), cg_fd, BPF_CGROUP_SOCK_OPS); in run_options()
/linux-6.12.1/tools/lib/bpf/
Dlibbpf.map37 bpf_prog_detach2;
Dbpf.h333 LIBBPF_API int bpf_prog_detach2(int prog_fd, int attachable_fd,
Dbpf.c719 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/
Dcgroup.c633 if (bpf_prog_detach2(prog_fd, cgroup_fd, attach_type)) { in do_detach()
Dprog.c1098 err = bpf_prog_detach2(progfd, mapfd, attach_type); in do_detach()