Home
last modified time | relevance | path

Searched refs:proc_path (Results 1 – 4 of 4) sorted by relevance

/system/core/libprocessgroup/
Dcgroup_map.cpp99 std::string proc_path(path()); in GetProcsFilePath() local
100 proc_path.append("/").append(rel_path); in GetProcsFilePath()
101 proc_path = regex_replace(proc_path, std::regex("<uid>"), std::to_string(uid)); in GetProcsFilePath()
102 proc_path = regex_replace(proc_path, std::regex("<pid>"), std::to_string(pid)); in GetProcsFilePath()
104 return proc_path.append(CGROUP_PROCS_FILE); in GetProcsFilePath()
Dtask_profiles.cpp482 WriteFileAction::WriteFileAction(const std::string& task_path, const std::string& proc_path, in WriteFileAction() argument
484 : task_path_(task_path), proc_path_(proc_path), value_(value), logfailures_(logfailures) { in WriteFileAction()
564 char proc_path[255]; in ExecuteForProcess() local
567 sprintf(proc_path, "/proc/%d/task", pid); in ExecuteForProcess()
568 if (!(d = opendir(proc_path))) { in ExecuteForProcess()
Dtask_profiles.h170 WriteFileAction(const std::string& task_path, const std::string& proc_path,
/system/memory/lmkd/
Dreaper.cpp59 char proc_path[PATH_MAX]; in set_process_group_and_prio() local
66 snprintf(proc_path, sizeof(proc_path), "/proc/%d/task", pid); in set_process_group_and_prio()
67 if (!(d = opendir(proc_path))) { in set_process_group_and_prio()
68 ALOGW("Failed to open %s; errno=%d: process pid(%d) might have died", proc_path, errno, in set_process_group_and_prio()