Lines Matching refs:tid
77 static String8 getThreadName(pid_t tid) { in getThreadName() argument
83 snprintf(path, sizeof(path), PATH_THREAD_NAME, tid); in getThreadName()
93 return String8::format("[err-unknown-tid-%d]", tid); in getThreadName()
156 pid_t tid = -1; in update() local
157 sscanf(ep->d_name, "%d", &tid); in update()
159 if (tid < 0) { in update()
166 ssize_t idx = mThreadMap.add(tid, ThreadInfo()); in update()
179 int ignoreDepth = (selfPid == tid) ? IGNORE_DEPTH_CURRENT_THREAD : 0; in update()
182 threadInfo.callStack.update(ignoreDepth, tid); in update()
185 threadInfo.threadName = getThreadName(tid); in update()
188 __FUNCTION__, tid, threadInfo.callStack.size()); in update()
212 pid_t tid = mThreadMap.keyAt(i); in printInternal() local
217 printer.printFormatLine("\"%s\" sysTid=%d", threadName.string(), tid); in printInternal()