/art/test/931-agent-thread/ |
D | agent_thread.cc | 46 static void AgentMain(jvmtiEnv* jenv, JNIEnv* env, void* arg) { in AgentMain() argument 52 jvmtiError this_thread_result = jenv->GetCurrentThread(&this_thread); in AgentMain() 53 CheckJvmtiError(jenv, this_thread_result); in AgentMain() 58 jvmtiError info_result = jenv->GetThreadInfo(this_thread, &info); in AgentMain() 59 CheckJvmtiError(jenv, info_result); in AgentMain() 61 CheckJvmtiError(jenv, jenv->Deallocate(reinterpret_cast<unsigned char*>(info.name))); in AgentMain() 76 jvmtiError threads_result = jenv->GetAllThreads(&thread_count, &threads); in AgentMain() 77 CheckJvmtiError(jenv, threads_result); in AgentMain()
|
/art/test/901-hello-ti-agent/ |
D | basics.cc | 41 static jvmtiPhase getPhase(jvmtiEnv* jenv) { in getPhase() argument 43 jenv->GetPhase(&out); in getPhase() 47 static void JNICALL VMStartCallback(jvmtiEnv *jenv, JNIEnv* jni_env ATTRIBUTE_UNUSED) { in VMStartCallback() argument 48 printf("VMStart (phase %d)\n", getPhase(jenv)); in VMStartCallback() 59 static void JNICALL VMDeathCallback(jvmtiEnv *jenv, JNIEnv* jni_env) { in VMDeathCallback() argument 60 printf("VMDeath (phase %d)\n", getPhase(jenv)); in VMDeathCallback() 63 CHECK_EQ(jenv->GetCurrentThread(&cur_thr), JVMTI_ERROR_NONE); in VMDeathCallback()
|
/art/test/912-classes/ |
D | classes.cc | 222 static std::string GetClassName(jvmtiEnv* jenv, JNIEnv* jni_env, jclass klass) { in GetClassName() argument 224 jvmtiError result = jenv->GetClassSignature(klass, &name, nullptr); in GetClassName() 227 JvmtiErrorToException(jni_env, jenv, result); in GetClassName() 235 jenv->Deallocate(reinterpret_cast<unsigned char*>(name)); in GetClassName() 297 static void JNICALL ClassLoadCallback(jvmtiEnv* jenv, in ClassLoadCallback() argument 301 std::string name = GetClassName(jenv, jni_env, klass); in ClassLoadCallback() 305 std::string thread_name = GetThreadName(jenv, jni_env, thread); in ClassLoadCallback() 319 static void JNICALL ClassPrepareCallback(jvmtiEnv* jenv, in ClassPrepareCallback() argument 323 std::string name = GetClassName(jenv, jni_env, klass); in ClassPrepareCallback() 327 std::string thread_name = GetThreadName(jenv, jni_env, thread); in ClassPrepareCallback() [all …]
|
D | classes_art.cc | 78 static void JNICALL ClassLoadSeenCallback(jvmtiEnv* jenv ATTRIBUTE_UNUSED, in ClassLoadSeenCallback()
|
/art/openjdkjvmti/ |
D | ti_field.cc | 190 jvmtiError FieldUtil::SetFieldModificationWatch(jvmtiEnv* jenv, jclass klass, jfieldID field) { in SetFieldModificationWatch() argument 191 ArtJvmTiEnv* env = ArtJvmTiEnv::AsArtJvmTiEnv(jenv); in SetFieldModificationWatch() 207 jvmtiError FieldUtil::ClearFieldModificationWatch(jvmtiEnv* jenv, jclass klass, jfieldID field) { in ClearFieldModificationWatch() argument 208 ArtJvmTiEnv* env = ArtJvmTiEnv::AsArtJvmTiEnv(jenv); in ClearFieldModificationWatch() 224 jvmtiError FieldUtil::SetFieldAccessWatch(jvmtiEnv* jenv, jclass klass, jfieldID field) { in SetFieldAccessWatch() argument 225 ArtJvmTiEnv* env = ArtJvmTiEnv::AsArtJvmTiEnv(jenv); in SetFieldAccessWatch() 241 jvmtiError FieldUtil::ClearFieldAccessWatch(jvmtiEnv* jenv, jclass klass, jfieldID field) { in ClearFieldAccessWatch() argument 242 ArtJvmTiEnv* env = ArtJvmTiEnv::AsArtJvmTiEnv(jenv); in ClearFieldAccessWatch()
|
D | ti_breakpoint.cc | 88 jvmtiError BreakpointUtil::SetBreakpoint(jvmtiEnv* jenv, jmethodID method, jlocation location) { in SetBreakpoint() argument 89 ArtJvmTiEnv* env = ArtJvmTiEnv::AsArtJvmTiEnv(jenv); in SetBreakpoint() 112 jvmtiError BreakpointUtil::ClearBreakpoint(jvmtiEnv* jenv, jmethodID method, jlocation location) { in ClearBreakpoint() argument 113 ArtJvmTiEnv* env = ArtJvmTiEnv::AsArtJvmTiEnv(jenv); in ClearBreakpoint()
|
/art/test/905-object-free/ |
D | tracking_free.cc | 58 static void setupObjectFreeCallback(JNIEnv* env, jvmtiEnv* jenv, jvmtiEventObjectFree callback) { in setupObjectFreeCallback() argument 62 jvmtiError ret = jenv->SetEventCallbacks(&callbacks, sizeof(callbacks)); in setupObjectFreeCallback() 63 JvmtiErrorToException(env, jenv, ret); in setupObjectFreeCallback()
|
/art/test/933-misc-events/ |
D | misc_events.cc | 36 static void DumpRequestCallback(jvmtiEnv* jenv ATTRIBUTE_UNUSED) { in DumpRequestCallback()
|