Lines Matching refs:thread
54 void GetThreadKernelStack(std::shared_ptr<DfxThread> thread)
57 pid_t tid = thread->threadInfo_.nsTid;
69 thread->SetFrames(threadStack.frames);
94 // dumpt -p -t will not unwind other thread
102 DFXLOGW("%{public}s::unwind vm thread is not initialized.", __func__);
108 DFXLOGW("%{public}s::unwind key thread is not initialized.", __func__);
123 DFXLOGW("success unwind thread cnt is %{public}d", unwCnt);
136 DFXLOGW("%{public}s::unwind thread is not initialized.", __func__);
186 for (auto &thread : process->GetOtherThreads()) {
191 if (isVmProcAttach || thread->Attach(PTRACE_ATTATCH_OTHER_THREAD_TIMEOUT)) {
192 Printer::PrintThreadHeaderByConfig(thread, false);
193 auto regs = thread->GetThreadRegs();
196 pid_t tid = thread->threadInfo_.nsTid;
199 GetThreadKernelStack(thread);
200 Printer::PrintThreadBacktraceByConfig(thread, false);
201 thread->Detach();
210 thread->SetFrames(unwinder->GetFrames());
214 thread->Detach();
216 thread->SetFrames(unwinder->GetFrames());
227 Printer::PrintThreadBacktraceByConfig(thread, false);
251 for (auto &thread : process->GetOtherThreads()) {
252 if (thread->Attach(PTRACE_ATTATCH_OTHER_THREAD_TIMEOUT)) {
253 thread->SetThreadRegs(DfxRegs::CreateRemoteRegs(thread->threadInfo_.nsTid));
262 DFXLOGE("get key thread regs fail");