Home
last modified time | relevance | path

Searched refs:procPath (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/base/sensors/sensor/test/unittest/common/src/
H A Dsystem_info.cpp50 static const std::string procPath = "/proc"; in GetTaskPidFile() local
51 DIR *dir = ::opendir(procPath.c_str()); in GetTaskPidFile()
53 SEN_HILOGE("Failed to open path:%{public}s", procPath.c_str()); in GetTaskPidFile()
64 const std::string path = procPath + "/" + pidFile->d_name + "/status"; in GetTaskPidFile()
102 static const std::string procPath = "/proc/" + std::to_string(pid) + "/stat"; in GetProcOccupy() local
103 std::ifstream file(procPath); in GetProcOccupy()
105 SEN_HILOGE("Failed to open path:%{public}s", procPath.c_str()); in GetProcOccupy()
/ohos5.0/base/startup/appspawn/modules/common/
H A Dappspawn_cgroup.c181 char procPath[PATH_MAX] = {}; in ProcessMgrRemoveApp() local
182 ret = memcpy_s(procPath, sizeof(procPath), cgroupPath, sizeof(cgroupPath)); in ProcessMgrRemoveApp()
186 ret = strcat_s(procPath, sizeof(procPath), "cgroup.procs"); in ProcessMgrRemoveApp()
188 KillProcessesByCGroup(procPath, (AppSpawnMgr *)content, appInfo); in ProcessMgrRemoveApp()
/ohos5.0/foundation/multimodalinput/input/test/unittest/common/src/
H A Dsystem_info.cpp50 static const std::string procPath = "/proc"; in GetTaskPidFile() local
51 DIR* dir = ::opendir(procPath.c_str()); in GetTaskPidFile()
61 const std::string path = procPath + "/" + pidFile->d_name + "/status"; in GetTaskPidFile()
128 static const std::string procPath = "/proc/" + std::to_string(pid) + "/stat"; in GetProcOccupy() local
129 std::ifstream file(procPath); in GetProcOccupy()
131 MMI_HILOGE("Failed to open path:%{private}s", procPath.c_str()); in GetProcOccupy()
/ohos5.0/base/hiviewdfx/hiview/framework/native/unified_collection/collector/
H A Dmemory_collector_impl.cpp127 static bool GetSmapsFromProcPath(const std::string& procPath, ProcessMemory& procMem) in GetSmapsFromProcPath() argument
130 if (!FileUtil::FileExists(procPath)) { in GetSmapsFromProcPath()
131 HIVIEW_LOGI("%{public}s is not exist, process exit.", procPath.c_str()); in GetSmapsFromProcPath()
134 if (!FileUtil::LoadStringFromFile(procPath, content)) { in GetSmapsFromProcPath()
135 HIVIEW_LOGE("load string from %{public}s failed.", procPath.c_str()); in GetSmapsFromProcPath()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/utils/
H A Dfile_utils.cpp611 std::stringstream procPath; in IsProcessAlive() local
612 procPath << "/proc/" << pid << "/stat"; in IsProcessAlive()
613 std::ifstream statFile(procPath.str()); in IsProcessAlive()