/art/runtime/ |
H A D | thread_android.cc | 56 pid_t tid = GetTid(); local 59 set_sched_policy(tid, SP_BACKGROUND); 60 } else if (getpriority(PRIO_PROCESS, tid) >= ANDROID_PRIORITY_BACKGROUND) { 61 set_sched_policy(tid, SP_FOREGROUND); 64 if (setpriority(PRIO_PROCESS, tid, newNice) != 0) { 65 PLOG(INFO) << *this << " setPriority(PRIO_PROCESS, " << tid << ", " << newNice << ") failed";
|
H A D | indirect_reference_table.cc | 263 void IndirectReferenceTable::VisitRoots(RootCallback* callback, void* arg, uint32_t tid, argument 266 callback(ref, arg, tid, root_type);
|
H A D | runtime_linux.cc | 294 pid_t tid = GetTid(); local 295 std::string thread_name(GetThreadName(tid)); 307 << "Thread: " << tid << " \"" << thread_name << "\"\n" 321 << "* Process " << getpid() << " thread " << tid << " \"" << thread_name << "\"" 324 << "* gdb -p " << tid << "\n" local
|
H A D | reference_table.cc | 245 void ReferenceTable::VisitRoots(RootCallback* visitor, void* arg, uint32_t tid, argument 248 root.VisitRoot(visitor, arg, tid, root_type);
|
H A D | thread_list.cc | 74 bool ThreadList::Contains(pid_t tid) { argument 76 if (thread->GetTid() == tid) { 104 static void DumpUnattachedThread(std::ostream& os, pid_t tid) NO_THREAD_SAFETY_ANALYSIS { 107 Thread::DumpState(os, NULL, tid); 108 DumpKernelStack(os, tid, " kernel: ", false); 112 DumpNativeStack(os, tid, " native: "); 127 pid_t tid = strtol(e->d_name, &end, 10); local 132 contains = Contains(tid); 135 DumpUnattachedThread(os, tid);
|
H A D | thread.h | 176 // case we use 'tid' to identify the thread, and we'll include as much information as we can. 177 static void DumpState(std::ostream& os, const Thread* thread, pid_t tid) 281 return tls32_.tid; 958 suspend_count(0), debug_suspend_count(0), thin_lock_thread_id(0), tid(0), 977 // This is not to be confused with the native thread's tid, nor is it the value returned 984 uint32_t tid; variable
|
H A D | utils.cc | 75 std::string GetThreadName(pid_t tid) { argument 77 if (ReadFileToString(StringPrintf("/proc/self/task/%d/comm", tid), &result)) { 1023 void GetTaskStats(pid_t tid, char* state, int* utime, int* stime, int* task_cpu) { argument 1026 if (!ReadFileToString(StringPrintf("/proc/self/task/%d/stat", tid), &stats)) { 1040 std::string GetSchedulerGroupName(pid_t tid) { argument 1046 if (!ReadFileToString(StringPrintf("/proc/self/task/%d/cgroup", tid), &cgroup_file)) { 1065 void DumpNativeStack(std::ostream& os, pid_t tid, const char* prefix, argument 1072 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(BACKTRACE_CURRENT_PROCESS, tid)); 1074 os << prefix << "(backtrace::Unwind failed for thread " << tid << ")\n"; local 1077 os << prefix << "(no native stack frames for thread " << tid << ")\ local 1123 DumpKernelStack(std::ostream& os, pid_t tid, const char* prefix, bool include_count) argument [all...] |
H A D | thread.cc | 136 tls32_.tid = ::art::GetTid(); 140 // One thread (us) survived the fork, but we have a new tid so we need to 571 // If we're in kStarting, we won't have a thin lock id or tid yet. 573 << ",tid=" << GetTid() << ','; 739 void Thread::DumpState(std::ostream& os, const Thread* thread, pid_t tid) { argument 768 std::string scheduler_group_name(GetSchedulerGroupName(tid)); 779 << " tid=" << thread->GetThreadId() 786 os << '"' << ::art::GetThreadName(tid) << '"' 800 os << " | sysTid=" << tid 801 << " nice=" << getpriority(PRIO_PROCESS, tid) 2134 RootCallbackVisitor(RootCallback* callback, void* arg, uint32_t tid) argument [all...] |
H A D | debugger.cc | 340 void DebugInvokeReq::VisitRoots(RootCallback* callback, void* arg, uint32_t tid, argument 343 callback(&receiver, arg, tid, root_type); 346 callback(&thread, arg, tid, root_type); 349 callback(reinterpret_cast<mirror::Object**>(&klass), arg, tid, root_type); local 352 callback(reinterpret_cast<mirror::Object**>(&method), arg, tid, root_type); local 364 void SingleStepControl::VisitRoots(RootCallback* callback, void* arg, uint32_t tid, argument 367 callback(reinterpret_cast<mirror::Object**>(&method), arg, tid, root_type); local
|