Home
last modified time | relevance | path

Searched refs:tid (Results 1 – 16 of 16) 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()
Druntime_linux.cc38 pid_t tid = GetTid(); in HandleUnexpectedSignalLinux() local
39 std::string thread_name(GetThreadName(tid)); in HandleUnexpectedSignalLinux()
41 << "* Process " << getpid() << " thread " << tid << " \"" << thread_name in HandleUnexpectedSignalLinux()
45 << "* gdb -p " << tid << "\n" in HandleUnexpectedSignalLinux()
Dnative_stack_dump.h34 pid_t tid,
44 pid_t tid,
Dnative_stack_dump.cc286 pid_t tid, in DumpNativeStack() argument
303 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(BACKTRACE_CURRENT_PROCESS, tid, map)); in DumpNativeStack()
306 os << prefix << "(backtrace::Unwind failed for thread " << tid in DumpNativeStack()
310 os << prefix << "(no native stack frames for thread " << tid << ")" << std::endl; in DumpNativeStack()
387 void DumpKernelStack(std::ostream& os, pid_t tid, const char* prefix, bool include_count) { in DumpKernelStack() argument
388 if (tid == GetTid()) { in DumpKernelStack()
393 std::string kernel_stack_filename(StringPrintf("/proc/self/task/%d/stack", tid)); in DumpKernelStack()
428 pid_t tid ATTRIBUTE_UNUSED,
437 pid_t tid ATTRIBUTE_UNUSED,
Dthread_list.cc122 bool ThreadList::Contains(pid_t tid) { in Contains() argument
124 if (thread->GetTid() == tid) { in Contains()
160 static void DumpUnattachedThread(std::ostream& os, pid_t tid, bool dump_native_stack) in DumpUnattachedThread() argument
164 Thread::DumpState(os, nullptr, tid); in DumpUnattachedThread()
165 DumpKernelStack(os, tid, " kernel: ", false); in DumpUnattachedThread()
167 DumpNativeStack(os, tid, nullptr, " native: "); in DumpUnattachedThread()
182 pid_t tid = strtol(e->d_name, &end, 10); in DumpUnattachedThreads() local
187 contains = Contains(tid); in DumpUnattachedThreads()
190 DumpUnattachedThread(os, tid, dump_native_stack); in DumpUnattachedThreads()
472 for (uint32_t tid : runnable_thread_ids) { in RunEmptyCheckpoint() local
[all …]
Druntime_common.cc406 pid_t tid = GetTid(); in HandleUnexpectedSignalCommon() local
407 std::string thread_name(GetThreadName(tid)); in HandleUnexpectedSignalCommon()
420 << "Thread: " << tid << " \"" << thread_name << "\"" << std::endl in HandleUnexpectedSignalCommon()
Dthread.cc417 tls32_.tid = ::art::GetTid(); in InitTid()
1589 static std::string GetSchedulerGroupName(pid_t tid) { in GetSchedulerGroupName() argument
1595 if (!ReadFileToString(StringPrintf("/proc/self/task/%d/cgroup", tid), &cgroup_file)) { in GetSchedulerGroupName()
1615 void Thread::DumpState(std::ostream& os, const Thread* thread, pid_t tid) { in DumpState() argument
1659 std::string scheduler_group_name(GetSchedulerGroupName(tid)); in DumpState()
1677 os << '"' << ::art::GetThreadName(tid) << '"' in DumpState()
1692 os << " | sysTid=" << tid in DumpState()
1693 << " nice=" << getpriority(PRIO_PROCESS, tid) in DumpState()
1700 policy = sched_getscheduler(tid); in DumpState()
1702 PLOG(WARNING) << "sched_getscheduler(" << tid << ")"; in DumpState()
[all …]
Dtrace.cc876 pid_t tid = thread->GetTid(); in RegisterThread() local
877 CHECK_LT(0U, static_cast<uint32_t>(tid)); in RegisterThread()
878 CHECK_LT(static_cast<uint32_t>(tid), kMaxThreadIdNumber); in RegisterThread()
880 if (!(*seen_threads_)[tid]) { in RegisterThread()
881 seen_threads_->set(tid); in RegisterThread()
Dthread_list.h189 bool Contains(pid_t tid) REQUIRES(Locks::thread_list_lock_);
Dentrypoints_order_test.cc71 EXPECT_OFFSET_DIFFP(Thread, tls32_, thin_lock_thread_id, tid, 4); in CheckThreadOffsets()
72 EXPECT_OFFSET_DIFFP(Thread, tls32_, tid, daemon, 4); in CheckThreadOffsets()
Dthread.h224 static void DumpState(std::ostream& os, const Thread* thread, pid_t tid)
383 return tls32_.tid; in GetTid()
1460 suspend_count(0), debug_suspend_count(0), thin_lock_thread_id(0), tid(0), in tls_32bit_sized_values()
1488 uint32_t tid; member
/art/test/137-cfi/
Dcfi.cc156 int wait_for_sigstop(pid_t tid, int* total_sleep_time_usec, bool* detach_failed ATTRIBUTE_UNUSED) { in wait_for_sigstop() argument
159 pid_t n = TEMP_FAILURE_RETRY(waitpid(tid, &status, __WALL | WNOHANG)); in wait_for_sigstop()
161 PLOG(WARNING) << "waitpid failed: tid " << tid; in wait_for_sigstop()
163 } else if (n == tid) { in wait_for_sigstop()
173 PLOG(WARNING) << "timed out waiting for stop signal: tid=" << tid; in wait_for_sigstop()
/art/libartbase/base/
Dutils.cc63 std::string GetThreadName(pid_t tid) { in GetThreadName() argument
66 if (ReadFileToString(StringPrintf("/proc/self/task/%d/comm", tid), &result)) { in GetThreadName()
148 void GetTaskStats(pid_t tid, char* state, int* utime, int* stime, int* task_cpu) { in GetTaskStats() argument
152 if (!ReadFileToString(StringPrintf("/proc/self/task/%d/stat", tid), &stats)) { in GetTaskStats()
Dutils.h81 std::string GetThreadName(pid_t tid);
88 void GetTaskStats(pid_t tid, char* state, int* utime, int* stime, int* task_cpu);
/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)
/art/runtime/native/
Ddalvik_system_VMRuntime.cc677 pid_t tid = self->GetTid(); in VMRuntime_setSystemDaemonThreadPriority() local
682 if (setpriority(PRIO_PROCESS, tid, kSystemDaemonNiceValue) != 0) { in VMRuntime_setSystemDaemonThreadPriority()
683 PLOG(INFO) << *self << " setpriority(PRIO_PROCESS, " << tid << ", " in VMRuntime_setSystemDaemonThreadPriority()