/art/tools/jvmti-agents/ti-fast/ |
D | tifast.cc | 75 …jni_fun(VMInit, EVENT(VM_INIT), (jvmtiEnv* jvmti, JNIEnv* jni, jthread thread), (jvmti, jni, jthre… 76 jni_fun(VMDeath, EVENT(VM_DEATH), (jvmtiEnv* jvmti, JNIEnv* jni), (jvmti, jni)) \ 77 …jni_fun(ThreadStart, EVENT(THREAD_START), (jvmtiEnv* jvmti, JNIEnv* jni, jthread thread), (jvmti, … 78 …jni_fun(ThreadEnd, EVENT(THREAD_END), (jvmtiEnv* jvmti, JNIEnv* jni, jthread thread), (jvmti, jni,… 79 … jvmti, JNIEnv* jni, jclass klass, jobject obj1, const char* c1, jobject obj2, jint i1, const unsi… 80 …ni_fun(ClassLoad, EVENT(CLASS_LOAD), (jvmtiEnv* jvmti, JNIEnv* jni, jthread thread, jclass klass),… 81 …(ClassPrepare, EVENT(CLASS_PREPARE), (jvmtiEnv* jvmti, JNIEnv* jni, jthread thread, jclass klass),… 82 jni_fun(VMStart, EVENT(VM_START), (jvmtiEnv* jvmti, JNIEnv* jni), (jvmti, jni)) \ 83 …N), (jvmtiEnv* jvmti, JNIEnv* jni, jthread thread, jmethodID meth1, jlocation loc1, jobject obj, j… 84 …ENT(EXCEPTION_CATCH), (jvmtiEnv* jvmti, JNIEnv* jni, jthread thread, jmethodID meth, jlocation loc… [all …]
|
/art/tools/jvmti-agents/field-counts/ |
D | fieldcount.cc | 79 static jint SetupJvmtiEnv(JavaVM* vm, jvmtiEnv** jvmti) { in SetupJvmtiEnv() argument 81 res = vm->GetEnv(reinterpret_cast<void**>(jvmti), JVMTI_VERSION_1_1); in SetupJvmtiEnv() 83 if (res != JNI_OK || *jvmti == nullptr) { in SetupJvmtiEnv() 85 return vm->GetEnv(reinterpret_cast<void**>(jvmti), kArtTiVersion); in SetupJvmtiEnv() 94 static void DataDumpRequestCb(jvmtiEnv* jvmti) { in DataDumpRequestCb() argument 103 CHECK_JVMTI(jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&list))); in DataDumpRequestCb() 109 CHECK_JVMTI(jvmti->IterateOverInstancesOfClass( in DataDumpRequestCb() 123 CHECK_JVMTI(jvmti->GetObjectsWithTags(1, &tag, &obj_len, &obj_list, nullptr)); in DataDumpRequestCb() 140 CHECK_JVMTI(jvmti->SetTag(obj.get(), referenced_object_tag)); in DataDumpRequestCb() 145 CHECK_JVMTI(jvmti->GetClassSignature(obj_klass.get(), &class_name_tmp, nullptr)); in DataDumpRequestCb() [all …]
|
/art/tools/jvmti-agents/field-null-percent/ |
D | fieldnull.cc | 77 static jint SetupJvmtiEnv(JavaVM* vm, jvmtiEnv** jvmti) { in SetupJvmtiEnv() argument 79 res = vm->GetEnv(reinterpret_cast<void**>(jvmti), JVMTI_VERSION_1_1); in SetupJvmtiEnv() 81 if (res != JNI_OK || *jvmti == nullptr) { in SetupJvmtiEnv() 83 return vm->GetEnv(reinterpret_cast<void**>(jvmti), kArtTiVersion); in SetupJvmtiEnv() 92 static void DataDumpRequestCb(jvmtiEnv* jvmti) { in DataDumpRequestCb() argument 100 CHECK_JVMTI(jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&list))); in DataDumpRequestCb() 106 CHECK_JVMTI(jvmti->IterateOverInstancesOfClass( in DataDumpRequestCb() 120 CHECK_JVMTI(jvmti->GetObjectsWithTags(1, &tag, &obj_len, &obj_list, nullptr)); in DataDumpRequestCb() 132 CHECK_JVMTI(jvmti->GetFieldName(klass, field, &field_name, &field_sig, nullptr)); in DataDumpRequestCb() 133 CHECK_JVMTI(jvmti->GetClassSignature(klass, &class_name, nullptr)); in DataDumpRequestCb() [all …]
|
/art/tools/jvmti-agents/jit-load/ |
D | jitload.cc | 53 JNICALL void VmInitCb(jvmtiEnv* jvmti, in VmInitCb() argument 58 CHECK_EQ(jvmti->SetEventNotificationMode(JVMTI_ENABLE, JVMTI_EVENT_CLASS_PREPARE, jit_thread), in VmInitCb() 68 JNICALL static void DataDumpRequestCb(jvmtiEnv* jvmti) { in DataDumpRequestCb() argument 70 CHECK_CALL_SUCCESS(jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&ops))); in DataDumpRequestCb() 74 JNICALL void ClassPrepareJit(jvmtiEnv* jvmti, in ClassPrepareJit() argument 79 CHECK_CALL_SUCCESS(jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&ops))); in ClassPrepareJit() 81 CHECK_CALL_SUCCESS(jvmti->GetClassSignature(klass, &klass_name, nullptr)); in ClassPrepareJit() 85 CHECK_CALL_SUCCESS(jvmti->Deallocate(reinterpret_cast<unsigned char*>(klass_name))); in ClassPrepareJit() 88 JNICALL void VMDeathCb(jvmtiEnv* jvmti, JNIEnv* env ATTRIBUTE_UNUSED) { in VMDeathCb() argument 89 DataDumpRequestCb(jvmti); in VMDeathCb() [all …]
|
/art/test/1919-vminit-thread-start-timing/ |
D | vminit.cc | 58 static void JNICALL ThreadStartCallback(jvmtiEnv *jvmti, JNIEnv* env, jthread thread) { in ThreadStartCallback() argument 60 CheckJvmtiError(jvmti, jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&list))); in ThreadStartCallback() 61 CheckJvmtiError(jvmti, jvmti->RawMonitorEnter(list->events_mutex)); in ThreadStartCallback() 63 CheckJvmtiError(jvmti, jvmti->RawMonitorExit(list->events_mutex)); in ThreadStartCallback() 66 static void JNICALL Test1919AgentThread(jvmtiEnv* jvmti, in Test1919AgentThread() argument 70 CheckJvmtiError(jvmti, jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&list))); in Test1919AgentThread() 71 CheckJvmtiError(jvmti, jvmti->RawMonitorEnter(list->events_mutex)); in Test1919AgentThread() 73 CheckJvmtiError(jvmti, jvmti->GetCurrentThread(&cur)); in Test1919AgentThread() 77 CheckJvmtiError(jvmti, jvmti->RawMonitorNotify(list->events_mutex)); in Test1919AgentThread() 78 CheckJvmtiError(jvmti, jvmti->RawMonitorExit(list->events_mutex)); in Test1919AgentThread() [all …]
|
/art/tools/jvmti-agents/simple-profile/ |
D | simple_profile.cc | 67 void Dump(jvmtiEnv* jvmti); 68 void Enter(jvmtiEnv* jvmti, JNIEnv* env, jmethodID meth); 70 void RunDumpLoop(jvmtiEnv* jvmti, JNIEnv* env); 78 void FinishInitialization(jvmtiEnv* jvmti, JNIEnv* jni, jthread cur); 79 void Shutdown(jvmtiEnv* jvmti, JNIEnv* jni); 82 void DoDump(jvmtiEnv* jvmti, JNIEnv* jni, std::unordered_map<jmethodID, uint64_t> copy); 117 void SimpleProfileData::Enter(jvmtiEnv* jvmti, JNIEnv* env, jmethodID meth) { in Enter() argument 118 ScopedJvmtiMonitor sjm(jvmti, mon_); in Enter() 121 CHECK_JVMTI(jvmti->GetMethodDeclaringClass(meth, &tmp)); in Enter() 124 CHECK_JVMTI(jvmti->GetTag(klass.get(), &tag)); in Enter() [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 | suspend_event_helper.cc | 55 TestData(jvmtiEnv* jvmti, in TestData() 72 env, jvmti, jvmti->CreateRawMonitor("SuspendStopMonitor", ¬ify_monitor)); in TestData() 75 void PerformSuspend(jvmtiEnv* jvmti, JNIEnv* env) { in PerformSuspend() 77 JvmtiErrorToException(env, jvmti, jvmti->RawMonitorEnter(notify_monitor)); in PerformSuspend() 79 JvmtiErrorToException(env, jvmti, jvmti->RawMonitorNotifyAll(notify_monitor)); in PerformSuspend() 80 JvmtiErrorToException(env, jvmti, jvmti->RawMonitorExit(notify_monitor)); in PerformSuspend() 82 jvmti->SuspendThread(nullptr); in PerformSuspend() 86 void PerformSuspension(jvmtiEnv* jvmti, JNIEnv* env) { in PerformSuspension() argument 91 jvmti->GetThreadLocalStorage(/* thread */ nullptr, reinterpret_cast<void**>(&data)))) { in PerformSuspension() 95 data->PerformSuspend(jvmti, env); in PerformSuspension() [all …]
|
D | common_helper.cc | 31 jobject GetJavaField(jvmtiEnv* jvmti, JNIEnv* env, jclass field_klass, jfieldID f) { in GetJavaField() argument 33 if (JvmtiErrorToException(env, jvmti, jvmti->GetFieldModifiers(field_klass, f, &mods))) { in GetJavaField() 41 jobject GetJavaMethod(jvmtiEnv* jvmti, JNIEnv* env, jmethodID m) { in GetJavaMethod() argument 43 if (JvmtiErrorToException(env, jvmti, jvmti->GetMethodModifiers(m, &mods))) { in GetJavaMethod() 49 if (JvmtiErrorToException(env, jvmti, jvmti->GetMethodDeclaringClass(m, &method_klass))) { in GetJavaMethod()
|
D | jvmti_helper.cc | 241 jint GetExtensionEventId(jvmtiEnv* jvmti, const std::string_view& name) { in GetExtensionEventId() argument 246 CHECK_EQ(jvmti->GetExtensionEvents(&n_ext, &infos), JVMTI_ERROR_NONE); in GetExtensionEventId() 253 DeallocParams(jvmti, info.params, info.param_count); in GetExtensionEventId() 254 Dealloc(jvmti, info.short_description, info.id, info.params); in GetExtensionEventId() 256 Dealloc(jvmti, infos); in GetExtensionEventId() 261 void* GetExtensionFunctionVoid(JNIEnv* env, jvmtiEnv* jvmti, const std::string_view& name) { in GetExtensionFunctionVoid() argument 265 if (JvmtiErrorToException(env, jvmti, jvmti->GetExtensionFunctions(&n_ext, &infos))) { in GetExtensionFunctionVoid() 273 DeallocParams(jvmti, info.params, info.param_count); in GetExtensionFunctionVoid() 274 Dealloc(jvmti, info.short_description, info.errors, info.id, info.params); in GetExtensionFunctionVoid() 276 Dealloc(jvmti, infos); in GetExtensionFunctionVoid() [all …]
|
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 | jvmti_helper.h | 91 void* GetExtensionFunctionVoid(JNIEnv* env, jvmtiEnv* jvmti, const std::string_view& name); 93 template<typename T> T GetExtensionFunction(JNIEnv* env, jvmtiEnv* jvmti, const std::string_view& n… in GetExtensionFunction() argument 94 return reinterpret_cast<T>(GetExtensionFunctionVoid(env, jvmti, name)); in GetExtensionFunction() 97 jint GetExtensionEventId(jvmtiEnv* jvmti, const std::string_view& name);
|
D | redefinition_helper.cc | 43 static void throwCommonRedefinitionError(jvmtiEnv* jvmti, in throwCommonRedefinitionError() argument 50 jvmti->GetErrorName(res, &error); in throwCommonRedefinitionError() 59 jvmti->GetClassSignature(target[i], &signature, &generic); in throwCommonRedefinitionError() 64 jvmti->Deallocate(reinterpret_cast<unsigned char*>(signature)); in throwCommonRedefinitionError() 65 jvmti->Deallocate(reinterpret_cast<unsigned char*>(generic)); in throwCommonRedefinitionError() 69 jvmti->Deallocate(reinterpret_cast<unsigned char*>(error)); in throwCommonRedefinitionError() 118 jvmtiEnv* jvmti, in CallRedefineEntrypoint() argument 121 decltype(jvmti->functions->RedefineClasses) entrypoint = nullptr; in CallRedefineEntrypoint() 123 entrypoint = jvmti->functions->RedefineClasses; in CallRedefineEntrypoint() 132 return entrypoint(jvmti, num_defs, defs); in CallRedefineEntrypoint() [all …]
|
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);
|
/art/tools/jvmti-agents/simple-force-redefine/ |
D | forceredefine.cc | 74 static AgentInfo* GetAgentInfo(jvmtiEnv* jvmti) { in GetAgentInfo() argument 76 CHECK_EQ(jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&ai)), JVMTI_ERROR_NONE); in GetAgentInfo() 83 explicit JvmtiAllocator(jvmtiEnv* jvmti) : jvmti_(jvmti) {} in JvmtiAllocator() argument 136 static void CbClassFileLoadHook(jvmtiEnv* jvmti, in CbClassFileLoadHook() argument 148 AgentInfo* ai = GetAgentInfo(jvmti); in CbClassFileLoadHook() 155 LOG(INFO) << "Got CFLH for " << name << " on env " << static_cast<void*>(jvmti); in CbClassFileLoadHook() 156 JvmtiAllocator allocator(jvmti); in CbClassFileLoadHook() 168 static jclass FindClass(jvmtiEnv* jvmti, JNIEnv* env, const std::string& name) { in FindClass() argument 180 if (jvmti->GetLoadedClasses(&cnt, &klasses) != JVMTI_ERROR_NONE) { in FindClass() 186 if (jvmti->GetClassSignature(klasses[i], &sig, nullptr) != JVMTI_ERROR_NONE) { in FindClass() [all …]
|
/art/tools/jvmti-agents/enable-vlog/ |
D | enablevlog.cc | 60 T GetExtensionFunction(jvmtiEnv* jvmti, const std::string_view& name) { in GetExtensionFunction() argument 64 if (jvmti->GetExtensionFunctions(&n_ext, &infos) != JVMTI_ERROR_NONE) { in GetExtensionFunction() 72 DeallocParams(jvmti, info.params, info.param_count); in GetExtensionFunction() 73 Dealloc(jvmti, info.short_description, info.errors, info.id, info.params); in GetExtensionFunction() 75 Dealloc(jvmti, infos); in GetExtensionFunction() 79 static jint SetupJvmtiEnv(JavaVM* vm, jvmtiEnv** jvmti) { in SetupJvmtiEnv() argument 81 res = vm->GetEnv(reinterpret_cast<void**>(jvmti), JVMTI_VERSION_1_1); in SetupJvmtiEnv() 83 if (res != JNI_OK || *jvmti == nullptr) { in SetupJvmtiEnv() 85 return vm->GetEnv(reinterpret_cast<void**>(jvmti), kArtTiVersion); in SetupJvmtiEnv() 93 jvmtiEnv* jvmti = nullptr; in AgentStart() local [all …]
|
/art/tools/jvmti-agents/dump-jvmti-state/ |
D | dump-jvmti.cc | 47 static jint SetupJvmtiEnv(JavaVM* vm, jvmtiEnv** jvmti) { in SetupJvmtiEnv() argument 49 res = vm->GetEnv(reinterpret_cast<void**>(jvmti), JVMTI_VERSION_1_1); in SetupJvmtiEnv() 51 if (res != JNI_OK || *jvmti == nullptr) { in SetupJvmtiEnv() 53 res = vm->GetEnv(reinterpret_cast<void**>(jvmti), kArtTiVersion); in SetupJvmtiEnv() 59 jvmtiEnv* env = *jvmti; in SetupJvmtiEnv() 81 static void CbDataDump(jvmtiEnv* jvmti) { in CbDataDump() argument 83 if (JVMTI_ERROR_NONE == GetInternalData(jvmti, &data)) { in CbDataDump() 85 Dealloc(jvmti, data); in CbDataDump() 92 jvmtiEnv* jvmti = nullptr; in AgentStart() local 93 if (SetupJvmtiEnv(vm, &jvmti) != JNI_OK) { in AgentStart() [all …]
|
/art/tools/jvmti-agents/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 247 res = jvm->GetEnv(reinterpret_cast<void**>(&jvmti), JVMTI_VERSION_1_1); in Agent_OnLoad() 249 if (res != JNI_OK || jvmti == nullptr) { in Agent_OnLoad() [all …]
|
/art/test/1934-jvmti-signal-thread/ |
D | Android.bp | 3 // Build rules for ART run-test `1934-jvmti-signal-thread`. 16 name: "art-run-test-1934-jvmti-signal-thread", 21 ":art-run-test-1934-jvmti-signal-thread-expected-stdout", 22 ":art-run-test-1934-jvmti-signal-thread-expected-stderr", 28 name: "art-run-test-1934-jvmti-signal-thread-expected-stdout", 29 out: ["art-run-test-1934-jvmti-signal-thread-expected-stdout.txt"], 36 name: "art-run-test-1934-jvmti-signal-thread-expected-stderr", 37 out: ["art-run-test-1934-jvmti-signal-thread-expected-stderr.txt"],
|
/art/tools/jvmti-agents/ti-alloc-sample/ |
D | ti_alloc_sample.cc | 276 static std::string formatAllocation(jvmtiEnv* jvmti, in formatAllocation() argument 281 ScopedThreadInfo sti(jvmti, jni, thr.thread); in formatAllocation() 284 ScopedClassInfo sci(jvmti, klass); in formatAllocation() 295 static std::string formatMethod(jvmtiEnv* jvmti, JNIEnv* jni, jmethodID method_id) { in formatMethod() argument 296 ScopedMethodInfo smi(jvmti, jni, method_id); in formatMethod() 310 static void JNICALL logVMObjectAlloc(jvmtiEnv* jvmti, in logVMObjectAlloc() argument 328 formatAllocation(jvmti, in logVMObjectAlloc() 336 jvmtiError err = jvmti->GetStackTrace(thread, in logVMObjectAlloc() 345 record += ";" + formatMethod(jvmti, jni, stack_frames[i].method); in logVMObjectAlloc() 357 static jint SetupJvmtiEnv(JavaVM* vm, jvmtiEnv** jvmti) { in SetupJvmtiEnv() argument [all …]
|
/art/test/ti-stress/ |
D | stress.cc | 613 void JNICALL ClassFileLoadHookSecretNoOp(jvmtiEnv* jvmti, in ClassFileLoadHookSecretNoOp() argument 629 CHECK_EQ(jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)), in ClassFileLoadHookSecretNoOp() 635 } else if (DoExtractClassFromData(jvmti, name_str, class_data_len, class_data, in ClassFileLoadHookSecretNoOp() 707 static bool WatchAllFields(JavaVM* vm, jvmtiEnv* jvmti) { in WatchAllFields() argument 708 if (jvmti->SetEventNotificationMode(JVMTI_ENABLE, in WatchAllFields() 717 if (jvmti->GetLoadedClasses(&nklass, &klasses) != JVMTI_ERROR_NONE) { in WatchAllFields() 728 ScopedClassInfo sci(jvmti, k); in WatchAllFields() 734 jvmtiError err = jvmti->GetClassFields(k, &nfields, &fields); in WatchAllFields() 738 if (jvmti->SetFieldModificationWatch(k, f) != JVMTI_ERROR_NONE || in WatchAllFields() 739 jvmti->SetFieldAccessWatch(k, f) != JVMTI_ERROR_NONE) { in WatchAllFields() [all …]
|
/art/test/1903-suspend-self/ |
D | run | 17 ./default-run "$@" --jvmti 22 ./default-run "$@" --jvmti --no-image
|
/art/tools/jvmti-agents/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 …]
|