Home
last modified time | relevance | path

Searched refs:nsTid (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/base/hiviewdfx/faultloggerd/tools/process_dump/
H A Ddfx_thread.cpp38 std::shared_ptr<DfxThread> DfxThread::Create(pid_t pid, pid_t tid, pid_t nsTid) in Create() argument
40 auto thread = std::make_shared<DfxThread>(pid, tid, nsTid); in Create()
44 DfxThread::DfxThread(pid_t pid, pid_t tid, pid_t nsTid) : regs_(nullptr) in DfxThread() argument
46 InitThreadInfo(pid, tid, nsTid); in DfxThread()
49 void DfxThread::InitThreadInfo(pid_t pid, pid_t tid, pid_t nsTid) in InitThreadInfo() argument
53 threadInfo_.nsTid = nsTid; in InitThreadInfo()
118 DfxPtrace::Detach(threadInfo_.nsTid); in Detach()
129 if (!DfxPtrace::Attach(threadInfo_.nsTid, timeout)) { in Attach()
142 faultStack_ = std::make_shared<FaultStack>(threadInfo_.nsTid); in InitFaultStack()
H A Ddfx_unwind_remote.cpp57 pid_t tid = thread->threadInfo_.nsTid; in GetThreadKernelStack()
109 pid_t nsTid = process->keyThread_->threadInfo_.nsTid; in UnwindProcess() local
110 process->keyThread_->threadInfo_.nsTid = vmPid; // read registers from vm process in UnwindProcess()
112 process->keyThread_->threadInfo_.nsTid = nsTid; in UnwindProcess()
195 pid_t tid = thread->threadInfo_.nsTid; in UnwindOtherThread()
248 thread->SetThreadRegs(DfxRegs::CreateRemoteRegs(thread->threadInfo_.nsTid)); in InitOtherThreadRegs()
H A Ddfx_thread.h36 pid_t nsTid = 0; member
42 static std::shared_ptr<DfxThread> Create(pid_t pid, pid_t tid, pid_t nsTid);
43 DfxThread(pid_t pid, pid_t tid, pid_t nsTid);
67 void InitThreadInfo(pid_t pid, pid_t tid, pid_t nsTid);
H A Ddfx_unwind_async_thread.cpp44 pid_t tid = thread_->threadInfo_.nsTid; in UnwindStack()
71 LockParser::ParseLockInfo(unwinder_, tmpPid, thread_->threadInfo_.nsTid); in UnwindStack()
101 …size_t byte = DfxMemory::ReadProcMemByPid(thread_->threadInfo_.nsTid, map->begin, tableData->data(… in GetSubmitterStack()
H A Ddfx_process.cpp72 if ((keyThread_ != nullptr) && nstids[i] == keyThread_->threadInfo_.nsTid) { in InitOtherThreads()
134 if (thread->threadInfo_.nsTid == processInfo_.nsPid) { in Attach()
H A Dprocess_dumper.cpp490 if (thread->threadInfo_.nsTid == tid) { in Unwind()
594 pid_t nsTid = request->tid; in InitKeyThread() local
595 pid_t tid = process_->ChangeTid(nsTid, true); in InitKeyThread()
596 process_->keyThread_ = DfxThread::Create(process_->processInfo_.pid, tid, nsTid); in InitKeyThread()
598 DFXLOG_ERROR("Failed to attach key thread(%d).", nsTid); in InitKeyThread()
606 ptrace(PTRACE_CONT, process_->keyThread_->threadInfo_.nsTid, 0, 0); in InitKeyThread()