Lines Matching defs:cgfd
407 static int attach_sock_prog(int cgfd, int progfd,
410 return bpf_prog_attach(progfd, cgfd, attach_type, BPF_F_ALLOW_OVERRIDE);
480 static int run_test_case(int cgfd, const struct sock_test *test)
495 if (attach_sock_prog(cgfd, progfd, test->attach_type) < 0) {
512 bpf_prog_detach(cgfd, test->attach_type);
518 static int run_tests(int cgfd)
525 if (run_test_case(cgfd, &tests[i]))
536 int cgfd = -1;
539 cgfd = cgroup_setup_and_join(CG_PATH);
540 if (cgfd < 0)
546 if (run_tests(cgfd))
553 close(cgfd);