cg_fd 87 samples/bpf/test_cgrp2_attach.c static int attach_filter(int cg_fd, int type, int verdict) cg_fd 108 samples/bpf/test_cgrp2_attach.c ret = bpf_prog_attach(prog_fd, cg_fd, type, 0); cg_fd 133 samples/bpf/test_cgrp2_attach.c int opt, cg_fd, ret; cg_fd 158 samples/bpf/test_cgrp2_attach.c cg_fd = open(argv[optind], O_DIRECTORY | O_RDONLY); cg_fd 159 samples/bpf/test_cgrp2_attach.c if (cg_fd < 0) { cg_fd 165 samples/bpf/test_cgrp2_attach.c ret = bpf_prog_detach(cg_fd, type); cg_fd 169 samples/bpf/test_cgrp2_attach.c ret = attach_filter(cg_fd, type, verdict); cg_fd 208 samples/bpf/test_cgrp2_sock.c int cg_fd, prog_fd, ret; cg_fd 257 samples/bpf/test_cgrp2_sock.c cg_fd = open(cgrp_path, O_DIRECTORY | O_RDONLY); cg_fd 258 samples/bpf/test_cgrp2_sock.c if (cg_fd < 0) { cg_fd 272 samples/bpf/test_cgrp2_sock.c ret = bpf_prog_attach(prog_fd, cg_fd, cg_fd 280 samples/bpf/test_cgrp2_sock.c ret = bpf_prog_detach(cg_fd, BPF_CGROUP_INET_SOCK_CREATE); cg_fd 288 samples/bpf/test_cgrp2_sock.c close(cg_fd); cg_fd 35 samples/bpf/test_cgrp2_sock2.c int cg_fd, ret, filter_id = 0; cg_fd 40 samples/bpf/test_cgrp2_sock2.c cg_fd = open(argv[1], O_DIRECTORY | O_RDONLY); cg_fd 41 samples/bpf/test_cgrp2_sock2.c if (cg_fd < 0) { cg_fd 59 samples/bpf/test_cgrp2_sock2.c ret = bpf_prog_attach(prog_fd[filter_id], cg_fd, cg_fd 793 tools/testing/selftests/bpf/test_sockmap.c static int run_options(struct sockmap_options *options, int cg_fd, int test) cg_fd 820 tools/testing/selftests/bpf/test_sockmap.c err = bpf_prog_attach(prog_fd[2], cg_fd, BPF_CGROUP_SOCK_OPS, 0); cg_fd 1071 tools/testing/selftests/bpf/test_sockmap.c bpf_prog_detach2(prog_fd[2], cg_fd, BPF_CGROUP_SOCK_OPS); cg_fd 1665 tools/testing/selftests/bpf/test_sockmap.c static int __test_suite(int cg_fd, char *bpf_file) cg_fd 1667 tools/testing/selftests/bpf/test_sockmap.c int err, cleanup = cg_fd; cg_fd 1675 tools/testing/selftests/bpf/test_sockmap.c if (cg_fd < 0) { cg_fd 1681 tools/testing/selftests/bpf/test_sockmap.c cg_fd = create_and_get_cgroup(CG_PATH); cg_fd 1682 tools/testing/selftests/bpf/test_sockmap.c if (cg_fd < 0) { cg_fd 1685 tools/testing/selftests/bpf/test_sockmap.c cg_fd, optarg); cg_fd 1686 tools/testing/selftests/bpf/test_sockmap.c return cg_fd; cg_fd 1697 tools/testing/selftests/bpf/test_sockmap.c err = test_txmsg(cg_fd); cg_fd 1702 tools/testing/selftests/bpf/test_sockmap.c err = test_mixed(cg_fd); cg_fd 1707 tools/testing/selftests/bpf/test_sockmap.c err = test_start_end(cg_fd); cg_fd 1715 tools/testing/selftests/bpf/test_sockmap.c close(cg_fd); cg_fd 1720 tools/testing/selftests/bpf/test_sockmap.c static int test_suite(int cg_fd) cg_fd 1724 tools/testing/selftests/bpf/test_sockmap.c err = __test_suite(cg_fd, BPF_SOCKMAP_FILENAME); cg_fd 1727 tools/testing/selftests/bpf/test_sockmap.c err = __test_suite(cg_fd, BPF_SOCKHASH_FILENAME); cg_fd 1729 tools/testing/selftests/bpf/test_sockmap.c if (cg_fd > -1) cg_fd 1730 tools/testing/selftests/bpf/test_sockmap.c close(cg_fd); cg_fd 1738 tools/testing/selftests/bpf/test_sockmap.c int opt, longindex, err, cg_fd = 0; cg_fd 1773 tools/testing/selftests/bpf/test_sockmap.c cg_fd = open(optarg, O_DIRECTORY, O_RDONLY); cg_fd 1774 tools/testing/selftests/bpf/test_sockmap.c if (cg_fd < 0) { cg_fd 1777 tools/testing/selftests/bpf/test_sockmap.c cg_fd, optarg); cg_fd 1778 tools/testing/selftests/bpf/test_sockmap.c return cg_fd; cg_fd 1821 tools/testing/selftests/bpf/test_sockmap.c if (argc <= 3 && cg_fd) cg_fd 1822 tools/testing/selftests/bpf/test_sockmap.c return test_suite(cg_fd); cg_fd 1824 tools/testing/selftests/bpf/test_sockmap.c if (!cg_fd) { cg_fd 1845 tools/testing/selftests/bpf/test_sockmap.c err = run_options(&options, cg_fd, test); cg_fd 1846 tools/testing/selftests/bpf/test_sockmap.c close(cg_fd); cg_fd 98 tools/testing/selftests/bpf/test_tcpbpf_user.c int cg_fd = -1; cg_fd 105 tools/testing/selftests/bpf/test_tcpbpf_user.c cg_fd = create_and_get_cgroup(cg_path); cg_fd 106 tools/testing/selftests/bpf/test_tcpbpf_user.c if (cg_fd < 0) cg_fd 117 tools/testing/selftests/bpf/test_tcpbpf_user.c rv = bpf_prog_attach(prog_fd, cg_fd, BPF_CGROUP_SOCK_OPS, 0); cg_fd 156 tools/testing/selftests/bpf/test_tcpbpf_user.c bpf_prog_detach(cg_fd, BPF_CGROUP_SOCK_OPS); cg_fd 157 tools/testing/selftests/bpf/test_tcpbpf_user.c close(cg_fd); cg_fd 78 tools/testing/selftests/bpf/test_tcpnotify_user.c int prog_fd, rv, cg_fd = -1; cg_fd 92 tools/testing/selftests/bpf/test_tcpnotify_user.c cg_fd = create_and_get_cgroup(cg_path); cg_fd 93 tools/testing/selftests/bpf/test_tcpnotify_user.c if (cg_fd < 0) cg_fd 104 tools/testing/selftests/bpf/test_tcpnotify_user.c rv = bpf_prog_attach(prog_fd, cg_fd, BPF_CGROUP_SOCK_OPS, 0); cg_fd 162 tools/testing/selftests/bpf/test_tcpnotify_user.c bpf_prog_detach(cg_fd, BPF_CGROUP_SOCK_OPS); cg_fd 163 tools/testing/selftests/bpf/test_tcpnotify_user.c close(cg_fd);