Searched refs:cgfd (Results 1 – 4 of 4) sorted by relevance
/Linux-v4.19/tools/testing/selftests/bpf/ |
D | test_sock.c | 339 static int attach_sock_prog(int cgfd, int progfd, in attach_sock_prog() argument 342 return bpf_prog_attach(progfd, cgfd, attach_type, BPF_F_ALLOW_OVERRIDE); in attach_sock_prog() 389 static int run_test_case(int cgfd, const struct sock_test *test) in run_test_case() argument 403 if (attach_sock_prog(cgfd, progfd, test->attach_type) == -1) { in run_test_case() 430 bpf_prog_detach(cgfd, test->attach_type); in run_test_case() 436 static int run_tests(int cgfd) in run_tests() argument 443 if (run_test_case(cgfd, &tests[i])) in run_tests() 454 int cgfd = -1; in main() local 460 cgfd = create_and_get_cgroup(CG_PATH); in main() 461 if (!cgfd) in main() [all …]
|
D | test_socket_cookie.c | 136 static int run_test(int cgfd) in run_test() argument 170 err = bpf_prog_attach(bpf_program__fd(prog), cgfd, attach_type, in run_test() 202 int cgfd = -1; in main() local 208 cgfd = create_and_get_cgroup(CG_PATH); in main() 209 if (!cgfd) in main() 215 if (run_test(cgfd)) in main() 222 close(cgfd); in main()
|
D | test_skb_cgroup_id_user.c | 155 int cgfd = -1; in main() local 166 cgfd = create_and_get_cgroup(CGROUP_PATH); in main() 167 if (!cgfd) in main() 183 close(cgfd); in main()
|
D | test_sock_addr.c | 1282 static int run_test_case(int cgfd, const struct sock_addr_test *test) in run_test_case() argument 1295 err = bpf_prog_attach(progfd, cgfd, test->attach_type, in run_test_case() 1340 bpf_prog_detach(cgfd, test->attach_type); in run_test_case() 1346 static int run_tests(int cgfd) in run_tests() argument 1353 if (run_test_case(cgfd, &tests[i])) in run_tests() 1364 int cgfd = -1; in main() local 1377 cgfd = create_and_get_cgroup(CG_PATH); in main() 1378 if (!cgfd) in main() 1384 if (run_tests(cgfd)) in main() 1391 close(cgfd); in main()
|