Lines Matching refs:cg_fd

154 	void (*tester)(int cg_fd, struct sockmap_options *opt);
922 static int run_options(struct sockmap_options *options, int cg_fd, int test) in run_options() argument
973 err = bpf_prog_attach(prog_fd[3], cg_fd, BPF_CGROUP_SOCK_OPS, 0); in run_options()
1251 bpf_prog_detach2(prog_fd[3], cg_fd, BPF_CGROUP_SOCK_OPS); in run_options()
1859 static int __test_selftests(int cg_fd, struct sockmap_options *opt) in __test_selftests() argument
1879 t.tester(cg_fd, opt); in __test_selftests()
1886 static void test_selftests_sockmap(int cg_fd, struct sockmap_options *opt) in test_selftests_sockmap() argument
1889 __test_selftests(cg_fd, opt); in test_selftests_sockmap()
1892 static void test_selftests_sockhash(int cg_fd, struct sockmap_options *opt) in test_selftests_sockhash() argument
1895 __test_selftests(cg_fd, opt); in test_selftests_sockhash()
1898 static void test_selftests_ktls(int cg_fd, struct sockmap_options *opt) in test_selftests_ktls() argument
1903 __test_selftests(cg_fd, opt); in test_selftests_ktls()
1907 static int test_selftest(int cg_fd, struct sockmap_options *opt) in test_selftest() argument
1910 test_selftests_sockmap(cg_fd, opt); in test_selftest()
1911 test_selftests_sockhash(cg_fd, opt); in test_selftest()
1912 test_selftests_ktls(cg_fd, opt); in test_selftest()
1921 int opt, longindex, err, cg_fd = 0; in main() local
1954 cg_fd = open(optarg, O_DIRECTORY, O_RDONLY); in main()
1955 if (cg_fd < 0) { in main()
1958 cg_fd, optarg); in main()
1959 return cg_fd; in main()
2013 if (!cg_fd) { in main()
2014 cg_fd = cgroup_setup_and_join(CG_PATH); in main()
2015 if (cg_fd < 0) in main()
2016 return cg_fd; in main()
2021 err = test_selftest(cg_fd, &options); in main()
2040 err = run_options(&options, cg_fd, test); in main()
2048 close(cg_fd); in main()