cgfd 155 tools/testing/selftests/bpf/test_skb_cgroup_id_user.c int cgfd = -1; cgfd 166 tools/testing/selftests/bpf/test_skb_cgroup_id_user.c cgfd = create_and_get_cgroup(CGROUP_PATH); cgfd 167 tools/testing/selftests/bpf/test_skb_cgroup_id_user.c if (cgfd < 0) cgfd 183 tools/testing/selftests/bpf/test_skb_cgroup_id_user.c close(cgfd); cgfd 349 tools/testing/selftests/bpf/test_sock.c static int attach_sock_prog(int cgfd, int progfd, cgfd 352 tools/testing/selftests/bpf/test_sock.c return bpf_prog_attach(progfd, cgfd, attach_type, BPF_F_ALLOW_OVERRIDE); cgfd 399 tools/testing/selftests/bpf/test_sock.c static int run_test_case(int cgfd, const struct sock_test *test) cgfd 413 tools/testing/selftests/bpf/test_sock.c if (attach_sock_prog(cgfd, progfd, test->attach_type) == -1) { cgfd 440 tools/testing/selftests/bpf/test_sock.c bpf_prog_detach(cgfd, test->attach_type); cgfd 446 tools/testing/selftests/bpf/test_sock.c static int run_tests(int cgfd) cgfd 453 tools/testing/selftests/bpf/test_sock.c if (run_test_case(cgfd, &tests[i])) cgfd 464 tools/testing/selftests/bpf/test_sock.c int cgfd = -1; cgfd 470 tools/testing/selftests/bpf/test_sock.c cgfd = create_and_get_cgroup(CG_PATH); cgfd 471 tools/testing/selftests/bpf/test_sock.c if (cgfd < 0) cgfd 477 tools/testing/selftests/bpf/test_sock.c if (run_tests(cgfd)) cgfd 484 tools/testing/selftests/bpf/test_sock.c close(cgfd); cgfd 1524 tools/testing/selftests/bpf/test_sock_addr.c static int run_test_case(int cgfd, const struct sock_addr_test *test) cgfd 1537 tools/testing/selftests/bpf/test_sock_addr.c err = bpf_prog_attach(progfd, cgfd, test->attach_type, cgfd 1589 tools/testing/selftests/bpf/test_sock_addr.c bpf_prog_detach(cgfd, test->attach_type); cgfd 1595 tools/testing/selftests/bpf/test_sock_addr.c static int run_tests(int cgfd) cgfd 1602 tools/testing/selftests/bpf/test_sock_addr.c if (run_test_case(cgfd, &tests[i])) cgfd 1613 tools/testing/selftests/bpf/test_sock_addr.c int cgfd = -1; cgfd 1626 tools/testing/selftests/bpf/test_sock_addr.c cgfd = create_and_get_cgroup(CG_PATH); cgfd 1627 tools/testing/selftests/bpf/test_sock_addr.c if (cgfd < 0) cgfd 1633 tools/testing/selftests/bpf/test_sock_addr.c if (run_tests(cgfd)) cgfd 1640 tools/testing/selftests/bpf/test_sock_addr.c close(cgfd); cgfd 130 tools/testing/selftests/bpf/test_socket_cookie.c static int run_test(int cgfd) cgfd 159 tools/testing/selftests/bpf/test_socket_cookie.c err = bpf_prog_attach(bpf_program__fd(prog), cgfd, attach_type, cgfd 191 tools/testing/selftests/bpf/test_socket_cookie.c int cgfd = -1; cgfd 197 tools/testing/selftests/bpf/test_socket_cookie.c cgfd = create_and_get_cgroup(CG_PATH); cgfd 198 tools/testing/selftests/bpf/test_socket_cookie.c if (cgfd < 0) cgfd 204 tools/testing/selftests/bpf/test_socket_cookie.c if (run_test(cgfd)) cgfd 211 tools/testing/selftests/bpf/test_socket_cookie.c close(cgfd); cgfd 1526 tools/testing/selftests/bpf/test_sysctl.c static int run_test_case(int cgfd, struct sysctl_test *test) cgfd 1546 tools/testing/selftests/bpf/test_sysctl.c if (bpf_prog_attach(progfd, cgfd, atype, BPF_F_ALLOW_OVERRIDE) == -1) { cgfd 1572 tools/testing/selftests/bpf/test_sysctl.c bpf_prog_detach(cgfd, atype); cgfd 1578 tools/testing/selftests/bpf/test_sysctl.c static int run_tests(int cgfd) cgfd 1585 tools/testing/selftests/bpf/test_sysctl.c if (run_test_case(cgfd, &tests[i])) cgfd 1596 tools/testing/selftests/bpf/test_sysctl.c int cgfd = -1; cgfd 1602 tools/testing/selftests/bpf/test_sysctl.c cgfd = create_and_get_cgroup(CG_PATH); cgfd 1603 tools/testing/selftests/bpf/test_sysctl.c if (cgfd < 0) cgfd 1609 tools/testing/selftests/bpf/test_sysctl.c if (run_tests(cgfd)) cgfd 1616 tools/testing/selftests/bpf/test_sysctl.c close(cgfd);