Home
last modified time | relevance | path

Searched refs:tid (Results 1 – 12 of 12) sorted by relevance

/art/runtime/
Dthread_android.cc56 pid_t tid = GetTid(); in SetNativePriority() local
66 set_sched_policy(tid, SP_BACKGROUND); in SetNativePriority()
67 } else if (getpriority(PRIO_PROCESS, tid) >= ANDROID_PRIORITY_BACKGROUND) { in SetNativePriority()
68 set_sched_policy(tid, SP_FOREGROUND); in SetNativePriority()
71 if (setpriority(PRIO_PROCESS, tid, newNice) != 0) { in SetNativePriority()
72 PLOG(INFO) << *this << " setPriority(PRIO_PROCESS, " << tid << ", " << newNice << ") failed"; in SetNativePriority()
Dutils.h207 std::string GetThreadName(pid_t tid);
213 void GetTaskStats(pid_t tid, char* state, int* utime, int* stime, int* task_cpu);
216 std::string GetSchedulerGroupName(pid_t tid);
223 void DumpNativeStack(std::ostream& os, pid_t tid, const char* prefix = "",
228 void DumpKernelStack(std::ostream& os, pid_t tid, const char* prefix = "", bool include_count = tru…
Dutils.cc71 std::string GetThreadName(pid_t tid) { in GetThreadName() argument
73 if (ReadFileToString(StringPrintf("/proc/self/task/%d/comm", tid), &result)) { in GetThreadName()
983 void GetTaskStats(pid_t tid, char* state, int* utime, int* stime, int* task_cpu) { in GetTaskStats() argument
986 if (!ReadFileToString(StringPrintf("/proc/self/task/%d/stat", tid), &stats)) { in GetTaskStats()
1000 std::string GetSchedulerGroupName(pid_t tid) { in GetSchedulerGroupName() argument
1006 if (!ReadFileToString(StringPrintf("/proc/self/task/%d/cgroup", tid), &cgroup_file)) { in GetSchedulerGroupName()
1093 void DumpNativeStack(std::ostream& os, pid_t tid, const char* prefix, in DumpNativeStack() argument
1101 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(BACKTRACE_CURRENT_PROCESS, tid)); in DumpNativeStack()
1103 os << prefix << "(backtrace::Unwind failed for thread " << tid << ")\n"; in DumpNativeStack()
1106 os << prefix << "(no native stack frames for thread " << tid << ")\n"; in DumpNativeStack()
[all …]
Druntime_linux.cc327 pid_t tid = GetTid(); in HandleUnexpectedSignal() local
328 std::string thread_name(GetThreadName(tid)); in HandleUnexpectedSignal()
340 << "Thread: " << tid << " \"" << thread_name << "\"\n" in HandleUnexpectedSignal()
358 << "* Process " << getpid() << " thread " << tid << " \"" << thread_name in HandleUnexpectedSignal()
362 << "* gdb -p " << tid << "\n" in HandleUnexpectedSignal()
Dthread_list.cc82 bool ThreadList::Contains(pid_t tid) { in Contains() argument
84 if (thread->GetTid() == tid) { in Contains()
118 static void DumpUnattachedThread(std::ostream& os, pid_t tid) NO_THREAD_SAFETY_ANALYSIS { in DumpUnattachedThread() argument
121 Thread::DumpState(os, nullptr, tid); in DumpUnattachedThread()
122 DumpKernelStack(os, tid, " kernel: ", false); in DumpUnattachedThread()
126 DumpNativeStack(os, tid, " native: "); in DumpUnattachedThread()
141 pid_t tid = strtol(e->d_name, &end, 10); in DumpUnattachedThreads() local
146 contains = Contains(tid); in DumpUnattachedThreads()
149 DumpUnattachedThread(os, tid); in DumpUnattachedThreads()
Dthread_list.h157 bool Contains(pid_t tid) EXCLUSIVE_LOCKS_REQUIRED(Locks::thread_list_lock_);
Dthread.cc229 tls32_.tid = ::art::GetTid(); in InitTid()
890 void Thread::DumpState(std::ostream& os, const Thread* thread, pid_t tid) { in DumpState() argument
933 std::string scheduler_group_name(GetSchedulerGroupName(tid)); in DumpState()
951 os << '"' << ::art::GetThreadName(tid) << '"' in DumpState()
965 os << " | sysTid=" << tid in DumpState()
966 << " nice=" << getpriority(PRIO_PROCESS, tid) in DumpState()
980 if (ReadFileToString(StringPrintf("/proc/self/task/%d/schedstat", tid), &scheduler_stats)) { in DumpState()
990 GetTaskStats(tid, &native_thread_state, &utime, &stime, &task_cpu); in DumpState()
1011 if (rw_mutex->GetExclusiveOwnerTid() == static_cast<uint64_t>(tid)) { in DumpState()
2416 RootCallbackVisitor(RootVisitor* visitor, uint32_t tid) : visitor_(visitor), tid_(tid) {} in RootCallbackVisitor() argument
Dtrace.cc843 pid_t tid = thread->GetTid(); in RegisterThread() local
844 CHECK_LT(0U, static_cast<uint32_t>(tid)); in RegisterThread()
845 CHECK_LT(static_cast<uint32_t>(tid), 65536U); in RegisterThread()
847 if (!(*seen_threads_)[tid]) { in RegisterThread()
848 seen_threads_->set(tid); in RegisterThread()
Dthread.h199 static void DumpState(std::ostream& os, const Thread* thread, pid_t tid)
306 return tls32_.tid; in GetTid()
1059 suspend_count(0), debug_suspend_count(0), thin_lock_thread_id(0), tid(0), in tls_32bit_sized_values()
1086 uint32_t tid; member
Dentrypoints_order_test.cc69 EXPECT_OFFSET_DIFFP(Thread, tls32_, thin_lock_thread_id, tid, 4); in CheckThreadOffsets()
70 EXPECT_OFFSET_DIFFP(Thread, tls32_, tid, daemon, 4); in CheckThreadOffsets()
/art/test/137-cfi/
Dcfi.cc151 int wait_for_sigstop(pid_t tid, int* total_sleep_time_usec, bool* detach_failed ATTRIBUTE_UNUSED) { in wait_for_sigstop() argument
154 pid_t n = TEMP_FAILURE_RETRY(waitpid(tid, &status, __WALL | WNOHANG)); in wait_for_sigstop()
156 PLOG(WARNING) << "waitpid failed: tid " << tid; in wait_for_sigstop()
158 } else if (n == tid) { in wait_for_sigstop()
168 PLOG(WARNING) << "timed out waiting for stop signal: tid=" << tid; in wait_for_sigstop()
/art/tools/
Dstream-trace-converter.py121 tid = ReadShortLE(input)
124 self._threads.append('%d\t%s\n' % (tid, str))
125 print 'New thread: %d/%s' % (tid, str)