Home
last modified time | relevance | path

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

/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_maps.c712 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 …]
Dtest_dev_cgroup.c57 if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_DEVICE, 0)) { in main()
Dtest_lirc_mode2_user.c98 ret = bpf_prog_attach(progfd, lircfd, BPF_LIRC_MODE2, 0); in main()
Dflow_dissector_load.c65 ret = bpf_prog_attach(prog_fd, 0 /* Ignore */, BPF_FLOW_DISSECTOR, 0); in load_and_attach_program()
Dtest_netcnt.c79 if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, 0)) { in main()
Dtest_tcpbpf_user.c117 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.c166 err = bpf_prog_attach(bpf_program__fd(prog), cgfd, attach_type, in run_test()
Dtest_sockmap.c781 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()
Dtest_sock.c342 return bpf_prog_attach(progfd, cgfd, attach_type, BPF_F_ALLOW_OVERRIDE); in attach_sock_prog()
Dtest_sock_addr.c1295 err = bpf_prog_attach(progfd, cgfd, test->attach_type, in run_test_case()
/external/iproute2/lib/
Dbpf.c1469 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/
DChangeLog19509 (bpf_prog_attach, bpf_prog_detach): Use it.
19518 (bpf_obj_manage, bpf_prog_attach, bpf_prog_detach): New functions.