• Home
  • Raw
  • Download

Lines Matching refs:cgroup

126 static std::string ConvertUidToPath(const char* cgroup, uid_t uid) {  in ConvertUidToPath()  argument
127 return StringPrintf("%s/uid_%d", cgroup, uid); in ConvertUidToPath()
130 static std::string ConvertUidPidToPath(const char* cgroup, uid_t uid, int pid) { in ConvertUidPidToPath() argument
131 return StringPrintf("%s/uid_%d/pid_%d", cgroup, uid, pid); in ConvertUidPidToPath()
134 static int RemoveProcessGroup(const char* cgroup, uid_t uid, int pid) { in RemoveProcessGroup() argument
137 auto uid_pid_path = ConvertUidPidToPath(cgroup, uid, pid); in RemoveProcessGroup()
140 auto uid_path = ConvertUidToPath(cgroup, uid); in RemoveProcessGroup()
233 static int DoKillProcessGroupOnce(const char* cgroup, uid_t uid, int initialPid, int signal) { in DoKillProcessGroupOnce() argument
234 auto path = ConvertUidPidToPath(cgroup, uid, initialPid) + PROCESSGROUP_CGROUP_PROCS_FILE; in DoKillProcessGroupOnce()
312 const char* cgroup = in KillProcessGroup() local
325 while ((processes = DoKillProcessGroupOnce(cgroup, uid, initialPid, signal)) > 0) { in KillProcessGroup()
358 return RemoveProcessGroup(cgroup, uid, initialPid); in KillProcessGroup()
378 std::string cgroup; in createProcessGroup() local
380 CgroupGetControllerPath("memory", &cgroup); in createProcessGroup()
381 cgroup += "/apps"; in createProcessGroup()
383 CgroupGetControllerPath("cpuacct", &cgroup); in createProcessGroup()
386 auto uid_path = ConvertUidToPath(cgroup.c_str(), uid); in createProcessGroup()
393 auto uid_pid_path = ConvertUidPidToPath(cgroup.c_str(), uid, initialPid); in createProcessGroup()