Lines Matching refs:jvmti
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()
95 jvmtiEnv* jvmti = nullptr; in SetupJvmti() local
96 if (vm->GetEnv(reinterpret_cast<void**>(&jvmti), JVMTI_VERSION_1_0) != JNI_OK && in SetupJvmti()
97 vm->GetEnv(reinterpret_cast<void**>(&jvmti), kArtTiVersion) != JNI_OK) { in SetupJvmti()
108 jvmti->Allocate(sizeof(AgentOptions), reinterpret_cast<unsigned char**>(&ops))); in SetupJvmti()
111 CHECK_CALL_SUCCESS(jvmti->SetEnvironmentLocalStorage(ops)); in SetupJvmti()
112 CHECK_CALL_SUCCESS(jvmti->SetEventCallbacks(&cb, sizeof(cb))); in SetupJvmti()
113 CHECK_CALL_SUCCESS(jvmti->SetEventNotificationMode(JVMTI_ENABLE, JVMTI_EVENT_VM_INIT, nullptr)); in SetupJvmti()
115 jvmti->SetEventNotificationMode(JVMTI_ENABLE, JVMTI_EVENT_DATA_DUMP_REQUEST, nullptr)); in SetupJvmti()
116 return jvmti; in SetupJvmti()
127 jvmtiEnv* jvmti = SetupJvmti(vm, options); in Agent_OnAttach() local
132 CHECK_CALL_SUCCESS(jvmti->GetCurrentThread(&thr)); in Agent_OnAttach()
135 VmInitCb(jvmti, jni, thr); in Agent_OnAttach()