/art/test/1919-vminit-thread-start-timing/ |
D | vminit.cc | 56 static void JNICALL ThreadStartCallback(jvmtiEnv *jvmti, JNIEnv* env, jthread thread) { in ThreadStartCallback() argument 58 CheckJvmtiError(jvmti, jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&list))); in ThreadStartCallback() 59 CheckJvmtiError(jvmti, jvmti->RawMonitorEnter(list->events_mutex)); in ThreadStartCallback() 61 CheckJvmtiError(jvmti, jvmti->RawMonitorExit(list->events_mutex)); in ThreadStartCallback() 64 static void JNICALL Test1919AgentThread(jvmtiEnv* jvmti, in Test1919AgentThread() argument 68 CheckJvmtiError(jvmti, jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&list))); in Test1919AgentThread() 69 CheckJvmtiError(jvmti, jvmti->RawMonitorEnter(list->events_mutex)); in Test1919AgentThread() 71 CheckJvmtiError(jvmti, jvmti->GetCurrentThread(&cur)); in Test1919AgentThread() 75 CheckJvmtiError(jvmti, jvmti->RawMonitorNotify(list->events_mutex)); in Test1919AgentThread() 76 CheckJvmtiError(jvmti, jvmti->RawMonitorExit(list->events_mutex)); in Test1919AgentThread() [all …]
|
/art/test/ti-agent/ |
D | trace_helper.cc | 30 static bool IsInCallback(JNIEnv* env, jvmtiEnv *jvmti, jthread thr) { in IsInCallback() argument 34 jvmti->GetThreadLocalStorage(thr, &data); in IsInCallback() 45 static void SetInCallback(JNIEnv* env, jvmtiEnv *jvmti, jthread thr, bool val) { in SetInCallback() argument 48 jvmti->SetThreadLocalStorage(thr, (val ? reinterpret_cast<void*>(0x1) in SetInCallback() 86 jclass GetTestClass(jvmtiEnv* jvmti, JNIEnv* env) { in GetTestClass() 87 if (JvmtiErrorToException(env, jvmti, jvmti->RawMonitorEnter(trace_mon))) { in GetTestClass() 91 if (JvmtiErrorToException(env, jvmti, jvmti->RawMonitorExit(trace_mon))) { in GetTestClass() 98 static void threadStartCB(jvmtiEnv* jvmti, in threadStartCB() argument 102 if (JvmtiErrorToException(jnienv, jvmti, in threadStartCB() 103 jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in threadStartCB() [all …]
|
D | common_helper.cc | 30 jobject GetJavaField(jvmtiEnv* jvmti, JNIEnv* env, jclass field_klass, jfieldID f) { in GetJavaField() argument 32 if (JvmtiErrorToException(env, jvmti, jvmti->GetFieldModifiers(field_klass, f, &mods))) { in GetJavaField() 40 jobject GetJavaMethod(jvmtiEnv* jvmti, JNIEnv* env, jmethodID m) { in GetJavaMethod() argument 42 if (JvmtiErrorToException(env, jvmti, jvmti->GetMethodModifiers(m, &mods))) { in GetJavaMethod() 48 if (JvmtiErrorToException(env, jvmti, jvmti->GetMethodDeclaringClass(m, &method_klass))) { in GetJavaMethod()
|
D | monitors_helper.cc | 81 static void monitorEnterCB(jvmtiEnv* jvmti, in monitorEnterCB() argument 86 if (JvmtiErrorToException(jnienv, jvmti, in monitorEnterCB() 87 jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in monitorEnterCB() 95 static void monitorEnteredCB(jvmtiEnv* jvmti, in monitorEnteredCB() argument 100 if (JvmtiErrorToException(jnienv, jvmti, in monitorEnteredCB() 101 jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in monitorEnteredCB() 109 static void monitorWaitCB(jvmtiEnv* jvmti, in monitorWaitCB() argument 115 if (JvmtiErrorToException(jnienv, jvmti, in monitorWaitCB() 116 jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in monitorWaitCB() 124 static void monitorWaitedCB(jvmtiEnv* jvmti, in monitorWaitedCB() argument [all …]
|
D | exceptions_helper.cc | 37 static void exceptionCB(jvmtiEnv* jvmti, in exceptionCB() argument 46 if (JvmtiErrorToException(jnienv, jvmti, in exceptionCB() 47 jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in exceptionCB() 57 jobject throw_method_arg = GetJavaMethod(jvmti, jnienv, throw_method); in exceptionCB() 59 catch_method != nullptr ? GetJavaMethod(jvmti, jnienv, catch_method) : nullptr; in exceptionCB() 78 static void exceptionCatchCB(jvmtiEnv* jvmti, in exceptionCatchCB() argument 85 if (JvmtiErrorToException(jnienv, jvmti, in exceptionCatchCB() 86 jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in exceptionCatchCB() 95 jobject catch_method_arg = GetJavaMethod(jvmti, jnienv, catch_method); in exceptionCatchCB()
|
D | frame_pop_helper.cc | 34 static void framePopCB(jvmtiEnv* jvmti, in framePopCB() argument 40 if (JvmtiErrorToException(jnienv, jvmti, in framePopCB() 41 jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in framePopCB() 47 jvmti, in framePopCB() 48 jvmti->GetFrameLocation(thr, 0, &frame_method, &location))) { in framePopCB() 52 jobject method_arg = GetJavaMethod(jvmti, jnienv, frame_method); in framePopCB()
|
D | common_helper.h | 28 jobject GetJavaField(jvmtiEnv* jvmti, JNIEnv* env, jclass field_klass, jfieldID f); 29 jobject GetJavaMethod(jvmtiEnv* jvmti, JNIEnv* env, jmethodID m);
|
D | redefinition_helper.cc | 38 static void throwCommonRedefinitionError(jvmtiEnv* jvmti, in throwCommonRedefinitionError() argument 45 jvmti->GetErrorName(res, &error); in throwCommonRedefinitionError() 54 jvmti->GetClassSignature(target[i], &signature, &generic); in throwCommonRedefinitionError() 59 jvmti->Deallocate(reinterpret_cast<unsigned char*>(signature)); in throwCommonRedefinitionError() 60 jvmti->Deallocate(reinterpret_cast<unsigned char*>(generic)); in throwCommonRedefinitionError() 64 jvmti->Deallocate(reinterpret_cast<unsigned char*>(error)); in throwCommonRedefinitionError() 96 static void throwRedefinitionError(jvmtiEnv* jvmti, in throwRedefinitionError() argument 101 return throwCommonRedefinitionError<true>(jvmti, env, num_targets, target, res); in throwRedefinitionError() 294 static void throwRetransformationError(jvmtiEnv* jvmti, in throwRetransformationError() argument 299 return throwCommonRedefinitionError<false>(jvmti, env, num_targets, targets, res); in throwRetransformationError()
|
/art/tools/titrace/ |
D | titrace.cc | 27 #define CHECK_JVMTI_ERROR(jvmti, errnum) \ argument 28 CHECK_EQ(JVMTI_ERROR_NONE, (errnum)) << GetJvmtiErrorString((jvmti), (errnum)) << (" ") 32 static const char* GetJvmtiErrorString(jvmtiEnv* jvmti, jvmtiError errnum) { in GetJvmtiErrorString() argument 34 jvmti->GetErrorName(errnum, /*out*/ &errnum_str); in GetJvmtiErrorString() 100 static void Initialize(jvmtiEnv* jvmti) { in Initialize() 107 error = jvmti->GetSystemProperty("java.vm.name", /*out*/ &value_ptr); in Initialize() 108 CHECK_JVMTI_ERROR(jvmti, error) << "Failed to get property 'java.vm.name'"; in Initialize() 242 jvmtiEnv* jvmti = nullptr; in Agent_OnLoad() local 245 res = jvm->GetEnv(reinterpret_cast<void**>(&jvmti), JVMTI_VERSION_1_1); in Agent_OnLoad() 247 if (res != JNI_OK || jvmti == nullptr) { in Agent_OnLoad() [all …]
|
/art/test/ti-stress/ |
D | stress.cc | 629 void JNICALL ClassFileLoadHookSecretNoOp(jvmtiEnv* jvmti, in ClassFileLoadHookSecretNoOp() argument 645 CHECK_EQ(jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)), in ClassFileLoadHookSecretNoOp() 651 } else if (DoExtractClassFromData(jvmti, name_str, class_data_len, class_data, in ClassFileLoadHookSecretNoOp() 723 static bool WatchAllFields(JavaVM* vm, jvmtiEnv* jvmti) { in WatchAllFields() argument 724 if (jvmti->SetEventNotificationMode(JVMTI_ENABLE, in WatchAllFields() 733 if (jvmti->GetLoadedClasses(&nklass, &klasses) != JVMTI_ERROR_NONE) { in WatchAllFields() 744 ScopedClassInfo sci(jvmti, k); in WatchAllFields() 750 jvmtiError err = jvmti->GetClassFields(k, &nfields, &fields); in WatchAllFields() 754 if (jvmti->SetFieldModificationWatch(k, f) != JVMTI_ERROR_NONE || in WatchAllFields() 755 jvmti->SetFieldAccessWatch(k, f) != JVMTI_ERROR_NONE) { in WatchAllFields() [all …]
|
/art/tools/breakpoint-logger/ |
D | breakpoint_logger.cc | 39 static void VMInitCB(jvmtiEnv* jvmti, JNIEnv* env, jthread thr ATTRIBUTE_UNUSED) { in VMInitCB() argument 41 jvmtiError err = jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&all_targets)); in VMInitCB() 62 err = jvmti->SetBreakpoint(m, target.location); in VMInitCB() 354 jvmtiEnv* jvmti = nullptr; in AgentStart() local 358 res = vm->GetEnv(reinterpret_cast<void**>(&jvmti), JVMTI_VERSION_1_1); in AgentStart() 360 if (res != JNI_OK || jvmti == nullptr) { in AgentStart() 367 error = jvmti->Allocate(sizeof(BreakpointTargets), in AgentStart() 375 error = jvmti->SetEnvironmentLocalStorage(data); in AgentStart() 391 error = jvmti->AddCapabilities(&caps); in AgentStart() 401 error = jvmti->SetEventCallbacks(&callbacks, static_cast<jint>(sizeof(callbacks))); in AgentStart() [all …]
|
/art/test/1933-monitor-current-contended/ |
D | run | 17 ./default-run "$@" --jvmti
|
/art/test/930-hello-retransform/ |
D | run | 17 ./default-run "$@" --jvmti
|
/art/test/1944-sudden-exit/ |
D | run | 18 ./default-run "$@" --jvmti
|
/art/test/1922-owned-monitors-info/ |
D | run | 17 ./default-run "$@" --jvmti
|
/art/test/1925-self-frame-pop/ |
D | run | 18 ./default-run "$@" --jvmti
|
/art/test/1905-suspend-native/ |
D | run | 17 ./default-run "$@" --jvmti
|
/art/test/917-fields-transformation/ |
D | run | 17 ./default-run "$@" --jvmti
|
/art/test/990-field-trace/ |
D | run | 18 ./default-run "$@" --jvmti
|
/art/test/925-threadgroups/ |
D | run | 17 ./default-run "$@" --jvmti
|
/art/test/927-timers/ |
D | run | 17 ./default-run "$@" --jvmti
|
/art/test/1901-get-bytecodes/ |
D | run | 17 ./default-run "$@" --jvmti
|
/art/test/905-object-free/ |
D | run | 17 ./default-run "$@" --jvmti
|
/art/test/940-recursive-obsolete/ |
D | run | 17 ./default-run "$@" --jvmti
|
/art/test/1930-monitor-info/ |
D | run | 17 ./default-run "$@" --jvmti
|