/art/libartpalette/apex/ |
D | palette_test.cc | 46 int32_t tid = GetTid(); in TEST_F() local 48 EXPECT_EQ(PaletteStatus::kOkay, PaletteSchedGetPriority(tid, &saved_priority)); in TEST_F() 50 EXPECT_EQ(PaletteStatus::kInvalidArgument, PaletteSchedSetPriority(tid, /*java_priority=*/ 0)); in TEST_F() 51 EXPECT_EQ(PaletteStatus::kInvalidArgument, PaletteSchedSetPriority(tid, /*java_priority=*/ -1)); in TEST_F() 52 EXPECT_EQ(PaletteStatus::kInvalidArgument, PaletteSchedSetPriority(tid, /*java_priority=*/ 11)); in TEST_F() 54 EXPECT_EQ(PaletteStatus::kOkay, PaletteSchedSetPriority(tid, /*java_priority=*/ 1)); in TEST_F() 55 EXPECT_EQ(PaletteStatus::kOkay, PaletteSchedSetPriority(tid, saved_priority)); in TEST_F()
|
D | palette.cc | 118 enum PaletteStatus PaletteSchedSetPriority(int32_t tid, int32_t java_priority) { in PaletteSchedSetPriority() argument 120 return m(tid, java_priority); in PaletteSchedSetPriority() 123 enum PaletteStatus PaletteSchedGetPriority(int32_t tid, /*out*/int32_t* java_priority) { in PaletteSchedGetPriority() argument 125 return m(tid, java_priority); in PaletteSchedGetPriority()
|
/art/libartpalette/system/ |
D | palette_fake.cc | 36 enum PaletteStatus PaletteSchedSetPriority(int32_t tid, int32_t priority) { in PaletteSchedSetPriority() argument 42 g_tid_priority_map[tid] = priority; in PaletteSchedSetPriority() 46 enum PaletteStatus PaletteSchedGetPriority(int32_t tid, in PaletteSchedGetPriority() argument 49 if (g_tid_priority_map.find(tid) == g_tid_priority_map.end()) { in PaletteSchedGetPriority() 50 g_tid_priority_map[tid] = art::palette::kNormalManagedThreadPriority; in PaletteSchedGetPriority() 52 *priority = g_tid_priority_map[tid]; in PaletteSchedGetPriority()
|
/art/runtime/ |
D | runtime_linux.cc | 38 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()
|
D | native_stack_dump.h | 34 pid_t tid,
|
D | native_stack_dump.cc | 321 pid_t tid, in DumpNativeStack() argument 335 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(BACKTRACE_CURRENT_PROCESS, tid, map)); in DumpNativeStack() 338 os << prefix << "(backtrace::Unwind failed for thread " << tid in DumpNativeStack() 342 os << prefix << "(no native stack frames for thread " << tid << ")" << std::endl; in DumpNativeStack() 422 pid_t tid ATTRIBUTE_UNUSED,
|
D | thread_list.cc | 121 bool ThreadList::Contains(pid_t tid) { in Contains() argument 123 if (thread->GetTid() == tid) { in Contains() 159 static void DumpUnattachedThread(std::ostream& os, pid_t tid, bool dump_native_stack) in DumpUnattachedThread() argument 163 Thread::DumpState(os, nullptr, tid); in DumpUnattachedThread() 165 DumpNativeStack(os, tid, nullptr, " native: "); in DumpUnattachedThread() 180 pid_t tid = strtol(e->d_name, &end, 10); in DumpUnattachedThreads() local 185 contains = Contains(tid); in DumpUnattachedThreads() 188 DumpUnattachedThread(os, tid, dump_native_stack); in DumpUnattachedThreads() 475 for (uint32_t tid : runnable_thread_ids) { in RunEmptyCheckpoint() local 476 ss << " " << tid; in RunEmptyCheckpoint() [all …]
|
D | runtime_common.cc | 397 pid_t tid = GetTid(); in HandleUnexpectedSignalCommonDump() local 398 std::string thread_name(GetThreadName(tid)); in HandleUnexpectedSignalCommonDump() 411 << "Thread: " << tid << " \"" << thread_name << "\"" << std::endl in HandleUnexpectedSignalCommonDump()
|
D | trace.cc | 826 pid_t tid = thread->GetTid(); in RegisterThread() local 827 CHECK_LT(0U, static_cast<uint32_t>(tid)); in RegisterThread() 828 CHECK_LT(static_cast<uint32_t>(tid), kMaxThreadIdNumber); in RegisterThread() 830 if (!(*seen_threads_)[tid]) { in RegisterThread() 831 seen_threads_->set(tid); in RegisterThread()
|
D | thread_list.h | 192 bool Contains(pid_t tid) REQUIRES(Locks::thread_list_lock_);
|
D | entrypoints_order_test.cc | 69 EXPECT_OFFSET_DIFFP(Thread, tls32_, thin_lock_thread_id, tid, 4); in CheckThreadOffsets() 70 EXPECT_OFFSET_DIFFP(Thread, tls32_, tid, daemon, 4); in CheckThreadOffsets()
|
D | thread.h | 234 static void DumpState(std::ostream& os, const Thread* thread, pid_t tid) 418 return tls32_.tid; in GetTid() 1542 tid(0), in tls_32bit_sized_values() 1580 uint32_t tid; member
|
/art/libartpalette/include/palette/ |
D | palette_method_list.h | 26 M(PaletteSchedSetPriority, int32_t tid, int32_t java_priority) \ 27 M(PaletteSchedGetPriority, int32_t tid, /*out*/int32_t* java_priority) \
|
/art/tools/signal_dumper/ |
D | signal_dumper.cc | 351 pid_t tid = strtoul(de->d_name, &end, 10); in PtraceSiblings() local 356 if (tid == pid) { in PtraceSiblings() 360 if (::ptrace(PTRACE_ATTACH, tid, 0, 0) != 0) { in PtraceSiblings() 361 PLOG(ERROR) << "Failed to attach to tid " << tid; in PtraceSiblings() 365 ret.insert(tid); in PtraceSiblings() 496 pid_t tid, in DumpThread() argument 500 LOG(ERROR) << std::endl << "=== pid: " << pid << " tid: " << tid << " ===" << std::endl; in DumpThread() 503 if (pid != tid && !WaitForSigStopped(tid, kMaxWaitMicros)) { in DumpThread() 504 LOG(ERROR) << "Failed to wait for sigstop on " << tid; in DumpThread() 507 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(pid, tid, map)); in DumpThread() [all …]
|
/art/test/137-cfi/ |
D | cfi.cc | 183 int wait_for_sigstop(pid_t tid, int* total_sleep_time_usec, bool* detach_failed ATTRIBUTE_UNUSED) { in wait_for_sigstop() argument 186 pid_t n = TEMP_FAILURE_RETRY(waitpid(tid, &status, __WALL | WNOHANG)); in wait_for_sigstop() 188 PLOG(WARNING) << "waitpid failed: tid " << tid; in wait_for_sigstop() 190 } else if (n == tid) { in wait_for_sigstop() 200 PLOG(WARNING) << "timed out waiting for stop signal: tid=" << tid; in wait_for_sigstop()
|
/art/libartbase/base/ |
D | utils.cc | 196 std::string GetThreadName(pid_t tid) { in GetThreadName() argument 199 UNUSED(tid); in GetThreadName() 203 if (ReadFileToString(StringPrintf("/proc/self/task/%d/comm", tid), &result)) { in GetThreadName() 286 void GetTaskStats(pid_t tid, char* state, int* utime, int* stime, int* task_cpu) { in GetTaskStats() argument 290 UNUSED(tid); in GetTaskStats() 295 if (!ReadFileToString(StringPrintf("/proc/self/task/%d/stat", tid), &stats)) { in GetTaskStats()
|
D | utils.h | 53 std::string GetThreadName(pid_t tid); 60 void GetTaskStats(pid_t tid, char* state, int* utime, int* stime, int* task_cpu);
|
/art/tools/ |
D | stream-trace-converter.py | 121 tid = ReadShortLE(input) 124 self._threads.append('%d\t%s\n' % (tid, str)) 125 print 'New thread: %d/%s' % (tid, str)
|
/art/tools/hiddenapi/ |
D | find_api_violations.pl | 108 my ($pid, $tid, $class, $tag, $msg) = ($1, $2, $3, $4, $5);
|
/art/runtime/native/ |
D | dalvik_system_VMRuntime.cc | 695 pid_t tid = self->GetTid(); in VMRuntime_setSystemDaemonThreadPriority() local 700 if (setpriority(PRIO_PROCESS, tid, kSystemDaemonNiceValue) != 0) { in VMRuntime_setSystemDaemonThreadPriority() 701 PLOG(INFO) << *self << " setpriority(PRIO_PROCESS, " << tid << ", " in VMRuntime_setSystemDaemonThreadPriority()
|
/art/test/testrunner/ |
D | testrunner.py | 612 for tid in tids.stdout.decode("ascii").split(): 614 filename = "%s/%s/%s" % (task_dir, tid, status)
|