Lines Matching refs:cgfd
349 static int attach_sock_prog(int cgfd, int progfd,
352 return bpf_prog_attach(progfd, cgfd, attach_type, BPF_F_ALLOW_OVERRIDE);
399 static int run_test_case(int cgfd, const struct sock_test *test)
413 if (attach_sock_prog(cgfd, progfd, test->attach_type) == -1) {
440 bpf_prog_detach(cgfd, test->attach_type);
446 static int run_tests(int cgfd)
453 if (run_test_case(cgfd, &tests[i]))
464 int cgfd = -1;
467 cgfd = cgroup_setup_and_join(CG_PATH);
468 if (cgfd < 0)
471 if (run_tests(cgfd))
478 close(cgfd);