Lines Matching refs:procInfo
44 static bool GetProcStatusByPath(struct ProcInfo& procInfo, const std::string& path) in GetProcStatusByPath() argument
64 procInfo.pid = getpid(); in GetProcStatusByPath()
66 procInfo.pid = pid; in GetProcStatusByPath()
68 procInfo.nsPid = pid; in GetProcStatusByPath()
75 procInfo.ppid = getppid(); in GetProcStatusByPath()
77 procInfo.ppid = ppid; in GetProcStatusByPath()
85 procInfo.ns = false; in GetProcStatusByPath()
86 procInfo.nsPid = pid; in GetProcStatusByPath()
88 procInfo.ns = true; in GetProcStatusByPath()
89 procInfo.nsPid = nsPid; in GetProcStatusByPath()
91 procInfo.pid = pid; in GetProcStatusByPath()
106 struct ProcInfo procInfo; in TidToNstid() local
107 if (!GetProcStatusByPath(procInfo, path)) { in TidToNstid()
110 nstid = procInfo.nsPid; in TidToNstid()
114 bool GetProcStatusByPid(int realPid, struct ProcInfo& procInfo) in GetProcStatusByPid() argument
117 return GetProcStatus(procInfo); in GetProcStatusByPid()
120 return GetProcStatusByPath(procInfo, path); in GetProcStatusByPid()
123 bool GetProcStatus(struct ProcInfo& procInfo) in GetProcStatus() argument
125 return GetProcStatusByPath(procInfo, PROC_SELF_STATUS_PATH); in GetProcStatus()
160 struct ProcInfo procInfo; in GetTidsByPid() local
161 (void)GetProcStatusByPid(pid, procInfo); in GetTidsByPid()
164 if (procInfo.ns) { in GetTidsByPid()
173 if (ret && !procInfo.ns) { in GetTidsByPid()