Searched refs:keyThread_ (Results 1 - 9 of 9) sorted by relevance
/base/hiviewdfx/faultloggerd/tools/process_dump/ |
H A D | dfx_stack_info_formatter.cpp | 101 exception["thread_name"] = process_->keyThread_->threadInfo_.threadName; in GetNativeCrashInfo() 102 exception["tid"] = process_->keyThread_->threadInfo_.tid; in GetNativeCrashInfo() 107 FillFrames(process_->keyThread_, frames); in GetNativeCrashInfo() 124 thread["thread_name"] = process_->keyThread_->threadInfo_.threadName; in GetDumpInfo() 125 thread["tid"] = process_->keyThread_->threadInfo_.tid; in GetDumpInfo() 127 FillFrames(process_->keyThread_, frames); in GetDumpInfo()
|
H A D | dfx_unwind_remote.cpp | 107 if (process->keyThread_ == nullptr) { in UnwindProcess() 110 pid_t nsTid = process->keyThread_->threadInfo_.nsTid; in UnwindProcess() 111 process->keyThread_->threadInfo_.nsTid = vmPid; // read registers from vm process in UnwindProcess() 112 Printer::PrintThreadFaultStackByConfig(process, process->keyThread_, unwinder); in UnwindProcess() 113 process->keyThread_->threadInfo_.nsTid = nsTid; in UnwindProcess() 131 std::shared_ptr<DfxThread> unwThread = process->keyThread_; in UnwindKeyThread() 167 Printer::PrintThreadHeaderByConfig(process->keyThread_, true); in UnwindKeyThread() 241 process->keyThread_->SetThreadRegs(regs); in InitTargetKeyThreadRegs()
|
H A D | dfx_process.cpp | 72 if ((keyThread_ != nullptr) && nstids[i] == keyThread_->threadInfo_.nsTid) { in InitOtherThreads() 126 if (hasKey && keyThread_) { in Attach() 127 keyThread_->Attach(PTRACE_ATTATCH_KEY_THREAD_TIMEOUT); in Attach()
|
H A D | process_dumper.cpp | 309 if (process_->keyThread_ != nullptr) { in Dump() 310 process_->keyThread_->Detach(); in Dump() 506 swap(process_->keyThread_, thread); in Unwind() 610 process_->keyThread_ = DfxThread::Create(process_->processInfo_.pid, tid, nsTid); in InitKeyThread() 611 if ((process_->keyThread_ == nullptr) || (!process_->keyThread_->Attach(PTRACE_ATTATCH_KEY_THREAD_TIMEOUT))) { in InitKeyThread() 619 if ((process_->keyThread_ != nullptr) && request->dumpMode == FUSION_MODE) { in InitKeyThread() 620 ptrace(PTRACE_CONT, process_->keyThread_->threadInfo_.nsTid, 0, 0); in InitKeyThread() 623 if ((process_->keyThread_ != nullptr) && (request->dumpMode == SPLIT_MODE) && !isCrash_) { in InitKeyThread() 624 process_->keyThread_ in InitKeyThread() [all...] |
H A D | dfx_process.h | 55 std::shared_ptr<DfxThread> keyThread_ = nullptr; // comment: crash thread or dump target thread member in OHOS::HiviewDFX::DfxProcess
|
H A D | printer.cpp | 131 process->keyThread_ == nullptr; in PrintReason() 133 DFXLOGW("%{public}s is nullptr", unwinder == nullptr ? "unwinder" : "keyThread_"); in PrintReason() 142 std::string elfName = StringPrintf("[anon:stack:%d]", process->keyThread_->threadInfo_.tid); in PrintReason()
|
H A D | cppcrash_reporter.cpp | 59 std::shared_ptr<DfxThread> thread = dumpMode_ == FUSION_MODE ? process_->keyThread_ : process_->vmThread_; in Format()
|
/base/hiviewdfx/faultloggerd/test/unittest/process_dump/ |
H A D | dfx_processdump_test.cpp | 493 ins.process_->keyThread_ = nullptr; in HWTEST_F() 497 ins.process_->keyThread_ = std::make_shared<DfxThread>(); in HWTEST_F() 504 ins.process_->keyThread_ = nullptr; in HWTEST_F() 510 ins.process_->keyThread_->threadInfo_.threadName = ""; in HWTEST_F()
|
H A D | process_dump_test.cpp | 202 process->keyThread_ = thread; in HWTEST_F() 232 process->keyThread_ = thread; in HWTEST_F()
|
Completed in 8 milliseconds