Home
last modified time | relevance | path

Searched refs:bpf_prog_attach (Results 1 – 25 of 27) sorted by relevance

12

/tools/testing/selftests/bpf/
Dtest_cgroup_attach.c95 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 …]
Dtest_dev_cgroup.c54 if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_DEVICE, 0)) { in main()
Dflow_dissector_load.c33 ret = bpf_prog_attach(prog_fd, 0 /* Ignore */, BPF_FLOW_DISSECTOR, 0); in load_and_attach_program()
Dtest_lirc_mode2_user.c100 ret = bpf_prog_attach(progfd, lircfd, BPF_LIRC_MODE2, 0); in main()
Dtest_netcnt.c79 if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, 0)) { in main()
Dtest_maps.c771 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 …]
Dtest_tcpnotify_user.c104 rv = bpf_prog_attach(prog_fd, cg_fd, BPF_CGROUP_SOCK_OPS, 0); in main()
Dtest_tcpbpf_user.c120 rv = bpf_prog_attach(prog_fd, cg_fd, BPF_CGROUP_SOCK_OPS, 0); in main()
Dtest_cgroup_storage.c95 if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, 0)) { in main()
Dtest_socket_cookie.c159 err = bpf_prog_attach(bpf_program__fd(prog), cgfd, attach_type, in run_test()
Dtest_sock_fields.c448 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()
Dtest_sock.c352 return bpf_prog_attach(progfd, cgfd, attach_type, BPF_F_ALLOW_OVERRIDE); in attach_sock_prog()
Dtest_sockmap.c802 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/
Dlibbpf.map59 bpf_prog_attach;
Dbpf.h125 LIBBPF_API int bpf_prog_attach(int prog_fd, int attachable_fd,
DREADME.rst23 command of sys_bpf, ``bpf_prog_attach`` wraps ``BPF_PROG_ATTACH``, etc.
Dbpf.c462 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/
Dsockopt_sk.c153 err = bpf_prog_attach(bpf_program__fd(prog), cgroup_fd, in prog_attach()
Dsockopt_inherit.c158 err = bpf_prog_attach(bpf_program__fd(prog), cgroup_fd, in prog_attach()
Dtcp_rtt.c142 err = bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_SOCK_OPS, 0); in run_test()
Dsockopt_multi.c24 err = bpf_prog_attach(bpf_program__fd(prog), cgroup_fd, in prog_attach()
Dflow_dissector.c489 err = bpf_prog_attach(prog_fd, 0, BPF_FLOW_DISSECTOR, 0); in test_flow_dissector()
Dsockopt.c892 err = bpf_prog_attach(prog_fd, cgroup_fd, test->attach_type, 0); in run_test()
/tools/bpf/bpftool/
Dcgroup.c438 if (bpf_prog_attach(prog_fd, cgroup_fd, attach_type, attach_flags)) { in do_attach()
Dprog.c721 err = bpf_prog_attach(progfd, mapfd, attach_type, 0); in do_attach()

12