Searched refs:cgfd (Results 1 – 5 of 5) sorted by relevance
| /Linux-v5.4/tools/testing/selftests/bpf/ |
| D | test_sock.c | 349 static int attach_sock_prog(int cgfd, int progfd, in attach_sock_prog() argument 352 return bpf_prog_attach(progfd, cgfd, attach_type, BPF_F_ALLOW_OVERRIDE); in attach_sock_prog() 399 static int run_test_case(int cgfd, const struct sock_test *test) in run_test_case() argument 413 if (attach_sock_prog(cgfd, progfd, test->attach_type) == -1) { in run_test_case() 440 bpf_prog_detach(cgfd, test->attach_type); in run_test_case() 446 static int run_tests(int cgfd) in run_tests() argument 453 if (run_test_case(cgfd, &tests[i])) in run_tests() 464 int cgfd = -1; in main() local 470 cgfd = create_and_get_cgroup(CG_PATH); in main() 471 if (cgfd < 0) in main() [all …]
|
| D | test_socket_cookie.c | 130 static int run_test(int cgfd) in run_test() argument 159 err = bpf_prog_attach(bpf_program__fd(prog), cgfd, attach_type, in run_test() 191 int cgfd = -1; in main() local 197 cgfd = create_and_get_cgroup(CG_PATH); in main() 198 if (cgfd < 0) in main() 204 if (run_test(cgfd)) in main() 211 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 < 0) in main() 183 close(cgfd); in main()
|
| D | test_sysctl.c | 1526 static int run_test_case(int cgfd, struct sysctl_test *test) in run_test_case() argument 1546 if (bpf_prog_attach(progfd, cgfd, atype, BPF_F_ALLOW_OVERRIDE) == -1) { in run_test_case() 1572 bpf_prog_detach(cgfd, atype); in run_test_case() 1578 static int run_tests(int cgfd) in run_tests() argument 1585 if (run_test_case(cgfd, &tests[i])) in run_tests() 1596 int cgfd = -1; in main() local 1602 cgfd = create_and_get_cgroup(CG_PATH); in main() 1603 if (cgfd < 0) in main() 1609 if (run_tests(cgfd)) in main() 1616 close(cgfd); in main()
|
| D | test_sock_addr.c | 1524 static int run_test_case(int cgfd, const struct sock_addr_test *test) in run_test_case() argument 1537 err = bpf_prog_attach(progfd, cgfd, test->attach_type, in run_test_case() 1589 bpf_prog_detach(cgfd, test->attach_type); in run_test_case() 1595 static int run_tests(int cgfd) in run_tests() argument 1602 if (run_test_case(cgfd, &tests[i])) in run_tests() 1613 int cgfd = -1; in main() local 1626 cgfd = create_and_get_cgroup(CG_PATH); in main() 1627 if (cgfd < 0) in main() 1633 if (run_tests(cgfd)) in main() 1640 close(cgfd); in main()
|