/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_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 | OpenjdkJvmTi.cc | 100 static jvmtiError getEnvironmentError(jvmtiEnv* env) { in getEnvironmentError() 126 static jvmtiError Allocate(jvmtiEnv* env, jlong size, unsigned char** mem_ptr) { in Allocate() 136 static jvmtiError Deallocate(jvmtiEnv* env, unsigned char* mem) { 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() 166 static jvmtiError SuspendThreadList(jvmtiEnv* env, in SuspendThreadList() 175 static jvmtiError ResumeThread(jvmtiEnv* env, jthread thread) { in ResumeThread() 181 static jvmtiError ResumeThreadList(jvmtiEnv* env, in ResumeThreadList() [all …]
|
D | ti_thread.h | 74 std::unordered_map<jvmtiEnv*, const void*> data GUARDED_BY(art::Locks::thread_list_lock_); 96 static void RemoveEnvironment(jvmtiEnv* env); 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); [all …]
|
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); 90 jvmtiEnv* env, EventHandler* event_handler, jthread thread, T value);
|
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_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_logging.h | 59 JvmtiLogMessage(jvmtiEnv* env, in JvmtiLogMessage() 95 static jvmtiError ClearLastError(jvmtiEnv* env); 96 static jvmtiError GetLastError(jvmtiEnv* env, char** data); 98 static jvmtiError SetVerboseFlag(jvmtiEnv* env, jvmtiVerboseFlag flag, jboolean value); 99 static jvmtiError SetVerboseFlagExt(jvmtiEnv* env, const char* data, jboolean enable);
|
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 | art_jvmti.h | 73 struct ArtJvmTiEnv : public jvmtiEnv { 111 static ArtJvmTiEnv* AsArtJvmTiEnv(jvmtiEnv* env) { in AsArtJvmTiEnv() 127 static inline JNIEnv* GetJniEnv(jvmtiEnv* env) { in GetJniEnv() 141 explicit JvmtiDeleter(jvmtiEnv* env) : env_(env) {} in JvmtiDeleter() 154 mutable jvmtiEnv* env_; 161 explicit JvmtiDeleter(jvmtiEnv* env) : env_(env) {} in JvmtiDeleter() 175 mutable jvmtiEnv* env_; 183 static inline JvmtiUniquePtr<T> MakeJvmtiUniquePtr(jvmtiEnv* env, T* mem) { in MakeJvmtiUniquePtr() 189 static inline JvmtiUniquePtr<T> MakeJvmtiUniquePtr(jvmtiEnv* env, unsigned char* mem) { in MakeJvmtiUniquePtr() 195 static inline JvmtiUniquePtr<T> AllocJvmtiUniquePtr(jvmtiEnv* env, jvmtiError* error) { in AllocJvmtiUniquePtr() [all …]
|
/art/test/ti-agent/ |
D | jvmti_helper.h | 34 void SetStandardCapabilities(jvmtiEnv* env); 38 void SetAllCapabilities(jvmtiEnv* env); 42 void CheckJvmtiError(jvmtiEnv* env, jvmtiError error); 46 bool JvmtiErrorToException(JNIEnv* env, jvmtiEnv* jvmtienv, jvmtiError error); 51 explicit JvmtiDeleter(jvmtiEnv* env) : env_(env) {} in JvmtiDeleter() 64 mutable jvmtiEnv* env_; 70 static inline JvmtiUniquePtr MakeJvmtiUniquePtr(jvmtiEnv* env, T* mem) { in MakeJvmtiUniquePtr() 75 static inline jvmtiError Deallocate(jvmtiEnv* env, T* mem) { in Deallocate() 82 template <typename T> void Dealloc(jvmtiEnv* env, T* t) { in Dealloc() 86 template <typename T, typename... Rest> void Dealloc(jvmtiEnv* env, T* t, Rest... rs) { in Dealloc() [all …]
|
D | jni_binder.h | 27 jclass GetClass(jvmtiEnv* jvmti_env, JNIEnv* env, const char* class_name, jobject class_loader); 33 void BindFunctions(jvmtiEnv* jvmti_env, 38 void BindFunctionsOnClass(jvmtiEnv* jvmti_env, JNIEnv* env, jclass klass);
|
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); 31 jobject GetJavaValue(jvmtiEnv* jvmtienv, JNIEnv* env, jmethodID m, jvalue value);
|
/art/openjdkjvmti/include/ |
D | jvmti.h | 65 typedef _jvmtiEnv jvmtiEnv; typedef 67 typedef const struct jvmtiInterface_1_ *jvmtiEnv; typedef 478 (jvmtiEnv* jvmti_env, JNIEnv* jni_env, void* arg); 511 (jvmtiEnv* jvmti_env, ...); 514 (jvmtiEnv* jvmti_env, ...); 721 (jvmtiEnv *jvmti_env, 728 (jvmtiEnv *jvmti_env, 740 (jvmtiEnv *jvmti_env, 746 (jvmtiEnv *jvmti_env, 752 (jvmtiEnv *jvmti_env, [all …]
|
/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 …jni_fun(ClassFileLoadHook, EVENT(CLASS_FILE_LOAD_HOOK), (jvmtiEnv* jvmti, JNIEnv* jni, jclass klas… 80 …jni_fun(ClassLoad, EVENT(CLASS_LOAD), (jvmtiEnv* jvmti, JNIEnv* jni, jthread thread, jclass klass)… 81 …jni_fun(ClassPrepare, EVENT(CLASS_PREPARE), (jvmtiEnv* jvmti, JNIEnv* jni, jthread thread, jclass … 82 jni_fun(VMStart, EVENT(VM_START), (jvmtiEnv* jvmti, JNIEnv* jni), (jvmti, jni)) \ 83 …jni_fun(Exception, EVENT(EXCEPTION), (jvmtiEnv* jvmti, JNIEnv* jni, jthread thread, jmethodID meth… 84 …jni_fun(ExceptionCatch, EVENT(EXCEPTION_CATCH), (jvmtiEnv* jvmti, JNIEnv* jni, jthread thread, jme… [all …]
|
/art/test/1909-per-agent-tls/ |
D | agent_tls.cc | 33 reinterpret_cast<jvmtiEnv*>(jvmti_env_ptr), in Java_art_Test1909_setTLS() 34 reinterpret_cast<jvmtiEnv*>(jvmti_env_ptr)->SetThreadLocalStorage( in Java_art_Test1909_setTLS() 45 reinterpret_cast<jvmtiEnv*>(jvmti_env_ptr), in Java_art_Test1909_getTLS() 46 reinterpret_cast<jvmtiEnv*>(jvmti_env_ptr)->GetThreadLocalStorage(thr, &res)); in Java_art_Test1909_getTLS() 55 reinterpret_cast<jvmtiEnv*>(jvmti_env_ptr)->DisposeEnvironment()); in Java_art_Test1909_destroyJvmtiEnv() 65 jvmtiEnv* new_env = nullptr; in Java_art_Test1909_newJvmtiEnv()
|
/art/tools/jvmti-agents/dump-jvmti-state/ |
D | dump-jvmti.cc | 29 template <typename T> static void Dealloc(jvmtiEnv* env, T* t) { in Dealloc() 33 template <typename T, typename... Rest> static void Dealloc(jvmtiEnv* env, T* t, Rest... rs) { in Dealloc() 38 static void DeallocParams(jvmtiEnv* env, jvmtiParamInfo* params, jint n_params) { in DeallocParams() 45 static jvmtiError (*GetInternalData)(jvmtiEnv* env, unsigned char** data) = nullptr; 47 static jint SetupJvmtiEnv(JavaVM* vm, jvmtiEnv** jvmti) { in SetupJvmtiEnv() 59 jvmtiEnv* env = *jvmti; in SetupJvmtiEnv() 81 static void CbDataDump(jvmtiEnv* jvmti) { in CbDataDump() 92 jvmtiEnv* jvmti = nullptr; in AgentStart()
|
/art/tools/jvmti-agents/enable-vlog/ |
D | enablevlog.cc | 35 using SetVerboseFlagExt = jvmtiError (*)(jvmtiEnv*, const char*, jboolean); 38 static inline jvmtiError Deallocate(jvmtiEnv* env, T* mem) { in Deallocate() 43 void Dealloc(jvmtiEnv* env, T* t) { in Dealloc() 48 void Dealloc(jvmtiEnv* env, T* t, Rest... rs) { in Dealloc() 53 void DeallocParams(jvmtiEnv* env, jvmtiParamInfo* params, jint n_params) { in DeallocParams() 60 T GetExtensionFunction(jvmtiEnv* jvmti, const std::string_view& name) { in GetExtensionFunction() 79 static jint SetupJvmtiEnv(JavaVM* vm, jvmtiEnv** jvmti) { in SetupJvmtiEnv() 93 jvmtiEnv* jvmti = nullptr; in AgentStart()
|