Home
last modified time | relevance | path

Searched refs:jvmtiEnv (Results 1 – 25 of 59) sorted by relevance

123

/art/runtime/openjdkjvmti/
Dti_class.h47 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 …]
Dti_method.h47 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);
Dti_monitor.h42 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);
DOpenjdkJvmTi.cc82 static jvmtiError getEnvironmentError(jvmtiEnv* env) { in getEnvironmentError()
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()
159 static jvmtiError ResumeThread(jvmtiEnv* env, jthread thread ATTRIBUTE_UNUSED) { in ResumeThread()
165 static jvmtiError ResumeThreadList(jvmtiEnv* env, in ResumeThreadList()
[all …]
Dti_thread.h54 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,
Dti_heap.h31 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,
Dti_stack.h44 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,
Dart_jvmti.h54 struct ArtJvmTiEnv : public jvmtiEnv {
67 static ArtJvmTiEnv* AsArtJvmTiEnv(jvmtiEnv* env) { in AsArtJvmTiEnv()
79 static inline JNIEnv* GetJniEnv(jvmtiEnv* env) { in GetJniEnv()
93 explicit JvmtiDeleter(jvmtiEnv* env) : env_(env) {} in JvmtiDeleter()
106 mutable jvmtiEnv* env_;
113 explicit JvmtiDeleter(jvmtiEnv* env) : env_(env) {} in JvmtiDeleter()
127 mutable jvmtiEnv* env_;
135 static inline JvmtiUniquePtr<T> MakeJvmtiUniquePtr(jvmtiEnv* env, T* mem) { in MakeJvmtiUniquePtr()
141 static inline JvmtiUniquePtr<T> MakeJvmtiUniquePtr(jvmtiEnv* env, unsigned char* mem) { in MakeJvmtiUniquePtr()
147 static inline JvmtiUniquePtr<T> AllocJvmtiUniquePtr(jvmtiEnv* env, jvmtiError* error) { in AllocJvmtiUniquePtr()
[all …]
Dti_field.h42 static jvmtiError GetFieldName(jvmtiEnv* env,
49 static jvmtiError GetFieldDeclaringClass(jvmtiEnv* env,
54 static jvmtiError GetFieldModifiers(jvmtiEnv* env,
59 static jvmtiError IsFieldSynthetic(jvmtiEnv* env,
Dti_timers.h42 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);
Dti_properties.h42 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);
Dti_threadgroup.h42 static jvmtiError GetTopThreadGroups(jvmtiEnv* env,
46 static jvmtiError GetThreadGroupInfo(jvmtiEnv* env,
50 static jvmtiError GetThreadGroupChildren(jvmtiEnv* env,
Dti_search.h46 static jvmtiError AddToBootstrapClassLoaderSearch(jvmtiEnv* env, const char* segment);
48 static jvmtiError AddToSystemClassLoaderSearch(jvmtiEnv* env, const char* segment);
Dti_jni.h51 static jvmtiError SetJNIFunctionTable(jvmtiEnv* env, const jniNativeInterface* function_table);
53 static jvmtiError GetJNIFunctionTable(jvmtiEnv* env, jniNativeInterface** function_table);
Dti_timers.cc48 jvmtiError TimerUtil::GetAvailableProcessors(jvmtiEnv* env ATTRIBUTE_UNUSED, in GetAvailableProcessors()
59 jvmtiError TimerUtil::GetTimerInfo(jvmtiEnv* env ATTRIBUTE_UNUSED, jvmtiTimerInfo* info_ptr) { in GetTimerInfo()
72 jvmtiError TimerUtil::GetTime(jvmtiEnv* env ATTRIBUTE_UNUSED, jlong* nanos_ptr) { in GetTime()
Dti_object.h42 static jvmtiError GetObjectSize(jvmtiEnv* env, jobject object, jlong* size_ptr);
44 static jvmtiError GetObjectHashCode(jvmtiEnv* env, jobject object, jint* hash_code_ptr);
Dti_monitor.cc184 jvmtiError MonitorUtil::CreateRawMonitor(jvmtiEnv* env ATTRIBUTE_UNUSED, in CreateRawMonitor()
197 jvmtiError MonitorUtil::DestroyRawMonitor(jvmtiEnv* env ATTRIBUTE_UNUSED, jrawMonitorID id) { in DestroyRawMonitor()
212 jvmtiError MonitorUtil::RawMonitorEnter(jvmtiEnv* env ATTRIBUTE_UNUSED, jrawMonitorID id) { in RawMonitorEnter()
225 jvmtiError MonitorUtil::RawMonitorExit(jvmtiEnv* env ATTRIBUTE_UNUSED, jrawMonitorID id) { in RawMonitorExit()
240 jvmtiError MonitorUtil::RawMonitorWait(jvmtiEnv* env ATTRIBUTE_UNUSED, in RawMonitorWait()
272 jvmtiError MonitorUtil::RawMonitorNotify(jvmtiEnv* env ATTRIBUTE_UNUSED, jrawMonitorID id) { in RawMonitorNotify()
287 jvmtiError MonitorUtil::RawMonitorNotifyAll(jvmtiEnv* env ATTRIBUTE_UNUSED, jrawMonitorID id) { in RawMonitorNotifyAll()
Dti_method.cc94 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()
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()
356 static jvmtiError IsMethodT(jvmtiEnv* env ATTRIBUTE_UNUSED, in IsMethodT()
373 jvmtiError MethodUtil::IsMethodNative(jvmtiEnv* env, jmethodID m, jboolean* is_native_ptr) { in IsMethodNative()
380 jvmtiError MethodUtil::IsMethodObsolete(jvmtiEnv* env, jmethodID m, jboolean* is_obsolete_ptr) { in IsMethodObsolete()
[all …]
Dti_properties.cc92 jvmtiError PropertiesUtil::GetSystemProperties(jvmtiEnv* env, in GetSystemProperties()
148 static jvmtiError Copy(jvmtiEnv* env, const char* in, char** out) { 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()
/art/runtime/openjdkjvmti/include/
Djvmti.h65 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/
Djvmti_helper.h30 void SetAllCapabilities(jvmtiEnv* env);
34 void CheckJvmtiError(jvmtiEnv* env, jvmtiError error);
38 bool JvmtiErrorToException(JNIEnv* env, jvmtiEnv* jvmti_env, jvmtiError error);
43 explicit JvmtiDeleter(jvmtiEnv* env) : env_(env) {} in JvmtiDeleter()
56 mutable jvmtiEnv* env_;
62 static inline JvmtiUniquePtr MakeJvmtiUniquePtr(jvmtiEnv* env, T* mem) { in MakeJvmtiUniquePtr()
67 static inline jvmtiError Deallocate(jvmtiEnv* env, T* mem) { in Deallocate()
Djni_binder.h27 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);
/art/test/901-hello-ti-agent/
Dbasics.cc34 static void EnableEvent(jvmtiEnv* env, jvmtiEvent evt) { in EnableEvent()
41 static void JNICALL VMStartCallback(jvmtiEnv *jenv ATTRIBUTE_UNUSED, in VMStartCallback()
46 static void JNICALL VMInitCallback(jvmtiEnv *jvmti_env ATTRIBUTE_UNUSED, in VMInitCallback()
52 static void JNICALL VMDeatchCallback(jvmtiEnv *jenv ATTRIBUTE_UNUSED, in VMDeatchCallback()
58 static void InstallVMEvents(jvmtiEnv* env) { in InstallVMEvents()
79 jvmtiEnv* env = nullptr; in OnLoad()
80 jvmtiEnv* env2 = nullptr; in OnLoad()
165 static void CallJvmtiFunction(jvmtiEnv* env, jclass klass, jvmtiError* err) { in CallJvmtiFunction()
/art/test/903-hello-tagging/
Dtagging.cc108 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()
/art/test/905-object-free/
Dtracking_free.cc38 jvmtiEnv* jvmti_env2;
40 static void JNICALL ObjectFree1(jvmtiEnv* ti_env, jlong tag) { in ObjectFree1()
45 static void JNICALL ObjectFree2(jvmtiEnv* ti_env, jlong tag) { in ObjectFree2()
50 static void setupObjectFreeCallback(JNIEnv* env, jvmtiEnv* jenv, jvmtiEventObjectFree callback) { in setupObjectFreeCallback()

123