Lines Matching refs:cgroup_fd
20 static void subtest(int cgroup_fd, struct connect_ping *skel, in subtest() argument
99 int cgroup_fd; in test_connect_ping() local
126 cgroup_fd = test__join_cgroup("/connect_ping"); in test_connect_ping()
127 if (!ASSERT_GE(cgroup_fd, 0, "cg-create")) in test_connect_ping()
134 bpf_program__attach_cgroup(skel->progs.connect_v4_prog, cgroup_fd); in test_connect_ping()
138 bpf_program__attach_cgroup(skel->progs.connect_v6_prog, cgroup_fd); in test_connect_ping()
147 subtest(cgroup_fd, skel, AF_INET, 0); in test_connect_ping()
154 subtest(cgroup_fd, skel, AF_INET, 1); in test_connect_ping()
161 subtest(cgroup_fd, skel, AF_INET6, 0); in test_connect_ping()
168 subtest(cgroup_fd, skel, AF_INET6, 1); in test_connect_ping()
174 close(cgroup_fd); in test_connect_ping()