Searched refs:bpf_prog_detach2 (Results 1 – 16 of 16) sorted by relevance
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
D | cgroup_link.c | 135 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()
|
D | cgroup_attach_multi.c | 183 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()
|
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 | sockopt_multi.c | 49 err = bpf_prog_detach2(bpf_program__fd(prog), cgroup_fd, in prog_detach()
|
D | sockmap_basic.c | 129 err = bpf_prog_detach2(verdict, map, BPF_SK_MSG_VERDICT); in test_skmsg_helpers()
|
D | flow_dissector.c | 530 err = bpf_prog_detach2(prog_fd, 0, BPF_FLOW_DISSECTOR); in test_skb_less_prog_attach()
|
D | sockopt.c | 965 bpf_prog_detach2(prog_fd, cgroup_fd, test->attach_type); in run_test()
|
D | sockmap_listen.c | 174 int __ret = bpf_prog_detach2((prog), (target), (type)); \
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
D | test_lirc_mode2_user.c | 75 ret = bpf_prog_detach2(progfd, lircfd, BPF_LIRC_MODE2); in main() 169 ret = bpf_prog_detach2(progfd, lircfd, BPF_LIRC_MODE2); in main()
|
D | test_sockmap.c | 1238 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()
|
D | test_maps.c | 1093 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/ |
D | libbpf.map | 61 bpf_prog_detach2;
|
D | bpf.h | 168 LIBBPF_API int bpf_prog_detach2(int prog_fd, int attachable_fd,
|
D | bpf.c | 573 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/ |
D | cgroup.c | 469 if (bpf_prog_detach2(prog_fd, cgroup_fd, attach_type)) { in do_detach()
|
D | prog.c | 993 err = bpf_prog_detach2(progfd, mapfd, attach_type); in do_detach()
|