• Home
  • Raw
  • Download

Lines Matching refs:cgroup

155 static std::string ConvertUidToPath(const char* cgroup, uid_t uid) {  in ConvertUidToPath()  argument
156 return StringPrintf("%s/uid_%d", cgroup, uid); in ConvertUidToPath()
159 static std::string ConvertUidPidToPath(const char* cgroup, uid_t uid, int pid) { in ConvertUidPidToPath() argument
160 return StringPrintf("%s/uid_%d/pid_%d", cgroup, uid, pid); in ConvertUidPidToPath()
163 static int RemoveProcessGroup(const char* cgroup, uid_t uid, int pid) { in RemoveProcessGroup() argument
166 auto uid_pid_path = ConvertUidPidToPath(cgroup, uid, pid); in RemoveProcessGroup()
169 auto uid_path = ConvertUidToPath(cgroup, uid); in RemoveProcessGroup()
262 static int DoKillProcessGroupOnce(const char* cgroup, uid_t uid, int initialPid, int signal) { in DoKillProcessGroupOnce() argument
263 auto path = ConvertUidPidToPath(cgroup, uid, initialPid) + PROCESSGROUP_CGROUP_PROCS_FILE; in DoKillProcessGroupOnce()
340 const char* cgroup = in KillProcessGroup() local
349 while ((processes = DoKillProcessGroupOnce(cgroup, uid, initialPid, signal)) > 0) { in KillProcessGroup()
379 return RemoveProcessGroup(cgroup, uid, initialPid); in KillProcessGroup()
399 std::string cgroup; in createProcessGroup() local
401 CgroupGetControllerPath("memory", &cgroup); in createProcessGroup()
402 cgroup += "/apps"; in createProcessGroup()
404 CgroupGetControllerPath("cpuacct", &cgroup); in createProcessGroup()
407 auto uid_path = ConvertUidToPath(cgroup.c_str(), uid); in createProcessGroup()
414 auto uid_pid_path = ConvertUidPidToPath(cgroup.c_str(), uid, initialPid); in createProcessGroup()