Searched refs:cg2_path (Results 1 – 2 of 2) sorted by relevance
61 std::string cg2_path; in TEST_F() local65 ASSERT_EQ(true, CgroupGetControllerPath(CGROUPV2_CONTROLLER_NAME, &cg2_path)); in TEST_F()69 cg2_path = "/dev/cg2_bpf"; in TEST_F()71 ASSERT_EQ(0, access(cg2_path.c_str(), R_OK)); in TEST_F()72 ASSERT_EQ(0, access((cg2_path + "/cgroup.controllers").c_str(), R_OK)); in TEST_F()
220 std::string cg2_path; in initPrograms() local222 if (!CgroupGetControllerPath(CGROUPV2_CONTROLLER_NAME, &cg2_path)) { in initPrograms()228 unique_fd cg_fd(open(cg2_path.c_str(), O_DIRECTORY | O_RDONLY | O_CLOEXEC)); in initPrograms()