Searched refs:cg2_path (Results 1 – 2 of 2) sorted by relevance
70 std::string cg2_path; in TEST_F() local71 ASSERT_EQ(true, CgroupGetControllerPath(CGROUPV2_CONTROLLER_NAME, &cg2_path)); in TEST_F()72 ASSERT_EQ(0, access(cg2_path.c_str(), R_OK)); in TEST_F()73 ASSERT_EQ(0, access((cg2_path + "/cgroup.controllers").c_str(), R_OK)); in TEST_F()
257 std::string cg2_path; in initPrograms() local259 if (!CgroupGetControllerPath(CGROUPV2_CONTROLLER_NAME, &cg2_path)) { in initPrograms()265 unique_fd cg_fd(open(cg2_path.c_str(), O_DIRECTORY | O_RDONLY | O_CLOEXEC)); in initPrograms()