bpf_prog_attach 2892 kernel/bpf/syscall.c err = bpf_prog_attach(&attr); bpf_prog_attach 200 samples/bpf/hbm.c if (bpf_prog_attach(bpfprog_fd, cg1, type, 0)) { bpf_prog_attach 108 samples/bpf/test_cgrp2_attach.c ret = bpf_prog_attach(prog_fd, cg_fd, type, 0); bpf_prog_attach 272 samples/bpf/test_cgrp2_sock.c ret = bpf_prog_attach(prog_fd, cg_fd, bpf_prog_attach 59 samples/bpf/test_cgrp2_sock2.c ret = bpf_prog_attach(prog_fd[filter_id], cg_fd, bpf_prog_attach 438 tools/bpf/bpftool/cgroup.c if (bpf_prog_attach(prog_fd, cgroup_fd, attach_type, attach_flags)) { bpf_prog_attach 721 tools/bpf/bpftool/prog.c err = bpf_prog_attach(progfd, mapfd, attach_type, 0); bpf_prog_attach 125 tools/lib/bpf/bpf.h LIBBPF_API int bpf_prog_attach(int prog_fd, int attachable_fd, bpf_prog_attach 33 tools/testing/selftests/bpf/flow_dissector_load.c ret = bpf_prog_attach(prog_fd, 0 /* Ignore */, BPF_FLOW_DISSECTOR, 0); bpf_prog_attach 489 tools/testing/selftests/bpf/prog_tests/flow_dissector.c err = bpf_prog_attach(prog_fd, 0, BPF_FLOW_DISSECTOR, 0); bpf_prog_attach 892 tools/testing/selftests/bpf/prog_tests/sockopt.c err = bpf_prog_attach(prog_fd, cgroup_fd, test->attach_type, 0); bpf_prog_attach 158 tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c err = bpf_prog_attach(bpf_program__fd(prog), cgroup_fd, bpf_prog_attach 24 tools/testing/selftests/bpf/prog_tests/sockopt_multi.c err = bpf_prog_attach(bpf_program__fd(prog), cgroup_fd, bpf_prog_attach 153 tools/testing/selftests/bpf/prog_tests/sockopt_sk.c err = bpf_prog_attach(bpf_program__fd(prog), cgroup_fd, bpf_prog_attach 142 tools/testing/selftests/bpf/prog_tests/tcp_rtt.c err = bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_SOCK_OPS, 0); bpf_prog_attach 95 tools/testing/selftests/bpf/test_cgroup_attach.c if (bpf_prog_attach(drop_prog, foo, BPF_CGROUP_INET_EGRESS, bpf_prog_attach 115 tools/testing/selftests/bpf/test_cgroup_attach.c if (bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, bpf_prog_attach 133 tools/testing/selftests/bpf/test_cgroup_attach.c if (bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, bpf_prog_attach 148 tools/testing/selftests/bpf/test_cgroup_attach.c if (bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, bpf_prog_attach 154 tools/testing/selftests/bpf/test_cgroup_attach.c if (!bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, 0)) { bpf_prog_attach 171 tools/testing/selftests/bpf/test_cgroup_attach.c if (bpf_prog_attach(allow_prog, foo, BPF_CGROUP_INET_EGRESS, 0)) { bpf_prog_attach 176 tools/testing/selftests/bpf/test_cgroup_attach.c if (!bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, 0)) { bpf_prog_attach 182 tools/testing/selftests/bpf/test_cgroup_attach.c if (!bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, bpf_prog_attach 189 tools/testing/selftests/bpf/test_cgroup_attach.c if (!bpf_prog_attach(allow_prog, foo, BPF_CGROUP_INET_EGRESS, bpf_prog_attach 196 tools/testing/selftests/bpf/test_cgroup_attach.c if (bpf_prog_attach(drop_prog, foo, BPF_CGROUP_INET_EGRESS, 0)) { bpf_prog_attach 328 tools/testing/selftests/bpf/test_cgroup_attach.c if (bpf_prog_attach(allow_prog[0], cg1, BPF_CGROUP_INET_EGRESS, bpf_prog_attach 333 tools/testing/selftests/bpf/test_cgroup_attach.c if (!bpf_prog_attach(allow_prog[0], cg1, BPF_CGROUP_INET_EGRESS, bpf_prog_attach 338 tools/testing/selftests/bpf/test_cgroup_attach.c if (bpf_prog_attach(allow_prog[1], cg1, BPF_CGROUP_INET_EGRESS, bpf_prog_attach 343 tools/testing/selftests/bpf/test_cgroup_attach.c if (bpf_prog_attach(allow_prog[2], cg2, BPF_CGROUP_INET_EGRESS, bpf_prog_attach 348 tools/testing/selftests/bpf/test_cgroup_attach.c if (bpf_prog_attach(allow_prog[3], cg3, BPF_CGROUP_INET_EGRESS, bpf_prog_attach 353 tools/testing/selftests/bpf/test_cgroup_attach.c if (bpf_prog_attach(allow_prog[4], cg4, BPF_CGROUP_INET_EGRESS, bpf_prog_attach 358 tools/testing/selftests/bpf/test_cgroup_attach.c if (bpf_prog_attach(allow_prog[5], cg5, BPF_CGROUP_INET_EGRESS, 0)) { bpf_prog_attach 486 tools/testing/selftests/bpf/test_cgroup_attach.c if (bpf_prog_attach(allow_prog[i], cg, BPF_CGROUP_INET_EGRESS, bpf_prog_attach 95 tools/testing/selftests/bpf/test_cgroup_storage.c if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, 0)) { bpf_prog_attach 54 tools/testing/selftests/bpf/test_dev_cgroup.c if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_DEVICE, 0)) { bpf_prog_attach 100 tools/testing/selftests/bpf/test_lirc_mode2_user.c ret = bpf_prog_attach(progfd, lircfd, BPF_LIRC_MODE2, 0); bpf_prog_attach 771 tools/testing/selftests/bpf/test_maps.c err = bpf_prog_attach(-1, fd, BPF_SK_SKB_STREAM_PARSER, 0); bpf_prog_attach 777 tools/testing/selftests/bpf/test_maps.c err = bpf_prog_attach(-1, fd, BPF_SK_SKB_STREAM_VERDICT, 0); bpf_prog_attach 783 tools/testing/selftests/bpf/test_maps.c err = bpf_prog_attach(-1, fd, BPF_SK_MSG_VERDICT, 0); bpf_prog_attach 789 tools/testing/selftests/bpf/test_maps.c err = bpf_prog_attach(-1, fd, __MAX_BPF_ATTACH_TYPE, 0); bpf_prog_attach 889 tools/testing/selftests/bpf/test_maps.c err = bpf_prog_attach(parse_prog, map_fd_break, bpf_prog_attach 896 tools/testing/selftests/bpf/test_maps.c err = bpf_prog_attach(parse_prog, map_fd_rx, bpf_prog_attach 903 tools/testing/selftests/bpf/test_maps.c err = bpf_prog_attach(verdict_prog, map_fd_rx, bpf_prog_attach 910 tools/testing/selftests/bpf/test_maps.c err = bpf_prog_attach(msg_prog, map_fd_msg, BPF_SK_MSG_VERDICT, 0); bpf_prog_attach 916 tools/testing/selftests/bpf/test_maps.c err = bpf_prog_attach(verdict_prog, map_fd_rx, bpf_prog_attach 1037 tools/testing/selftests/bpf/test_maps.c err = bpf_prog_attach(parse_prog, fd, bpf_prog_attach 1043 tools/testing/selftests/bpf/test_maps.c err = bpf_prog_attach(verdict_prog, fd, bpf_prog_attach 79 tools/testing/selftests/bpf/test_netcnt.c if (bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, 0)) { bpf_prog_attach 352 tools/testing/selftests/bpf/test_sock.c return bpf_prog_attach(progfd, cgfd, attach_type, BPF_F_ALLOW_OVERRIDE); bpf_prog_attach 1537 tools/testing/selftests/bpf/test_sock_addr.c err = bpf_prog_attach(progfd, cgfd, test->attach_type, bpf_prog_attach 448 tools/testing/selftests/bpf/test_sock_fields.c err = bpf_prog_attach(egress_fd, cgroup_fd, BPF_CGROUP_INET_EGRESS, 0); bpf_prog_attach 452 tools/testing/selftests/bpf/test_sock_fields.c err = bpf_prog_attach(ingress_fd, cgroup_fd, bpf_prog_attach 159 tools/testing/selftests/bpf/test_socket_cookie.c err = bpf_prog_attach(bpf_program__fd(prog), cgfd, attach_type, bpf_prog_attach 802 tools/testing/selftests/bpf/test_sockmap.c err = bpf_prog_attach(prog_fd[0], map_fd[0], bpf_prog_attach 811 tools/testing/selftests/bpf/test_sockmap.c err = bpf_prog_attach(prog_fd[1], map_fd[0], bpf_prog_attach 820 tools/testing/selftests/bpf/test_sockmap.c err = bpf_prog_attach(prog_fd[2], cg_fd, BPF_CGROUP_SOCK_OPS, 0); bpf_prog_attach 856 tools/testing/selftests/bpf/test_sockmap.c err = bpf_prog_attach(tx_prog_fd, bpf_prog_attach 1546 tools/testing/selftests/bpf/test_sysctl.c if (bpf_prog_attach(progfd, cgfd, atype, BPF_F_ALLOW_OVERRIDE) == -1) { bpf_prog_attach 117 tools/testing/selftests/bpf/test_tcpbpf_user.c rv = bpf_prog_attach(prog_fd, cg_fd, BPF_CGROUP_SOCK_OPS, 0); bpf_prog_attach 104 tools/testing/selftests/bpf/test_tcpnotify_user.c rv = bpf_prog_attach(prog_fd, cg_fd, BPF_CGROUP_SOCK_OPS, 0);