Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dcgroup_link.c135 err = bpf_prog_detach2(prog_fd, cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS); in test_cgroup_link()
158 err = bpf_prog_detach2(prog_fd, cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS); in test_cgroup_link()
178 bpf_prog_detach2(prog_fd, cgs[last_cg].fd, BPF_CGROUP_INET_EGRESS); in test_cgroup_link()
248 bpf_prog_detach2(prog_fd, cgs[last_cg].fd, in test_cgroup_link()
Dcgroup_attach_multi.c183 if (CHECK(bpf_prog_detach2(-1, cg5, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_multi()
247 if (CHECK(!bpf_prog_detach2(0, cg3, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_multi()
251 if (CHECK(bpf_prog_detach2(allow_prog[3], cg3, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_multi()
262 if (CHECK(bpf_prog_detach2(-1, cg4, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_multi()
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()
Dsockopt_multi.c49 err = bpf_prog_detach2(bpf_program__fd(prog), cgroup_fd, in prog_detach()
Dsockmap_basic.c129 err = bpf_prog_detach2(verdict, map, BPF_SK_MSG_VERDICT); in test_skmsg_helpers()
Dflow_dissector.c530 err = bpf_prog_detach2(prog_fd, 0, BPF_FLOW_DISSECTOR); in test_skb_less_prog_attach()
Dsockopt.c965 bpf_prog_detach2(prog_fd, cgroup_fd, test->attach_type); in run_test()
Dsockmap_listen.c174 int __ret = bpf_prog_detach2((prog), (target), (type)); \
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dtest_lirc_mode2_user.c75 ret = bpf_prog_detach2(progfd, lircfd, BPF_LIRC_MODE2); in main()
169 ret = bpf_prog_detach2(progfd, lircfd, BPF_LIRC_MODE2); in main()
Dtest_sockmap.c1238 bpf_prog_detach2(prog_fd[3], cg_fd, BPF_CGROUP_SOCK_OPS); in run_options()
1239 bpf_prog_detach2(prog_fd[0], map_fd[0], BPF_SK_SKB_STREAM_PARSER); in run_options()
1240 bpf_prog_detach2(prog_fd[1], map_fd[0], BPF_SK_SKB_STREAM_VERDICT); in run_options()
1241 bpf_prog_detach2(prog_fd[0], map_fd[8], BPF_SK_SKB_STREAM_PARSER); in run_options()
1242 bpf_prog_detach2(prog_fd[2], map_fd[8], BPF_SK_SKB_STREAM_VERDICT); in run_options()
1245 bpf_prog_detach2(tx_prog_fd, map_fd[1], BPF_SK_MSG_VERDICT); in run_options()
Dtest_maps.c1093 err = bpf_prog_detach2(parse_prog, map_fd_rx, __MAX_BPF_ATTACH_TYPE); in test_sockmap()
1099 err = bpf_prog_detach2(parse_prog, map_fd_rx, BPF_SK_SKB_STREAM_PARSER); in test_sockmap()
1105 err = bpf_prog_detach2(verdict_prog, map_fd_rx, BPF_SK_SKB_STREAM_VERDICT); in test_sockmap()
/kernel/linux/linux-5.10/tools/lib/bpf/
Dlibbpf.map61 bpf_prog_detach2;
Dbpf.h168 LIBBPF_API int bpf_prog_detach2(int prog_fd, int attachable_fd,
Dbpf.c573 int bpf_prog_detach2(int prog_fd, int target_fd, enum bpf_attach_type type) in bpf_prog_detach2() function
/kernel/linux/linux-5.10/tools/bpf/bpftool/
Dcgroup.c469 if (bpf_prog_detach2(prog_fd, cgroup_fd, attach_type)) { in do_detach()
Dprog.c993 err = bpf_prog_detach2(progfd, mapfd, attach_type); in do_detach()