/art/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/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 GetClassLoaderClassDescriptors(jvmtiEnv* env, 83 static jvmtiError IsInterface(jvmtiEnv* env, jclass klass, jboolean* is_interface_ptr); [all …]
|
D | ti_method.h | 48 static jvmtiError GetBytecodes(jvmtiEnv* env, 53 static jvmtiError GetArgumentsSize(jvmtiEnv* env, jmethodID method, jint* size_ptr); 55 static jvmtiError GetMaxLocals(jvmtiEnv* env, jmethodID method, jint* max_ptr); 57 static jvmtiError GetMethodName(jvmtiEnv* env, 63 static jvmtiError GetMethodDeclaringClass(jvmtiEnv* env, 67 static jvmtiError GetMethodLocation(jvmtiEnv* env, 72 static jvmtiError GetMethodModifiers(jvmtiEnv* env, 76 static jvmtiError GetLineNumberTable(jvmtiEnv* env, 81 static jvmtiError IsMethodNative(jvmtiEnv* env, jmethodID method, jboolean* is_native_ptr); 82 static jvmtiError IsMethodObsolete(jvmtiEnv* env, jmethodID method, jboolean* is_obsolete_ptr); [all …]
|
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 RawMonitorEnterNoSuspend(jvmtiEnv* env, jrawMonitorID monitor); 48 static jvmtiError RawMonitorEnter(jvmtiEnv* env, jrawMonitorID monitor); 50 static jvmtiError RawMonitorExit(jvmtiEnv* env, jrawMonitorID monitor); 52 static jvmtiError RawMonitorWait(jvmtiEnv* env, jrawMonitorID monitor, jlong millis); 54 static jvmtiError RawMonitorNotify(jvmtiEnv* env, jrawMonitorID monitor); 56 static jvmtiError RawMonitorNotifyAll(jvmtiEnv* env, jrawMonitorID monitor); 58 static jvmtiError GetCurrentContendedMonitor(jvmtiEnv* env, jthread thr, jobject* monitor);
|
D | ti_thread.h | 98 static jvmtiError GetAllThreads(jvmtiEnv* env, jint* threads_count_ptr, jthread** threads_ptr); 100 static jvmtiError GetCurrentThread(jvmtiEnv* env, jthread* thread_ptr); 102 static jvmtiError GetThreadInfo(jvmtiEnv* env, jthread thread, jvmtiThreadInfo* info_ptr); 104 static jvmtiError GetThreadState(jvmtiEnv* env, jthread thread, jint* thread_state_ptr); 106 static jvmtiError SetThreadLocalStorage(jvmtiEnv* env, jthread thread, const void* data); 107 static jvmtiError GetThreadLocalStorage(jvmtiEnv* env, jthread thread, void** data_ptr); 109 static jvmtiError RunAgentThread(jvmtiEnv* env, 115 static jvmtiError SuspendThread(jvmtiEnv* env, jthread thread); 116 static jvmtiError ResumeThread(jvmtiEnv* env, jthread thread); 118 static jvmtiError SuspendThreadList(jvmtiEnv* env, [all …]
|
D | OpenjdkJvmTi.cc | 100 static jvmtiError getEnvironmentError(jvmtiEnv* env) { in getEnvironmentError() 112 jvmtiError ensure_valid_env_ ## __LINE__ = getEnvironmentError(env); \ 126 static jvmtiError Allocate(jvmtiEnv* env, jlong size, unsigned char** mem_ptr) { in Allocate() 127 jvmtiError err = getEnvironmentError(env); in Allocate() 136 static jvmtiError Deallocate(jvmtiEnv* env, unsigned char* mem) { in Deallocate() 137 jvmtiError err = getEnvironmentError(env); in Deallocate() 145 static jvmtiError GetThreadState(jvmtiEnv* env, jthread thread, jint* thread_state_ptr) { in GetThreadState() 150 static jvmtiError GetCurrentThread(jvmtiEnv* env, jthread* thread_ptr) { in GetCurrentThread() 155 static jvmtiError GetAllThreads(jvmtiEnv* env, jint* threads_count_ptr, jthread** threads_ptr) { in GetAllThreads() 160 static jvmtiError SuspendThread(jvmtiEnv* env, jthread thread) { in SuspendThread() [all …]
|
D | ti_field.h | 44 static jvmtiError GetFieldName(jvmtiEnv* env, 51 static jvmtiError GetFieldDeclaringClass(jvmtiEnv* env, 56 static jvmtiError GetFieldModifiers(jvmtiEnv* env, 61 static jvmtiError IsFieldSynthetic(jvmtiEnv* env, 66 static jvmtiError SetFieldModificationWatch(jvmtiEnv* env, jclass klass, jfieldID field) 68 static jvmtiError ClearFieldModificationWatch(jvmtiEnv* env, jclass klass, jfieldID field) 70 static jvmtiError SetFieldAccessWatch(jvmtiEnv* env, jclass klass, jfieldID field) 72 static jvmtiError ClearFieldAccessWatch(jvmtiEnv* env, jclass klass, jfieldID field)
|
D | ti_stack.h | 47 static jvmtiError GetAllStackTraces(jvmtiEnv* env, 53 static jvmtiError GetFrameCount(jvmtiEnv* env, jthread thread, jint* count_ptr); 55 static jvmtiError GetFrameLocation(jvmtiEnv* env, 61 static jvmtiError GetStackTrace(jvmtiEnv* env, 68 static jvmtiError GetThreadListStackTraces(jvmtiEnv* env, 74 static jvmtiError GetOwnedMonitorStackDepthInfo(jvmtiEnv* env, 79 static jvmtiError GetOwnedMonitorInfo(jvmtiEnv* env, 84 static jvmtiError NotifyFramePop(jvmtiEnv* env, jthread thread, jint depth); 86 static jvmtiError PopFrame(jvmtiEnv* env, jthread thread); 89 static jvmtiError ForceEarlyReturn(
|
D | ti_heap.h | 45 jvmtiError GetLoadedClasses(jvmtiEnv* env, jint* class_count_ptr, jclass** classes_ptr); 47 jvmtiError IterateOverInstancesOfClass(jvmtiEnv* env, 53 jvmtiError IterateThroughHeap(jvmtiEnv* env, 59 jvmtiError FollowReferences(jvmtiEnv* env, 66 static jvmtiError ForceGarbageCollection(jvmtiEnv* env); 83 static jvmtiError JNICALL GetObjectHeapId(jvmtiEnv* env, jlong tag, jint* heap_id, ...); 84 static jvmtiError JNICALL GetHeapName(jvmtiEnv* env, jint heap_id, char** heap_name, ...); 86 static jvmtiError JNICALL IterateThroughHeapExt(jvmtiEnv* env, 92 static jvmtiError JNICALL ChangeArraySize(jvmtiEnv* env, jobject arr, jsize new_size);
|
D | ti_search.h | 46 static jvmtiError AddToBootstrapClassLoaderSearch(jvmtiEnv* env, const char* segment); 48 static jvmtiError AddToSystemClassLoaderSearch(jvmtiEnv* env, const char* segment); 50 static jvmtiError AddToDexClassLoader(jvmtiEnv* env, jobject classloader, const char* segment); 51 static jvmtiError AddToDexClassLoaderInMemory(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_object.h | 42 static jvmtiError GetObjectSize(jvmtiEnv* env, jobject object, jlong* size_ptr); 44 static jvmtiError GetObjectHashCode(jvmtiEnv* env, jobject object, jint* hash_code_ptr); 46 static jvmtiError GetObjectMonitorUsage(jvmtiEnv* env, jobject object, jvmtiMonitorUsage* usage);
|
D | ti_extension.h | 44 static jvmtiError GetExtensionFunctions(jvmtiEnv* env, 48 static jvmtiError GetExtensionEvents(jvmtiEnv* env, 52 static jvmtiError SetExtensionEventCallback(jvmtiEnv* env,
|
D | ti_threadgroup.h | 42 static jvmtiError GetTopThreadGroups(jvmtiEnv* env, 46 static jvmtiError GetThreadGroupInfo(jvmtiEnv* env, 50 static jvmtiError GetThreadGroupChildren(jvmtiEnv* env,
|
D | ti_allocator.h | 48 static jvmtiError Allocate(jvmtiEnv* env, jlong size, unsigned char** mem_ptr); 49 static jvmtiError Deallocate(jvmtiEnv* env, unsigned char* mem); 50 static jvmtiError GetGlobalJvmtiAllocationState(jvmtiEnv* env, jlong* total_allocated);
|
D | ti_redefine.h | 79 static jvmtiError RedefineClassesDirect(ArtJvmTiEnv* env, 89 static jvmtiError RedefineClasses(jvmtiEnv* env, 92 static jvmtiError StructurallyRedefineClasses(jvmtiEnv* env, 96 static jvmtiError IsModifiableClass(jvmtiEnv* env, jclass klass, jboolean* is_redefinable); 97 static jvmtiError IsStructurallyModifiableClass(jvmtiEnv* env, 107 static jvmtiError GetClassRedefinitionError(jclass klass, /*out*/std::string* error_msg) 110 static jvmtiError StructurallyRedefineClassDirect(jvmtiEnv* env, 168 void RecordFailure(jvmtiError e, const std::string& err) { in RecordFailure() 302 jvmtiError result_; 324 jvmtiError AddRedefinition(ArtJvmTiEnv* env, const ArtClassDefinition& def) [all …]
|
D | ti_method.cc | 131 jvmtiError MethodUtil::GetBytecodes(jvmtiEnv* env, in GetBytecodes() 157 jvmtiError err = env->Allocate(*size_ptr, bytecode_ptr); in GetBytecodes() 165 jvmtiError MethodUtil::GetArgumentsSize(jvmtiEnv* env ATTRIBUTE_UNUSED, in GetArgumentsSize() 199 jvmtiError MethodUtil::GetLocalVariableTable(jvmtiEnv* env, in GetLocalVariableTable() 232 jvmtiError err = OK; in GetLocalVariableTable() 286 jvmtiError MethodUtil::GetMaxLocals(jvmtiEnv* env ATTRIBUTE_UNUSED, in GetMaxLocals() 315 jvmtiError MethodUtil::GetMethodName(jvmtiEnv* env, in GetMethodName() 330 jvmtiError ret; in GetMethodName() 342 jvmtiError ret; in GetMethodName() 361 jvmtiError ret; in GetMethodName() [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/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/901-hello-ti-agent/ |
D | basics.cc | 35 jvmtiError error = env->SetEventNotificationMode(JVMTI_ENABLE, evt, nullptr); in EnableEvent() 75 jvmtiError ret = env->SetEventCallbacks(&callbacks, sizeof(callbacks)); in InstallVMEvents() 144 jvmtiError phase_result = jvmti_env->GetPhase(¤t_phase); in OnLoad() 162 jvmtiError result = jvmti_env->SetVerboseFlag(flag, val); in Java_art_Test901_setVerboseFlag() 169 jvmtiError phase_result = jvmti_env->GetPhase(¤t_phase); in Java_art_Test901_checkLivePhase() 176 static void CallJvmtiFunction(jvmtiEnv* env, jclass klass, jvmtiError* err) { in CallJvmtiFunction() 184 jvmtiError res = JVMTI_ERROR_NONE; in Java_art_Test901_checkUnattached() 193 jvmtiError res = jvmti_env->GetErrorName(static_cast<jvmtiError>(error), &name); in Java_art_Test901_getErrorName() 199 jvmtiError dealloc = jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(name)); in Java_art_Test901_getErrorName()
|
/art/test/ti-agent/ |
D | jvmti_helper.h | 42 void CheckJvmtiError(jvmtiEnv* env, jvmtiError error); 46 bool JvmtiErrorToException(JNIEnv* env, jvmtiEnv* jvmtienv, jvmtiError error); 59 jvmtiError ret = env_->Deallocate(ptr); in operator() 75 static inline jvmtiError Deallocate(jvmtiEnv* env, T* mem) { in Deallocate() 80 std::ostream& operator<<(std::ostream& os, const jvmtiError& rhs);
|
/art/test/928-jni-table/ |
D | jni_table.cc | 64 jvmtiError getorig_result = jvmti_env->GetJNIFunctionTable(&gOriginalEnv); in Java_art_Test928_doJNITableTest() 71 jvmtiError getoverride_result = jvmti_env->GetJNIFunctionTable(&env_override); in Java_art_Test928_doJNITableTest() 81 jvmtiError setoverride_result = jvmti_env->SetJNIFunctionTable(env_override); in Java_art_Test928_doJNITableTest() 98 jvmtiError setoverride2_result = jvmti_env->SetJNIFunctionTable(gOriginalEnv); in Java_art_Test928_doJNITableTest() 108 jvmtiError setoverride3_result = jvmti_env->SetJNIFunctionTable(nullptr); in Java_art_Test928_doJNITableTest()
|
/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()
|