Home
last modified time | relevance | path

Searched refs:vmPid (Results 1 – 10 of 10) sorted by relevance

/ohos5.0/base/hiviewdfx/faultloggerd/tools/process_dump/
H A Ddfx_unwind_remote.cpp81 std::shared_ptr<Unwinder> unwinder, pid_t vmPid) in UnwindProcess() argument
91 int unwCnt = UnwindKeyThread(request, process, unwinder, vmPid) ? 1 : 0; in UnwindProcess()
95 unwCnt += UnwindOtherThread(process, unwinder, vmPid); in UnwindProcess()
120 DfxPtrace::Detach(vmPid); in UnwindProcess()
127 std::shared_ptr<Unwinder> unwinder, pid_t vmPid) in UnwindKeyThread() argument
144 if ((vmPid != 0)) { in UnwindKeyThread()
145 if (DfxPtrace::Attach(vmPid, PTRACE_ATTATCH_KEY_THREAD_TIMEOUT)) { in UnwindKeyThread()
148 result = unwindAsyncThread->UnwindStack(vmPid); in UnwindKeyThread()
177 pid_t vmPid) in UnwindOtherThread() argument
179 if ((!DfxConfig::GetConfig().dumpOtherThreads) || (vmPid != 0 && !isVmProcAttach)) { in UnwindOtherThread()
[all …]
H A Ddfx_unwind_remote.h40 std::shared_ptr<Unwinder> unwinder, pid_t vmPid = 0);
46 std::shared_ptr<Unwinder> unwinder, pid_t vmPid = 0);
48 pid_t vmPid = 0);
H A Dprocess_dumper.cpp215 void ReadPids(int& realPid, int& vmPid) in ReadPids() argument
220 vmPid = pids[VIRTUAL_PROCESS_PID]; in ReadPids()
221 DFXLOG_INFO("procecdump get real pid is %d vm pid is %d", realPid, vmPid); in ReadPids()
539 pid_t vmPid = 0; in DumpProcess() local
540 if (!InitUnwinder(request, vmPid, dumpRes) && (isCrash_ && !isLeakDump)) { in DumpProcess()
552 if (!Unwind(request, dumpRes, vmPid)) { in DumpProcess()
570 if (isCrash_ && request->vmPid != 0) { in InitVmThread()
577 process_->vmThread_ = DfxThread::Create(request->vmPid, request->vmPid, request->vmNsPid); in InitVmThread()
624 ReadPids(realPid, vmPid); in InitUnwinder()
625 if (realPid == 0 || vmPid == 0) { in InitUnwinder()
[all …]
H A Dlock_parser.cpp36 bool LockParser::ParseLockInfo(std::shared_ptr<Unwinder> unwinder, int32_t vmPid, int32_t tid) in ParseLockInfo() argument
40 if (unwinder->GetLockInfo(vmPid, buffer.data(), sizeof(pthread_mutex_t))) { in ParseLockInfo()
H A Ddfx_unwind_async_thread.cpp34 bool DfxUnwindAsyncThread::UnwindStack(pid_t vmPid) in UnwindStack() argument
46 auto tmpPid = vmPid != 0 ? vmPid : tid; in UnwindStack()
H A Dprocess_dumper.h54 bool InitUnwinder(std::shared_ptr<ProcessDumpRequest> request, pid_t &vmPid, int &dumpRes);
57 bool Unwind(std::shared_ptr<ProcessDumpRequest> request, int &dumpRes, pid_t vmPid);
H A Dlock_parser.h25 static bool ParseLockInfo(std::shared_ptr<Unwinder> unwinder, int32_t vmPid, int32_t tid);
H A Ddfx_unwind_async_thread.h33 bool UnwindStack(pid_t vmPid = 0);
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/common/
H A Ddfx_dump_request.h105 int32_t vmPid; member
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/signal_handler/
H A Ddfx_signal_handler.c661 pid_t vmPid = ForkBySyscall(); in StartVMProcessUnwind() local
662 if (vmPid == 0) { in StartVMProcessUnwind()
839 g_request.vmPid = GetRealPid(); in ForkAndDoProcessDump()
840 DFXLOG_INFO("The vm pid(%d:%d).", g_request.vmPid, g_request.vmNsPid); in ForkAndDoProcessDump()