Home
last modified time | relevance | path

Searched refs:thread_name (Results 1 – 25 of 26) sorted by relevance

12

/art/runtime/
Dmonitor_android.cc62 std::string thread_name; in LogContentionEvent() local
63 self->GetThreadName(thread_name); in LogContentionEvent()
64 ctx << thread_name; in LogContentionEvent()
119 thread_name.c_str()); in LogContentionEvent()
Druntime_linux.cc39 std::string thread_name(GetThreadName(tid)); in HandleUnexpectedSignalLinux() local
41 << "* Process " << getpid() << " thread " << tid << " \"" << thread_name in HandleUnexpectedSignalLinux()
Dthread.cc861 std::string thread_name; in CreateNativeThread() local
863 thread_name = java_name->ToModifiedUtf8(); in CreateNativeThread()
865 thread_name = "(Unnamed)"; in CreateNativeThread()
868 VLOG(threads) << "Creating native thread for " << thread_name; in CreateNativeThread()
1006 Thread* Thread::Attach(const char* thread_name, in Attach() argument
1014 ((thread_name != nullptr) ? thread_name : "(Unnamed)"); in Attach()
1023 ((thread_name != nullptr) ? thread_name : "(Unnamed)"); in Attach()
1050 if (thread_name != nullptr) { in Attach()
1051 VLOG(threads) << "Attaching thread " << thread_name; in Attach()
1067 Thread* Thread::Attach(const char* thread_name, in Attach() argument
[all …]
Dinstrumentation.cc551 std::string thread_name; in InstrumentationInstallStack() local
552 thread->GetThreadName(thread_name); in InstrumentationInstallStack()
553 LOG(INFO) << "Installing exit stubs in " << thread_name; in InstrumentationInstallStack()
626 std::string thread_name; in ReportMethodEntryForOnStackMethods() local
627 thread->GetThreadName(thread_name); in ReportMethodEntryForOnStackMethods()
628 LOG(INFO) << "Updating DexPcMoveEvents on shadow frames on stack " << thread_name; in ReportMethodEntryForOnStackMethods()
678 std::string thread_name; in InstrumentationRestoreStack() local
679 thread->GetThreadName(thread_name); in InstrumentationRestoreStack()
680 LOG(INFO) << "Restoring stack for " << thread_name; in InstrumentationRestoreStack()
Druntime_callbacks_test.cc171 Handle<mirror::String> thread_name = hs.NewHandle( in TEST_F() local
173 ASSERT_TRUE(thread_name != nullptr); in TEST_F()
179 hs, self, thread_group, thread_name, kMinThreadPriority, /*daemon=*/ false); in TEST_F()
Dtrace.cc1374 std::string thread_name; in RecordThreadInfo() local
1375 thread->GetThreadName(thread_name); in RecordThreadInfo()
1380 if (thread_name.compare("Shutdown thread") == 0) { in RecordThreadInfo()
1386 threads_list_.Overwrite(GetThreadEncoding(thread->GetTid()), thread_name); in RecordThreadInfo()
1400 DCHECK(thread_name.length() < (1 << 16)); in RecordThreadInfo()
1401 Append2LE(header + 5, static_cast<uint16_t>(thread_name.length())); in RecordThreadInfo()
1404 !trace_file_->WriteFully(reinterpret_cast<const uint8_t*>(thread_name.c_str()), in RecordThreadInfo()
1405 thread_name.length())) { in RecordThreadInfo()
Druntime_common.cc398 std::string thread_name(GetThreadName(tid)); in HandleUnexpectedSignalCommonDump() local
411 << "Thread: " << tid << " \"" << thread_name << "\"" << std::endl in HandleUnexpectedSignalCommonDump()
Dthread.h273 static Thread* Attach(const char* thread_name,
279 static Thread* Attach(const char* thread_name, bool as_daemon, jobject thread_peer);
1654 static Thread* Attach(const char* thread_name,
1665 ObjPtr<mirror::String> thread_name,
Dthread_list.cc1471 std::string thread_name; in Unregister() local
1472 self->GetThreadName(thread_name); in Unregister()
1475 LOG(FATAL) << "Request to unregister unattached thread " << thread_name << "\n" << os.str(); in Unregister()
Druntime.h305 EXPORT bool AttachCurrentThread(const char* thread_name,
/art/test/2246-trace-v2/
Ddump_trace.cc94 void PrintTraceEntry(const std::string& thread_name, in PrintTraceEntry() argument
133 entry.append(thread_name); in PrintTraceEntry()
193 std::string thread_name = thread_map[thread_id]; in ProcessTraceEntries() local
194 bool print_thread_events = (thread_name.compare(thread_name_filter) == 0); in ProcessTraceEntries()
199 PrintTraceEntry(thread_name, in ProcessTraceEntries()
221 PrintTraceEntry(thread_name, in ProcessTraceEntries()
247 const char* thread_name = env->GetStringUTFChars(threadName, nullptr); in Java_Main_dumpTrace() local
297 thread_name, in Java_Main_dumpTrace()
312 env->ReleaseStringUTFChars(threadName, thread_name); in Java_Main_dumpTrace()
/art/libartbase/base/
Dutils.cc286 void SetThreadName(const char* thread_name) { in SetThreadName() argument
289 const char* s = thread_name; in SetThreadName()
298 int len = s - thread_name; in SetThreadName()
300 s = thread_name; in SetThreadName()
302 s = thread_name + len - 15; in SetThreadName()
314 pthread_setname_np(thread_name); in SetThreadName()
Dutils.h70 void SetThreadName(const char* thread_name);
/art/test/931-agent-thread/
Dagent_thread.cc95 ScopedLocalRef<jobject> thread_name(env, env->NewStringUTF("Agent Thread")); in Java_art_Test931_testAgentThread() local
96 if (thread_name.get() == nullptr) { in Java_art_Test931_testAgentThread()
129 thread.get(), thread_klass.get(), initID, thread_group.get(), thread_name.get()); in Java_art_Test931_testAgentThread()
/art/test/912-classes/
Dclasses.cc305 std::string thread_name = GetThreadName(jenv, jni_env, thread); in ClassLoadCallback() local
306 if (thread_name == "") { in ClassLoadCallback()
309 if (thread_name_filter_ != "" && thread_name_filter_ != thread_name) { in ClassLoadCallback()
316 thread_name.c_str())); in ClassLoadCallback()
327 std::string thread_name = GetThreadName(jenv, jni_env, thread); in ClassPrepareCallback() local
328 if (thread_name == "") { in ClassPrepareCallback()
331 if (thread_name_filter_ != "" && thread_name_filter_ != thread_name) { in ClassPrepareCallback()
339 thread_name.c_str(), in ClassPrepareCallback()
391 ScopedLocalRef<jobject> thread_name(env, env->NewStringUTF(name_str.c_str())); in RunEventThread() local
392 CHECK(thread_name.get() != nullptr); in RunEventThread()
[all …]
/art/test/924-threads/src/art/
DTest924.java340 private static List<String> filterForThread(Object[] thread_messages, String thread_name) { in filterForThread() argument
345 if (message.startsWith("Thread(" + thread_name + ")")) { in filterForThread()
370 String thread_name = "EventTestThread"; in doTestEvents() local
371 Thread t = new Thread(r, thread_name); in doTestEvents()
378 System.out.println(filterForThread(getThreadEventMessages(), thread_name).toString()); in doTestEvents()
383 System.out.println(filterForThread(getThreadEventMessages(), thread_name).toString()); in doTestEvents()
387 System.out.println(filterForThread(getThreadEventMessages(), thread_name).toString()); in doTestEvents()
/art/test/1919-vminit-thread-start-timing/
Dvminit.cc83 ScopedLocalRef<jobject> thread_name(env, env->NewStringUTF("JVMTI_THREAD-Test1919")); in CreateAgentThread() local
84 CHECK(thread_name.get() != nullptr); in CreateAgentThread()
95 env->CallNonvirtualVoidMethod(thread.get(), thread_klass.get(), initID, thread_name.get()); in CreateAgentThread()
/art/test/1971-multi-force-early-return/src/art/
DTest1971.java92 String thread_name = Thread.currentThread().getName(); in runTest() local
93 con.accept("Thread: " + thread_name + " method returned: " + targetMethod()); in runTest()
/art/libartpalette/include/palette/
Dpalette_method_list.h63 const char* thread_name) \
/art/tools/jvmti-agents/simple-force-redefine/
Dforceredefine.cc230 ScopedLocalRef<jobject> thread_name(env, env->NewStringUTF("Agent Thread")); in CbVmInit() local
231 if (thread_name.get() == nullptr) { in CbVmInit()
253 thread_name.get()); in CbVmInit()
/art/libartpalette/apex/
Dpalette.cc234 const char* thread_name) { in PaletteReportLockContention() argument
246 thread_name); in PaletteReportLockContention()
/art/libartpalette/system/
Dpalette_fake.cc140 [[maybe_unused]] const char* thread_name) { in PaletteReportLockContention() argument
/art/tools/jvmti-agents/simple-profile/
Dsimple_profile.cc178 ScopedLocalRef<jobject> thread_name(env, env->NewStringUTF(name.c_str())); in FinishInitialization() local
179 CHECK_NE(thread_name.get(), nullptr); in FinishInitialization()
189 env->CallNonvirtualVoidMethod(thread.get(), thread_klass.get(), initID, thread_name.get()); in FinishInitialization()
/art/runtime/jni/
Djava_vm_ext.cc470 const char* thread_name = nullptr; in AttachCurrentThreadInternal() local
479 thread_name = args->name; in AttachCurrentThreadInternal()
483 if (!runtime->AttachCurrentThread(thread_name, as_daemon, thread_group, in AttachCurrentThreadInternal()
/art/openjdkjvmti/
Dti_stack.cc1409 std::string thread_name; in ForceEarlyReturn() local
1410 frames.target_->GetThreadName(thread_name); in ForceEarlyReturn()
1411 JVMTI_LOG(WARNING, env) << "PopFrame or force-return already pending on thread " << thread_name; in ForceEarlyReturn()

12