| /Linux-v5.4/tools/testing/selftests/bpf/ | 
| D | test_cgroup_attach.c | 95 	if (bpf_prog_attach(drop_prog, foo, BPF_CGROUP_INET_EGRESS,  in test_foo_bar()115 	if (bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS,  in test_foo_bar()
 133 	if (bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS,  in test_foo_bar()
 148 	if (bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS,  in test_foo_bar()
 154 	if (!bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, 0)) {  in test_foo_bar()
 171 	if (bpf_prog_attach(allow_prog, foo, BPF_CGROUP_INET_EGRESS, 0)) {  in test_foo_bar()
 176 	if (!bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, 0)) {  in test_foo_bar()
 182 	if (!bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS,  in test_foo_bar()
 189 	if (!bpf_prog_attach(allow_prog, foo, BPF_CGROUP_INET_EGRESS,  in test_foo_bar()
 196 	if (bpf_prog_attach(drop_prog, foo, BPF_CGROUP_INET_EGRESS, 0)) {  in test_foo_bar()
 [all …]
 
 | 
| D | test_maps.c | 771 	err = bpf_prog_attach(-1, fd, BPF_SK_SKB_STREAM_PARSER, 0);  in test_sockmap()777 	err = bpf_prog_attach(-1, fd, BPF_SK_SKB_STREAM_VERDICT, 0);  in test_sockmap()
 783 	err = bpf_prog_attach(-1, fd, BPF_SK_MSG_VERDICT, 0);  in test_sockmap()
 789 	err = bpf_prog_attach(-1, fd, __MAX_BPF_ATTACH_TYPE, 0);  in test_sockmap()
 889 	err = bpf_prog_attach(parse_prog, map_fd_break,  in test_sockmap()
 896 	err = bpf_prog_attach(parse_prog, map_fd_rx,  in test_sockmap()
 903 	err = bpf_prog_attach(verdict_prog, map_fd_rx,  in test_sockmap()
 910 	err = bpf_prog_attach(msg_prog, map_fd_msg, BPF_SK_MSG_VERDICT, 0);  in test_sockmap()
 916 	err = bpf_prog_attach(verdict_prog, map_fd_rx,  in test_sockmap()
 1037 	err = bpf_prog_attach(parse_prog, fd,  in test_sockmap()
 [all …]
 
 | 
| D | test_dev_cgroup.c | 54 	if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_DEVICE, 0)) {  in main()
 | 
| D | flow_dissector_load.c | 33 	ret = bpf_prog_attach(prog_fd, 0 /* Ignore */, BPF_FLOW_DISSECTOR, 0);  in load_and_attach_program()
 | 
| D | test_lirc_mode2_user.c | 100 	ret = bpf_prog_attach(progfd, lircfd, BPF_LIRC_MODE2, 0);  in main()
 | 
| D | test_netcnt.c | 79 	if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, 0)) {  in main()
 | 
| D | test_tcpbpf_user.c | 117 	rv = bpf_prog_attach(prog_fd, cg_fd, BPF_CGROUP_SOCK_OPS, 0);  in main()
 | 
| D | test_tcpnotify_user.c | 104 	rv = bpf_prog_attach(prog_fd, cg_fd, BPF_CGROUP_SOCK_OPS, 0);  in main()
 | 
| D | test_cgroup_storage.c | 95 	if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, 0)) {  in main()
 | 
| D | test_socket_cookie.c | 159 		err = bpf_prog_attach(bpf_program__fd(prog), cgfd, attach_type,  in run_test()
 | 
| D | test_sock_fields.c | 448 	err = bpf_prog_attach(egress_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, 0);  in main()452 	err = bpf_prog_attach(ingress_fd, cgroup_fd,  in main()
 
 | 
| D | test_sockmap.c | 798 	err = bpf_prog_attach(prog_fd[0], map_fd[0],  in run_options()807 	err = bpf_prog_attach(prog_fd[1], map_fd[0],  in run_options()
 816 	err = bpf_prog_attach(prog_fd[2], cg_fd, BPF_CGROUP_SOCK_OPS, 0);  in run_options()
 852 		err = bpf_prog_attach(tx_prog_fd,  in run_options()
 
 | 
| D | test_sock.c | 352 	return bpf_prog_attach(progfd, cgfd, attach_type, BPF_F_ALLOW_OVERRIDE);  in attach_sock_prog()
 | 
| /Linux-v5.4/samples/bpf/ | 
| D | test_cgrp2_sock2.c | 59 	ret = bpf_prog_attach(prog_fd[filter_id], cg_fd,  in main()
 | 
| D | test_cgrp2_attach.c | 108 	ret = bpf_prog_attach(prog_fd, cg_fd, type, 0);  in attach_filter()
 | 
| D | test_cgrp2_sock.c | 272 		ret = bpf_prog_attach(prog_fd, cg_fd,  in main()
 | 
| D | hbm.c | 200 	if (bpf_prog_attach(bpfprog_fd, cg1, type, 0)) {  in run_bpf_prog()
 | 
| /Linux-v5.4/tools/lib/bpf/ | 
| D | libbpf.map | 59 		bpf_prog_attach;
 | 
| D | bpf.h | 125 LIBBPF_API int bpf_prog_attach(int prog_fd, int attachable_fd,
 | 
| D | README.rst | 23 command of sys_bpf, ``bpf_prog_attach`` wraps ``BPF_PROG_ATTACH``, etc.
 | 
| /Linux-v5.4/tools/testing/selftests/bpf/prog_tests/ | 
| D | sockopt_sk.c | 153 	err = bpf_prog_attach(bpf_program__fd(prog), cgroup_fd,  in prog_attach()
 | 
| D | sockopt_inherit.c | 158 	err = bpf_prog_attach(bpf_program__fd(prog), cgroup_fd,  in prog_attach()
 | 
| D | tcp_rtt.c | 142 	err = bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_SOCK_OPS, 0);  in run_test()
 | 
| D | sockopt_multi.c | 24 	err = bpf_prog_attach(bpf_program__fd(prog), cgroup_fd,  in prog_attach()
 | 
| /Linux-v5.4/tools/bpf/bpftool/ | 
| D | cgroup.c | 416 	if (bpf_prog_attach(prog_fd, cgroup_fd, attach_type, attach_flags)) {  in do_attach()
 |