Home
last modified time | relevance | path

Searched refs:procInfo (Results 1 – 3 of 3) sorted by relevance

/base/hiviewdfx/faultloggerd/interfaces/innerkits/procinfo/
Dprocinfo.cpp44 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()
[all …]
/base/hiviewdfx/faultloggerd/test/unittest/procinfo/
Dprocinfo_test.cpp48 ProcInfo procInfo; variable
49 ASSERT_TRUE(GetProcStatus(procInfo));
50 ASSERT_EQ(getpid(), procInfo.pid);
75 struct ProcInfo procInfo; variable
76 ASSERT_TRUE(GetProcStatusByPid(getpid(), procInfo));
82 if (procInfo.ns) {
/base/hiviewdfx/faultloggerd/interfaces/innerkits/procinfo/include/
Dprocinfo.h51 bool GetProcStatus(struct ProcInfo& procInfo);
59 bool GetProcStatusByPid(int realPid, struct ProcInfo& procInfo);