/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 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); 56 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 | ti_thread.h | 66 static void RemoveEnvironment(jvmtiEnv* env); 68 static jvmtiError GetAllThreads(jvmtiEnv* env, jint* threads_count_ptr, jthread** threads_ptr); 70 static jvmtiError GetCurrentThread(jvmtiEnv* env, jthread* thread_ptr); 72 static jvmtiError GetThreadInfo(jvmtiEnv* env, jthread thread, jvmtiThreadInfo* info_ptr); 74 static jvmtiError GetThreadState(jvmtiEnv* env, jthread thread, jint* thread_state_ptr); 76 static jvmtiError SetThreadLocalStorage(jvmtiEnv* env, jthread thread, const void* data); 77 static jvmtiError GetThreadLocalStorage(jvmtiEnv* env, jthread thread, void** data_ptr); 79 static jvmtiError RunAgentThread(jvmtiEnv* env, 85 static jvmtiError SuspendThread(jvmtiEnv* env, jthread thread); 86 static jvmtiError ResumeThread(jvmtiEnv* env, jthread thread); [all …]
|
D | OpenjdkJvmTi.cc | 96 static jvmtiError getEnvironmentError(jvmtiEnv* env) { in getEnvironmentError() 122 static jvmtiError Allocate(jvmtiEnv* env, jlong size, unsigned char** mem_ptr) { in Allocate() 128 static jvmtiError Deallocate(jvmtiEnv* env, unsigned char* mem) { in Deallocate() 133 static jvmtiError GetThreadState(jvmtiEnv* env, jthread thread, jint* thread_state_ptr) { in GetThreadState() 138 static jvmtiError GetCurrentThread(jvmtiEnv* env, jthread* thread_ptr) { in GetCurrentThread() 143 static jvmtiError GetAllThreads(jvmtiEnv* env, jint* threads_count_ptr, jthread** threads_ptr) { in GetAllThreads() 148 static jvmtiError SuspendThread(jvmtiEnv* env, jthread thread) { in SuspendThread() 154 static jvmtiError SuspendThreadList(jvmtiEnv* env, in SuspendThreadList() 163 static jvmtiError ResumeThread(jvmtiEnv* env, jthread thread) { in ResumeThread() 169 static jvmtiError ResumeThreadList(jvmtiEnv* env, in ResumeThreadList() [all …]
|
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 | 46 static jvmtiError GetAllStackTraces(jvmtiEnv* env, 52 static jvmtiError GetFrameCount(jvmtiEnv* env, jthread thread, jint* count_ptr); 54 static jvmtiError GetFrameLocation(jvmtiEnv* env, 60 static jvmtiError GetStackTrace(jvmtiEnv* env, 67 static jvmtiError GetThreadListStackTraces(jvmtiEnv* env, 73 static jvmtiError GetOwnedMonitorStackDepthInfo(jvmtiEnv* env, 78 static jvmtiError GetOwnedMonitorInfo(jvmtiEnv* env, 83 static jvmtiError NotifyFramePop(jvmtiEnv* env, jthread thread, jint depth);
|
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 | art_jvmti.h | 73 struct ArtJvmTiEnv : public jvmtiEnv { 107 static ArtJvmTiEnv* AsArtJvmTiEnv(jvmtiEnv* env) { in AsArtJvmTiEnv() 123 static inline JNIEnv* GetJniEnv(jvmtiEnv* env) { in GetJniEnv() 137 explicit JvmtiDeleter(jvmtiEnv* env) : env_(env) {} in JvmtiDeleter() 150 mutable jvmtiEnv* env_; 157 explicit JvmtiDeleter(jvmtiEnv* env) : env_(env) {} in JvmtiDeleter() 171 mutable jvmtiEnv* env_; 179 static inline JvmtiUniquePtr<T> MakeJvmtiUniquePtr(jvmtiEnv* env, T* mem) { in MakeJvmtiUniquePtr() 185 static inline JvmtiUniquePtr<T> MakeJvmtiUniquePtr(jvmtiEnv* env, unsigned char* mem) { in MakeJvmtiUniquePtr() 191 static inline JvmtiUniquePtr<T> AllocJvmtiUniquePtr(jvmtiEnv* env, jvmtiError* error) { in AllocJvmtiUniquePtr() [all …]
|
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_search.h | 46 static jvmtiError AddToBootstrapClassLoaderSearch(jvmtiEnv* env, const char* segment); 48 static jvmtiError AddToSystemClassLoaderSearch(jvmtiEnv* env, const char* segment);
|
/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/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()
|
D | jni_binder.h | 27 jclass FindClass(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/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/test/901-hello-ti-agent/ |
D | basics.cc | 34 static void EnableEvent(jvmtiEnv* env, jvmtiEvent evt) { in EnableEvent() 41 static jvmtiPhase getPhase(jvmtiEnv* jenv) { in getPhase() 47 static void JNICALL VMStartCallback(jvmtiEnv *jenv, JNIEnv* jni_env ATTRIBUTE_UNUSED) { in VMStartCallback() 52 static void JNICALL VMInitCallback(jvmtiEnv *jvmti_env, in VMInitCallback() 59 static void JNICALL VMDeathCallback(jvmtiEnv *jenv, JNIEnv* jni_env) { in VMDeathCallback() 69 static void InstallVMEvents(jvmtiEnv* env) { in InstallVMEvents() 90 jvmtiEnv* env = nullptr; in OnLoad() 91 jvmtiEnv* env2 = nullptr; in OnLoad() 176 static void CallJvmtiFunction(jvmtiEnv* env, jclass klass, jvmtiError* err) { in CallJvmtiFunction()
|
/art/tools/titrace/ |
D | titrace.cc | 32 static const char* GetJvmtiErrorString(jvmtiEnv* jvmti, jvmtiError errnum) { in GetJvmtiErrorString() 46 explicit TiMemory(jvmtiEnv* env, T* mem, size_t size) : env_(env), mem_(mem), size_(size) { in TiMemory() 86 jvmtiEnv* env_; 92 explicit MethodBytecode(jvmtiEnv* env, unsigned char* memory, jint size) in MethodBytecode() 100 static void Initialize(jvmtiEnv* jvmti) { in Initialize() 149 void OnSingleStep(jvmtiEnv* jvmti_env, jmethodID method, jlocation location) { in OnSingleStep() 172 MethodBytecode& LookupBytecode(jvmtiEnv* jvmti_env, jmethodID method) { in LookupBytecode() 209 static void SingleStep(jvmtiEnv* jvmti_env, in SingleStep() 221 static void DataDumpRequest(jvmtiEnv* jvmti_env ATTRIBUTE_UNUSED) { in DataDumpRequest() 242 jvmtiEnv* jvmti = nullptr; in Agent_OnLoad()
|
/art/test/1900-track-alloc/ |
D | alloc.cc | 27 typedef jvmtiError (*GetGlobalState)(jvmtiEnv* env, jlong* allocated); 49 reinterpret_cast<jvmtiEnv*>(jvmti_env_ptr), in Java_art_Test1900_doDeallocate() 50 reinterpret_cast<jvmtiEnv*>(jvmti_env_ptr)->Deallocate( in Java_art_Test1900_doDeallocate() 60 reinterpret_cast<jvmtiEnv*>(jvmti_env_ptr), in Java_art_Test1900_doAllocate() 61 reinterpret_cast<jvmtiEnv*>(jvmti_env_ptr)->Allocate(size, &res)); in Java_art_Test1900_doAllocate() 96 reinterpret_cast<jvmtiEnv*>(jvmti_env_ptr)->DisposeEnvironment()); in Java_art_Test1900_destroyJvmtiEnv() 106 jvmtiEnv* new_env = nullptr; in Java_art_Test1900_newJvmtiEnv()
|
/art/test/903-hello-tagging/ |
D | tagging.cc | 108 static jvmtiEnv* CreateJvmtiEnv(JNIEnv* env) { in CreateJvmtiEnv() 112 jvmtiEnv* new_jvmti_env; in CreateJvmtiEnv() 124 static void SetTag(jvmtiEnv* env, jobject obj, jlong tag) { in SetTag() 129 static jlong GetTag(jvmtiEnv* env, jobject obj) { in GetTag() 138 std::unique_ptr<jvmtiEnv*[]> envs = std::unique_ptr<jvmtiEnv*[]>(new jvmtiEnv*[count]); in Java_art_Test903_testTagsInDifferentEnvs()
|