Lines Matching defs:tid
42 std::string GetThreadHead(int32_t tid)
45 if (tid == BACKTRACE_CURRENT_THREAD) {
46 tid = gettid();
48 ReadThreadName(tid, threadName);
49 std::string threadHead = "Tid:" + std::to_string(tid) + ", Name:" + threadName + "\n";
54 bool GetBacktraceFramesByTid(std::vector<DfxFrame>& frames, int32_t tid, size_t skipFrameNum, bool fast,
59 if (fast || (tid != BACKTRACE_CURRENT_THREAD)) {
66 BacktraceLocalThread thread(tid, unwinder);
72 bool GetBacktraceStringByTid(std::string& out, int32_t tid, size_t skipFrameNum, bool fast,
76 bool ret = GetBacktraceFramesByTid(frames, tid, skipFrameNum + 1, fast, maxFrameNums);
80 if (DfxGetKernelStack(tid, msg) == 0 && FormatThreadKernelStack(msg, threadStack)) {
83 DFXLOGI("Failed to get tid(%{public}d) user stack, try kernel", tid);
88 std::string threadHead = GetThreadHead(tid);
150 std::function<bool(int)> func = [&](int tid) {
151 if (tid <= 0 || tid == gettid()) {
154 BacktraceLocalThread thread(tid, unwinder);
160 if (DfxGetKernelStack(tid, msg) == 0 && FormatThreadKernelStack(msg, threadStack)) {
163 DFXLOGI("Failed to get tid(%{public}d) user stack, try kernel", tid);