/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_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_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_tcpnotify_user.c | 104 rv = bpf_prog_attach(prog_fd, cg_fd, BPF_CGROUP_SOCK_OPS, 0); in main()
|
D | test_tcpbpf_user.c | 120 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_sock.c | 352 return bpf_prog_attach(progfd, cgfd, attach_type, BPF_F_ALLOW_OVERRIDE); in attach_sock_prog()
|
D | test_sockmap.c | 802 err = bpf_prog_attach(prog_fd[0], map_fd[0], in run_options() 811 err = bpf_prog_attach(prog_fd[1], map_fd[0], in run_options() 820 err = bpf_prog_attach(prog_fd[2], cg_fd, BPF_CGROUP_SOCK_OPS, 0); in run_options() 856 err = bpf_prog_attach(tx_prog_fd, in run_options()
|
/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.
|
D | bpf.c | 462 int bpf_prog_attach(int prog_fd, int target_fd, enum bpf_attach_type type, in bpf_prog_attach() function
|
/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()
|
D | flow_dissector.c | 489 err = bpf_prog_attach(prog_fd, 0, BPF_FLOW_DISSECTOR, 0); in test_flow_dissector()
|
D | sockopt.c | 892 err = bpf_prog_attach(prog_fd, cgroup_fd, test->attach_type, 0); in run_test()
|
/tools/bpf/bpftool/ |
D | cgroup.c | 438 if (bpf_prog_attach(prog_fd, cgroup_fd, attach_type, attach_flags)) { in do_attach()
|
D | prog.c | 721 err = bpf_prog_attach(progfd, mapfd, attach_type, 0); in do_attach()
|