Home
last modified time | relevance | path

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

/art/libartpalette/apex/
Dpalette_test.cc46 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()
Dpalette.cc118 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/
Dpalette_fake.cc36 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/
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,
Dnative_stack_dump.cc321 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,
Dthread_list.cc121 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 …]
Druntime_common.cc397 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()
Dtrace.cc826 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()
Dthread_list.h192 bool Contains(pid_t tid) REQUIRES(Locks::thread_list_lock_);
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()
Dthread.h234 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/
Dpalette_method_list.h26 M(PaletteSchedSetPriority, int32_t tid, int32_t java_priority) \
27 M(PaletteSchedGetPriority, int32_t tid, /*out*/int32_t* java_priority) \
/art/tools/signal_dumper/
Dsignal_dumper.cc351 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/
Dcfi.cc183 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/
Dutils.cc196 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()
Dutils.h53 std::string GetThreadName(pid_t tid);
60 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/tools/hiddenapi/
Dfind_api_violations.pl108 my ($pid, $tid, $class, $tag, $msg) = ($1, $2, $3, $4, $5);
/art/runtime/native/
Ddalvik_system_VMRuntime.cc695 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/
Dtestrunner.py612 for tid in tids.stdout.decode("ascii").split():
614 filename = "%s/%s/%s" % (task_dir, tid, status)