Home
last modified time | relevance | path

Searched refs:nsPid (Results 1 – 7 of 7) sorted by relevance

/ohos5.0/base/hiviewdfx/faultloggerd/tools/process_dump/
H A Ddfx_process.cpp40 std::shared_ptr<DfxProcess> DfxProcess::Create(pid_t pid, pid_t nsPid) in Create() argument
42 auto process = std::make_shared<DfxProcess>(pid, nsPid); in Create()
46 DfxProcess::DfxProcess(pid_t pid, pid_t nsPid) in DfxProcess() argument
48 InitProcessInfo(pid, nsPid); in DfxProcess()
51 void DfxProcess::InitProcessInfo(pid_t pid, pid_t nsPid) in InitProcessInfo() argument
54 processInfo_.nsPid = nsPid; in InitProcessInfo()
88 if (processInfo_.pid == processInfo_.nsPid) { in ChangeTid()
134 if (thread->threadInfo_.nsTid == processInfo_.nsPid) { in Attach()
H A Ddfx_process.h31 pid_t nsPid = 0; member
38 static std::shared_ptr<DfxProcess> Create(pid_t pid, pid_t nsPid);
39 DfxProcess(pid_t pid, pid_t nsPid);
62 void InitProcessInfo(pid_t pid, pid_t nsPid);
H A Dprocess_dumper.cpp145 void FillFdsaninfo(OpenFilesList &list, pid_t nsPid, uint64_t fdTableAddr) in FillFdsaninfo() argument
164 if (DfxMemory::ReadProcMemByPid(nsPid, tmp, &overflow, sizeof(overflow)) != sizeof(overflow)) { in FillFdsaninfo()
172 if (DfxMemory::ReadProcMemByPid(nsPid, overflow, &overflowLength, sizeof(overflowLength)) in FillFdsaninfo()
313 DFXLOG_INFO("start block crash process pid %d nspid %d", request->pid, request->nsPid); in Dump()
314 if (syscall(SYS_tgkill, request->nsPid, request->tid, SIGSTOP) != 0) { in Dump()
315 … DFXLOG_ERROR("send signal stop to nsPid %d fail %s", request->nsPid, strerror(errno)); in Dump()
373 std::string GetOpenFiles(int32_t pid, int nsPid, uint64_t fdTableAddr) in GetOpenFiles() argument
379 FillFdsaninfo(openFies, nsPid, fdTableAddr); in GetOpenFiles()
488 tid = tid != 0 ? tid : request->nsPid; in Unwind()
549 process_->openFiles = GetOpenFiles(request->pid, request->nsPid, request->fdTableAddr); in DumpProcess()
[all …]
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/procinfo/
H A Dprocinfo.cpp56 int nsPid = 0; in GetProcStatusByPath() local
74 procInfo.nsPid = pid; in GetProcStatusByPath()
90 if (sscanf_s(buf, "%*[^0-9]%d%*[^0-9]%d", &pid, &nsPid) != ARGS_COUNT_TWO) { in GetProcStatusByPath()
92 procInfo.nsPid = pid; in GetProcStatusByPath()
95 procInfo.nsPid = nsPid; in GetProcStatusByPath()
116 nstid = procInfo.nsPid; in TidToNstid()
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/procinfo/include/
H A Dprocinfo.h37 int nsPid; member
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/common/
H A Ddfx_dump_request.h103 int32_t nsPid; member
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/signal_handler/
H A Ddfx_signal_handler.c270 g_request.nsPid = syscall(SYS_getpid); in FillDumpRequest()