Lines Matching refs:tid

42 std::string GetThreadHead(int32_t tid)  in GetThreadHead()  argument
46 if (tid == BACKTRACE_CURRENT_THREAD) { in GetThreadHead()
47 tid = gettid(); in GetThreadHead()
49 ReadThreadName(tid, threadName); in GetThreadHead()
50 threadHead << "Tid:" << tid << ", Name:" << threadName << "\n"; in GetThreadHead()
55 bool GetBacktraceFramesByTid(std::vector<DfxFrame>& frames, int32_t tid, size_t skipFrameNum, bool … in GetBacktraceFramesByTid() argument
60 if (fast || (tid != BACKTRACE_CURRENT_THREAD)) { in GetBacktraceFramesByTid()
67 BacktraceLocalThread thread(tid, unwinder); in GetBacktraceFramesByTid()
73 bool GetBacktraceStringByTid(std::string& out, int32_t tid, size_t skipFrameNum, bool fast, in GetBacktraceStringByTid() argument
77 bool ret = GetBacktraceFramesByTid(frames, tid, skipFrameNum + 1, fast, maxFrameNums); in GetBacktraceStringByTid()
81 if (DfxGetKernelStack(tid, msg) == 0 && FormatThreadKernelStack(msg, threadStack)) { in GetBacktraceStringByTid()
84 DFXLOG_INFO("Failed to get tid(%d) user stack, try kernel", tid); in GetBacktraceStringByTid()
89 std::string threadHead = GetThreadHead(tid); in GetBacktraceStringByTid()
148 std::function<bool(int)> func = [&](int tid) { in GetProcessStacktrace() argument
149 if (tid <= 0 || tid == getproctid()) { in GetProcessStacktrace()
152 BacktraceLocalThread thread(tid, unwinder); in GetProcessStacktrace()
158 if (DfxGetKernelStack(tid, msg) == 0 && FormatThreadKernelStack(msg, threadStack)) { in GetProcessStacktrace()
161 DFXLOG_INFO("Failed to get tid(%d) user stack, try kernel", tid); in GetProcessStacktrace()