/base/hiviewdfx/faultloggerd/tools/process_dump/ |
H A D | dfx_unwind_remote.cpp | 81 std::shared_ptr<Unwinder> unwinder, pid_t vmPid) in UnwindProcess() 92 int unwCnt = UnwindKeyThread(request, process, unwinder, vmPid) ? 1 : 0; in UnwindProcess() 96 unwCnt += UnwindOtherThread(process, unwinder, vmPid); in UnwindProcess() 111 process->keyThread_->threadInfo_.nsTid = vmPid; // read registers from vm process in UnwindProcess() 121 DfxPtrace::Detach(vmPid); in UnwindProcess() 128 std::shared_ptr<Unwinder> unwinder, pid_t vmPid) in UnwindKeyThread() 145 if ((vmPid != 0)) { in UnwindKeyThread() 146 if (DfxPtrace::Attach(vmPid, PTRACE_ATTATCH_KEY_THREAD_TIMEOUT)) { in UnwindKeyThread() 149 result = unwindAsyncThread->UnwindStack(vmPid); in UnwindKeyThread() 178 pid_t vmPid) in UnwindOtherThread() 80 UnwindProcess(std::shared_ptr<ProcessDumpRequest> request, std::shared_ptr<DfxProcess> process, std::shared_ptr<Unwinder> unwinder, pid_t vmPid) UnwindProcess() argument 127 UnwindKeyThread(std::shared_ptr<ProcessDumpRequest> request, std::shared_ptr<DfxProcess> process, std::shared_ptr<Unwinder> unwinder, pid_t vmPid) UnwindKeyThread() argument 177 UnwindOtherThread(std::shared_ptr<DfxProcess> process, std::shared_ptr<Unwinder> unwinder, pid_t vmPid) UnwindOtherThread() argument [all...] |
H A D | dfx_unwind_remote.h | 40 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 D | lock_parser.cpp | 36 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 D | lock_parser.h | 25 static bool ParseLockInfo(std::shared_ptr<Unwinder> unwinder, int32_t vmPid, int32_t tid);
|
H A D | process_dumper.cpp | 215 void ReadPids(int& realPid, int& vmPid) in ReadPids() argument 220 vmPid = pids[VIRTUAL_PROCESS_PID]; in ReadPids() 221 DFXLOGW("procecdump get real pid is %{public}d vm pid is %{public}d", realPid, vmPid); in ReadPids() 498 bool ProcessDumper::Unwind(std::shared_ptr<ProcessDumpRequest> request, int &dumpRes, pid_t vmPid) in Unwind() argument 512 if (!DfxUnwindRemote::GetInstance().UnwindProcess(request, process_, unwinder_, vmPid)) { in Unwind() 556 pid_t vmPid = 0; in DumpProcess() local 557 if (!InitUnwinder(request, vmPid, dumpRes) && (isCrash_ && !isLeakDump)) { in DumpProcess() 566 if (!Unwind(request, dumpRes, vmPid)) { in DumpProcess() 584 if (isCrash_ && request->vmPid != 0) { in InitVmThread() 591 process_->vmThread_ = DfxThread::Create(request->vmPid, reques in InitVmThread() 633 InitUnwinder(std::shared_ptr<ProcessDumpRequest> request, pid_t &vmPid, int &dumpRes) InitUnwinder() argument [all...] |
H A D | process_dumper.h | 53 bool InitUnwinder(std::shared_ptr<ProcessDumpRequest> request, pid_t &vmPid, int &dumpRes); 56 bool Unwind(std::shared_ptr<ProcessDumpRequest> request, int &dumpRes, pid_t vmPid);
|
H A D | dfx_unwind_async_thread.h | 33 bool UnwindStack(pid_t vmPid = 0);
|
H A D | dfx_unwind_async_thread.cpp | 34 bool DfxUnwindAsyncThread::UnwindStack(pid_t vmPid) in UnwindStack() argument 46 auto tmpPid = vmPid != 0 ? vmPid : tid; in UnwindStack()
|
/base/hiviewdfx/faultloggerd/interfaces/common/ |
H A D | dfx_dump_request.h | 118 int32_t vmPid; member
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/signal_handler/ |
H A D | dfx_dumprequest.c | 442 pid_t vmPid = ForkBySyscall(); in StartVMProcessUnwind() local 443 if (vmPid == 0) { in StartVMProcessUnwind() 617 g_request->vmPid = GetRealPid(); in ForkAndDoProcessDump() 618 DFXLOGI("The vm pid(%{public}d:%{public}d).", g_request->vmPid, g_request->vmNsPid); in ForkAndDoProcessDump()
|
/base/hiviewdfx/faultloggerd/test/unittest/process_dump/ |
H A D | dfx_processdump_test.cpp | 580 request->vmPid = 1; in HWTEST_F()
|