/art/runtime/openjdkjvmti/include/ |
D | jvmti.h | 388 } jvmtiError; typedef 510 typedef jvmtiError (JNICALL *jvmtiExtensionFunction) 642 jvmtiError* errors; 1008 jvmtiError (JNICALL *SetEventNotificationMode) (jvmtiEnv* env, 1018 jvmtiError (JNICALL *GetAllThreads) (jvmtiEnv* env, 1023 jvmtiError (JNICALL *SuspendThread) (jvmtiEnv* env, 1027 jvmtiError (JNICALL *ResumeThread) (jvmtiEnv* env, 1031 jvmtiError (JNICALL *StopThread) (jvmtiEnv* env, 1036 jvmtiError (JNICALL *InterruptThread) (jvmtiEnv* env, 1040 jvmtiError (JNICALL *GetThreadInfo) (jvmtiEnv* env, [all …]
|
/art/runtime/openjdkjvmti/ |
D | ti_class.h | 47 static jvmtiError GetClassFields(jvmtiEnv* env, 52 static jvmtiError GetClassMethods(jvmtiEnv* env, 57 static jvmtiError GetImplementedInterfaces(jvmtiEnv* env, 62 static jvmtiError GetClassModifiers(jvmtiEnv* env, jclass klass, jint* modifiers_ptr); 64 static jvmtiError GetClassSignature(jvmtiEnv* env, 69 static jvmtiError GetClassStatus(jvmtiEnv* env, jclass klass, jint* status_ptr); 71 static jvmtiError GetClassLoader(jvmtiEnv* env, jclass klass, jobject* classloader_ptr); 73 static jvmtiError GetClassLoaderClasses(jvmtiEnv* env, 78 static jvmtiError IsInterface(jvmtiEnv* env, jclass klass, jboolean* is_interface_ptr); 79 static jvmtiError IsArrayClass(jvmtiEnv* env, jclass klass, jboolean* is_array_class_ptr); [all …]
|
D | ti_method.h | 47 static jvmtiError GetArgumentsSize(jvmtiEnv* env, jmethodID method, jint* size_ptr); 49 static jvmtiError GetMaxLocals(jvmtiEnv* env, jmethodID method, jint* max_ptr); 51 static jvmtiError GetMethodName(jvmtiEnv* env, 57 static jvmtiError GetMethodDeclaringClass(jvmtiEnv* env, 61 static jvmtiError GetMethodLocation(jvmtiEnv* env, 66 static jvmtiError GetMethodModifiers(jvmtiEnv* env, 70 static jvmtiError GetLineNumberTable(jvmtiEnv* env, 75 static jvmtiError IsMethodNative(jvmtiEnv* env, jmethodID method, jboolean* is_native_ptr); 76 static jvmtiError IsMethodObsolete(jvmtiEnv* env, jmethodID method, jboolean* is_obsolete_ptr); 77 static jvmtiError IsMethodSynthetic(jvmtiEnv* env, jmethodID method, jboolean* is_synthetic_ptr);
|
D | ti_monitor.h | 42 static jvmtiError CreateRawMonitor(jvmtiEnv* env, const char* name, jrawMonitorID* monitor_ptr); 44 static jvmtiError DestroyRawMonitor(jvmtiEnv* env, jrawMonitorID monitor); 46 static jvmtiError RawMonitorEnter(jvmtiEnv* env, jrawMonitorID monitor); 48 static jvmtiError RawMonitorExit(jvmtiEnv* env, jrawMonitorID monitor); 50 static jvmtiError RawMonitorWait(jvmtiEnv* env, jrawMonitorID monitor, jlong millis); 52 static jvmtiError RawMonitorNotify(jvmtiEnv* env, jrawMonitorID monitor); 54 static jvmtiError RawMonitorNotifyAll(jvmtiEnv* env, jrawMonitorID monitor);
|
D | OpenjdkJvmTi.cc | 82 static jvmtiError getEnvironmentError(jvmtiEnv* env) { in getEnvironmentError() 94 jvmtiError ensure_valid_env_ ## __LINE__ = getEnvironmentError(env); \ 108 static jvmtiError Allocate(jvmtiEnv* env, jlong size, unsigned char** mem_ptr) { in Allocate() 121 static jvmtiError Deallocate(jvmtiEnv* env, unsigned char* mem) { in Deallocate() 129 static jvmtiError GetThreadState(jvmtiEnv* env, jthread thread, jint* thread_state_ptr) { in GetThreadState() 134 static jvmtiError GetCurrentThread(jvmtiEnv* env, jthread* thread_ptr) { in GetCurrentThread() 139 static jvmtiError GetAllThreads(jvmtiEnv* env, jint* threads_count_ptr, jthread** threads_ptr) { in GetAllThreads() 144 static jvmtiError SuspendThread(jvmtiEnv* env, jthread thread ATTRIBUTE_UNUSED) { in SuspendThread() 150 static jvmtiError SuspendThreadList(jvmtiEnv* env, in SuspendThreadList() 153 jvmtiError* results ATTRIBUTE_UNUSED) { in SuspendThreadList() [all …]
|
D | ti_thread.h | 54 static jvmtiError GetAllThreads(jvmtiEnv* env, jint* threads_count_ptr, jthread** threads_ptr); 56 static jvmtiError GetCurrentThread(jvmtiEnv* env, jthread* thread_ptr); 58 static jvmtiError GetThreadInfo(jvmtiEnv* env, jthread thread, jvmtiThreadInfo* info_ptr); 60 static jvmtiError GetThreadState(jvmtiEnv* env, jthread thread, jint* thread_state_ptr); 62 static jvmtiError SetThreadLocalStorage(jvmtiEnv* env, jthread thread, const void* data); 63 static jvmtiError GetThreadLocalStorage(jvmtiEnv* env, jthread thread, void** data_ptr); 65 static jvmtiError RunAgentThread(jvmtiEnv* env,
|
D | ti_heap.h | 31 jvmtiError GetLoadedClasses(jvmtiEnv* env, jint* class_count_ptr, jclass** classes_ptr); 33 jvmtiError IterateThroughHeap(jvmtiEnv* env, 39 jvmtiError FollowReferences(jvmtiEnv* env, 46 static jvmtiError ForceGarbageCollection(jvmtiEnv* env); 61 static jvmtiError JNICALL GetObjectHeapId(jvmtiEnv* env, jlong tag, jint* heap_id, ...); 62 static jvmtiError JNICALL GetHeapName(jvmtiEnv* env, jint heap_id, char** heap_name, ...); 64 static jvmtiError JNICALL IterateThroughHeapExt(jvmtiEnv* env,
|
D | ti_stack.h | 44 static jvmtiError GetAllStackTraces(jvmtiEnv* env, 50 static jvmtiError GetFrameCount(jvmtiEnv* env, jthread thread, jint* count_ptr); 52 static jvmtiError GetFrameLocation(jvmtiEnv* env, 58 static jvmtiError GetStackTrace(jvmtiEnv* env, 65 static jvmtiError GetThreadListStackTraces(jvmtiEnv* env,
|
D | ti_field.h | 42 static jvmtiError GetFieldName(jvmtiEnv* env, 49 static jvmtiError GetFieldDeclaringClass(jvmtiEnv* env, 54 static jvmtiError GetFieldModifiers(jvmtiEnv* env, 59 static jvmtiError IsFieldSynthetic(jvmtiEnv* env,
|
D | ti_properties.cc | 92 jvmtiError PropertiesUtil::GetSystemProperties(jvmtiEnv* env, in GetSystemProperties() 98 jvmtiError array_alloc_result; in GetSystemProperties() 109 jvmtiError libpath_result; in GetSystemProperties() 119 jvmtiError classpath_result; in GetSystemProperties() 129 jvmtiError data_result; in GetSystemProperties() 148 static jvmtiError Copy(jvmtiEnv* env, const char* in, char** out) { in Copy() 149 jvmtiError result; in Copy() 161 static jvmtiError GetLibraryPath(jvmtiEnv* env, char** value_ptr) { in GetLibraryPath() 205 jvmtiError PropertiesUtil::GetSystemProperty(jvmtiEnv* env, in GetSystemProperty() 229 jvmtiError PropertiesUtil::SetSystemProperty(jvmtiEnv* env ATTRIBUTE_UNUSED, in SetSystemProperty()
|
D | ti_timers.h | 42 static jvmtiError GetAvailableProcessors(jvmtiEnv* env, jint* processor_count_ptr); 44 static jvmtiError GetTimerInfo(jvmtiEnv* env, jvmtiTimerInfo* info_ptr); 46 static jvmtiError GetTime(jvmtiEnv* env, jlong* nanos_ptr);
|
D | ti_properties.h | 42 static jvmtiError GetSystemProperties(jvmtiEnv* env, jint* count_ptr, char*** property_ptr); 44 static jvmtiError GetSystemProperty(jvmtiEnv* env, const char* property, char** value_ptr); 46 static jvmtiError SetSystemProperty(jvmtiEnv* env, const char* property, const char* value);
|
D | ti_threadgroup.h | 42 static jvmtiError GetTopThreadGroups(jvmtiEnv* env, 46 static jvmtiError GetThreadGroupInfo(jvmtiEnv* env, 50 static jvmtiError GetThreadGroupChildren(jvmtiEnv* env,
|
D | art_jvmti.h | 74 static constexpr jvmtiError OK = JVMTI_ERROR_NONE; 77 static constexpr jvmtiError ERR(NOT_IMPLEMENTED) = JVMTI_ERROR_NOT_AVAILABLE; 101 jvmtiError ret = env_->Deallocate(reinterpret_cast<unsigned char*>(ptr)); in operator() 122 jvmtiError ret = env_->Deallocate(reinterpret_cast<unsigned char*>(ptr)); in operator() 147 static inline JvmtiUniquePtr<T> AllocJvmtiUniquePtr(jvmtiEnv* env, jvmtiError* error) { in AllocJvmtiUniquePtr() 160 jvmtiError* error) { in AllocJvmtiUniquePtr() 171 static inline jvmtiError CopyDataIntoJvmtiBuffer(ArtJvmTiEnv* env, in CopyDataIntoJvmtiBuffer() 175 jvmtiError res = env->Allocate(len, dest); in CopyDataIntoJvmtiBuffer() 186 static inline JvmtiUniquePtr<char[]> CopyString(jvmtiEnv* env, const char* src, jvmtiError* error) { in CopyString()
|
D | transform.h | 47 jvmtiError GetClassLocation(ArtJvmTiEnv* env, jclass klass, /*out*/std::string* location); 51 static jvmtiError RetransformClassesDirect( 57 static jvmtiError RetransformClasses(ArtJvmTiEnv* env,
|
D | ti_field.cc | 50 jvmtiError FieldUtil::GetFieldName(jvmtiEnv* env, in GetFieldName() 72 jvmtiError ret; in GetFieldName() 83 jvmtiError ret; in GetFieldName() 102 jvmtiError ret; in GetFieldName() 122 jvmtiError FieldUtil::GetFieldDeclaringClass(jvmtiEnv* env ATTRIBUTE_UNUSED, in GetFieldDeclaringClass() 145 jvmtiError FieldUtil::GetFieldModifiers(jvmtiEnv* env ATTRIBUTE_UNUSED, in GetFieldModifiers() 168 jvmtiError FieldUtil::IsFieldSynthetic(jvmtiEnv* env ATTRIBUTE_UNUSED, in IsFieldSynthetic()
|
D | ti_method.cc | 94 jvmtiError MethodUtil::GetArgumentsSize(jvmtiEnv* env ATTRIBUTE_UNUSED, in GetArgumentsSize() 128 jvmtiError MethodUtil::GetMaxLocals(jvmtiEnv* env ATTRIBUTE_UNUSED, in GetMaxLocals() 157 jvmtiError MethodUtil::GetMethodName(jvmtiEnv* env, in GetMethodName() 172 jvmtiError ret; in GetMethodName() 184 jvmtiError ret; in GetMethodName() 203 jvmtiError ret; in GetMethodName() 223 jvmtiError MethodUtil::GetMethodDeclaringClass(jvmtiEnv* env ATTRIBUTE_UNUSED, in GetMethodDeclaringClass() 240 jvmtiError MethodUtil::GetMethodLocation(jvmtiEnv* env ATTRIBUTE_UNUSED, in GetMethodLocation() 272 jvmtiError MethodUtil::GetMethodModifiers(jvmtiEnv* env ATTRIBUTE_UNUSED, in GetMethodModifiers() 306 jvmtiError MethodUtil::GetLineNumberTable(jvmtiEnv* env, in GetLineNumberTable() [all …]
|
/art/test/923-monitors/ |
D | monitors.cc | 43 jvmtiError result = jvmti_env->CreateRawMonitor("dummy", &id); in Java_art_Test923_createRawMonitor() 52 jvmtiError result = jvmti_env->DestroyRawMonitor(LongToMonitor(l)); in Java_art_Test923_destroyRawMonitor() 58 jvmtiError result = jvmti_env->RawMonitorEnter(LongToMonitor(l)); in Java_art_Test923_rawMonitorEnter() 64 jvmtiError result = jvmti_env->RawMonitorExit(LongToMonitor(l)); in Java_art_Test923_rawMonitorExit() 70 jvmtiError result = jvmti_env->RawMonitorWait(LongToMonitor(l), millis); in Java_art_Test923_rawMonitorWait() 76 jvmtiError result = jvmti_env->RawMonitorNotify(LongToMonitor(l)); in Java_art_Test923_rawMonitorNotify() 82 jvmtiError result = jvmti_env->RawMonitorNotifyAll(LongToMonitor(l)); in Java_art_Test923_rawMonitorNotifyAll()
|
/art/test/ti-agent/ |
D | jvmti_helper.h | 34 void CheckJvmtiError(jvmtiEnv* env, jvmtiError error); 38 bool JvmtiErrorToException(JNIEnv* env, jvmtiEnv* jvmti_env, jvmtiError error); 51 jvmtiError ret = env_->Deallocate(ptr); in operator() 67 static inline jvmtiError Deallocate(jvmtiEnv* env, T* mem) { in Deallocate() 72 std::ostream& operator<<(std::ostream& os, const jvmtiError& rhs);
|
D | jvmti_helper.cc | 30 void CheckJvmtiError(jvmtiEnv* env, jvmtiError error) { in CheckJvmtiError() 33 jvmtiError name_error = env->GetErrorName(error, &error_name); in CheckJvmtiError() 43 jvmtiError error1 = env->GetPotentialCapabilities(&caps); in SetAllCapabilities() 45 jvmtiError error2 = env->AddCapabilities(&caps); in SetAllCapabilities() 49 bool JvmtiErrorToException(JNIEnv* env, jvmtiEnv* jvmti_env, jvmtiError error) { in JvmtiErrorToException() 69 std::ostream& operator<<(std::ostream& os, const jvmtiError& rhs) { in operator <<()
|
/art/test/910-methods/ |
D | methods.cc | 40 jvmtiError result = jvmti_env->GetMethodName(id, &name, &sig, &gen); in Java_art_Test910_getMethodName() 68 jvmtiError result2 = jvmti_env->GetMethodName(id, nullptr, nullptr, nullptr); in Java_art_Test910_getMethodName() 81 jvmtiError result = jvmti_env->GetMethodDeclaringClass(id, &declaring_class); in Java_art_Test910_getMethodDeclaringClass() 94 jvmtiError result = jvmti_env->GetMethodModifiers(id, &modifiers); in Java_art_Test910_getMethodModifiers() 107 jvmtiError result = jvmti_env->GetMaxLocals(id, &max_locals); in Java_art_Test910_getMaxLocals() 120 jvmtiError result = jvmti_env->GetArgumentsSize(id, &arguments); in Java_art_Test910_getArgumentsSize() 134 jvmtiError result = jvmti_env->GetMethodLocation(id, &start, &end); in Java_art_Test910_getMethodLocationStart() 148 jvmtiError result = jvmti_env->GetMethodLocation(id, &start, &end); in Java_art_Test910_getMethodLocationEnd() 161 jvmtiError result = jvmti_env->IsMethodNative(id, &is_native); in Java_art_Test910_isMethodNative() 174 jvmtiError result = jvmti_env->IsMethodObsolete(id, &is_obsolete); in Java_art_Test910_isMethodObsolete() [all …]
|
/art/test/928-jni-table/ |
D | jni_table.cc | 45 jvmtiError getorig_result = jvmti_env->GetJNIFunctionTable(&gOriginalEnv); in Java_art_Test928_doJNITableTest() 52 jvmtiError getoverride_result = jvmti_env->GetJNIFunctionTable(&env_override); in Java_art_Test928_doJNITableTest() 61 jvmtiError setoverride_result = jvmti_env->SetJNIFunctionTable(env_override); in Java_art_Test928_doJNITableTest() 71 jvmtiError setoverride2_result = jvmti_env->SetJNIFunctionTable(gOriginalEnv); in Java_art_Test928_doJNITableTest() 81 jvmtiError setoverride3_result = jvmti_env->SetJNIFunctionTable(nullptr); in Java_art_Test928_doJNITableTest()
|
/art/test/901-hello-ti-agent/ |
D | basics.cc | 35 jvmtiError error = env->SetEventNotificationMode(JVMTI_ENABLE, evt, nullptr); in EnableEvent() 64 jvmtiError ret = env->SetEventCallbacks(&callbacks, sizeof(callbacks)); in InstallVMEvents() 133 jvmtiError phase_result = jvmti_env->GetPhase(¤t_phase); in OnLoad() 151 jvmtiError result = jvmti_env->SetVerboseFlag(flag, val); in Java_art_Test901_setVerboseFlag() 158 jvmtiError phase_result = jvmti_env->GetPhase(¤t_phase); in Java_art_Test901_checkLivePhase() 165 static void CallJvmtiFunction(jvmtiEnv* env, jclass klass, jvmtiError* err) { in CallJvmtiFunction() 173 jvmtiError res = JVMTI_ERROR_NONE; in Java_art_Test901_checkUnattached() 182 jvmtiError res = jvmti_env->GetErrorName(static_cast<jvmtiError>(error), &name); in Java_art_Test901_getErrorName() 188 jvmtiError dealloc = jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(name)); in Java_art_Test901_getErrorName()
|
/art/test/931-agent-thread/ |
D | agent_thread.cc | 52 jvmtiError this_thread_result = jenv->GetCurrentThread(&this_thread); in AgentMain() 58 jvmtiError info_result = jenv->GetThreadInfo(this_thread, &info); in AgentMain() 76 jvmtiError threads_result = jenv->GetAllThreads(&thread_count, &threads); in AgentMain() 112 jvmtiError info_result = jvmti_env->GetThreadInfo(nullptr, &cur_thread_info); in Java_art_Test931_testAgentThread() 141 jvmtiError main_thread_result = jvmti_env->GetCurrentThread(&main_thread); in Java_art_Test931_testAgentThread() 152 jvmtiError result = jvmti_env->RunAgentThread(thread.get(), AgentMain, &data, data.priority); in Java_art_Test931_testAgentThread() 165 jvmtiError state_result = jvmti_env->GetThreadState(thread.get(), &thread_state); in Java_art_Test931_testAgentThread()
|
/art/test/924-threads/ |
D | threads.cc | 44 jvmtiError result = jvmti_env->GetCurrentThread(&thread); in Java_art_Test924_getCurrentThread() 56 jvmtiError result = jvmti_env->GetThreadInfo(thread, &info); in Java_art_Test924_getThreadInfo() 102 jvmtiError result = jvmti_env->GetThreadState(thread, &state); in Java_art_Test924_getThreadState() 114 jvmtiError result = jvmti_env->GetAllThreads(&thread_count, &threads); in Java_art_Test924_getAllThreads() 132 jvmtiError result = jvmti_env->GetThreadLocalStorage(thread, &tls); in Java_art_Test924_getTLS() 142 jvmtiError result = jvmti_env->SetThreadLocalStorage(thread, tls); in Java_art_Test924_setTLS() 157 jvmtiError result = jvmti_env->GetThreadInfo(thread, &info); in ThreadEvent() 188 jvmtiError ret = jvmti_env->SetEventNotificationMode(JVMTI_DISABLE, in Java_art_Test924_enableThreadEvents() 205 jvmtiError ret = jvmti_env->SetEventCallbacks(&callbacks, sizeof(callbacks)); in Java_art_Test924_enableThreadEvents()
|