Searched refs:bpf_prog_attach (Results 1 – 13 of 13) sorted by relevance
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_maps.c | 712 err = bpf_prog_attach(-1, fd, BPF_SK_SKB_STREAM_PARSER, 0); in test_sockmap() 718 err = bpf_prog_attach(-1, fd, BPF_SK_SKB_STREAM_VERDICT, 0); in test_sockmap() 724 err = bpf_prog_attach(-1, fd, BPF_SK_MSG_VERDICT, 0); in test_sockmap() 730 err = bpf_prog_attach(-1, fd, __MAX_BPF_ATTACH_TYPE, 0); in test_sockmap() 830 err = bpf_prog_attach(parse_prog, map_fd_break, in test_sockmap() 837 err = bpf_prog_attach(parse_prog, map_fd_rx, in test_sockmap() 844 err = bpf_prog_attach(verdict_prog, map_fd_rx, in test_sockmap() 851 err = bpf_prog_attach(msg_prog, map_fd_msg, BPF_SK_MSG_VERDICT, 0); in test_sockmap() 857 err = bpf_prog_attach(verdict_prog, map_fd_rx, in test_sockmap() 978 err = bpf_prog_attach(parse_prog, fd, in test_sockmap() [all …]
|
D | test_dev_cgroup.c | 57 if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_DEVICE, 0)) { in main()
|
D | test_lirc_mode2_user.c | 98 ret = bpf_prog_attach(progfd, lircfd, BPF_LIRC_MODE2, 0); in main()
|
D | flow_dissector_load.c | 65 ret = bpf_prog_attach(prog_fd, 0 /* Ignore */, BPF_FLOW_DISSECTOR, 0); in load_and_attach_program()
|
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_cgroup_storage.c | 95 if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, 0)) { in main()
|
D | test_socket_cookie.c | 166 err = bpf_prog_attach(bpf_program__fd(prog), cgfd, attach_type, in run_test()
|
D | test_sockmap.c | 781 err = bpf_prog_attach(prog_fd[0], map_fd[0], in run_options() 790 err = bpf_prog_attach(prog_fd[1], map_fd[0], in run_options() 799 err = bpf_prog_attach(prog_fd[2], cg_fd, BPF_CGROUP_SOCK_OPS, 0); in run_options() 835 err = bpf_prog_attach(tx_prog_fd, in run_options()
|
D | test_sock.c | 342 return bpf_prog_attach(progfd, cgfd, attach_type, BPF_F_ALLOW_OVERRIDE); in attach_sock_prog()
|
D | test_sock_addr.c | 1295 err = bpf_prog_attach(progfd, cgfd, test->attach_type, in run_test_case()
|
/external/iproute2/lib/ |
D | bpf.c | 1469 static int bpf_prog_attach(const char *section, in bpf_prog_attach() function 1967 fd = bpf_prog_attach(section, &prog, ctx); in bpf_fetch_prog() 2083 fd = bpf_prog_attach(section, &prog, ctx); in bpf_fetch_prog_relo()
|
/external/strace/ |
D | ChangeLog | 19509 (bpf_prog_attach, bpf_prog_detach): Use it. 19518 (bpf_obj_manage, bpf_prog_attach, bpf_prog_detach): New functions.
|