Home
last modified time | relevance | path

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

/base/hiviewdfx/faultloggerd/tools/process_dump/
Ddfx_thread.cpp36 std::shared_ptr<DfxThread> DfxThread::Create(pid_t pid, pid_t tid, pid_t nsTid) in Create() argument
38 auto thread = std::make_shared<DfxThread>(pid, tid, nsTid); in Create()
42 DfxThread::DfxThread(pid_t pid, pid_t tid, pid_t nsTid) : regs_(nullptr) in DfxThread() argument
44 InitThreadInfo(pid, tid, nsTid); in DfxThread()
47 void DfxThread::InitThreadInfo(pid_t pid, pid_t tid, pid_t nsTid) in InitThreadInfo() argument
51 threadInfo_.nsTid = nsTid; in InitThreadInfo()
101 ptrace(PTRACE_CONT, threadInfo_.nsTid, 0, 0); in Detach()
102 ptrace(PTRACE_DETACH, threadInfo_.nsTid, NULL, NULL); in Detach()
113 if (ptrace(PTRACE_SEIZE, threadInfo_.nsTid, 0, 0) != 0) { in Attach()
115 threadInfo_.tid, threadInfo_.nsTid, getuid(), getgid(), errno); in Attach()
[all …]
Ddfx_thread.h35 pid_t nsTid = 0; member
41 static std::shared_ptr<DfxThread> Create(pid_t pid, pid_t tid, pid_t nsTid);
42 DfxThread(pid_t pid, pid_t tid, pid_t nsTid);
63 void InitThreadInfo(pid_t pid, pid_t tid, pid_t nsTid);
Dprocess_dumper.cpp174 pid_t nsTid = request->tid; in InitProcessInfo() local
175 pid_t tid = process_->ChangeTid(nsTid, true); in InitProcessInfo()
179 nsTid = process_->ChangeTid(tid, false); in InitProcessInfo()
182 process_->keyThread_ = DfxThread::Create(process_->processInfo_.pid, tid, nsTid); in InitProcessInfo()
184 DFXLOG_ERROR("Fail to attach key thread(%d).", nsTid); in InitProcessInfo()
Ddfx_unwind_remote.cpp330 pid_t nsTid = thread->threadInfo_.nsTid; in UnwindThread() local
331 void *context = _UPT_create(nsTid); in UnwindThread()
333 … DfxRingBufferWrapper::GetInstance().AppendBuf("Failed to create unwind context for %d.\n", nsTid); in UnwindThread()
340 …fxRingBufferWrapper::GetInstance().AppendBuf("Unwind address space is not exist for %d.\n", nsTid); in UnwindThread()
350 …erWrapper::GetInstance().AppendBuf("Failed to init cursor for thread:%d ret:%d.\n", nsTid, unwRet); in UnwindThread()
Ddfx_process.cpp69 if ((keyThread_ != nullptr) && nstids[i] == keyThread_->threadInfo_.nsTid) { in InitOtherThreads()
Dprinter.cpp123 auto faultstack = std::unique_ptr<FaultStack>(new FaultStack(thread->threadInfo_.nsTid)); in PrintThreadFaultStackByConfig()