Home
last modified time | relevance | path

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

12345

/art/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 GetClassLoaderClassDescriptors(jvmtiEnv* env,
83 static jvmtiError IsInterface(jvmtiEnv* env, jclass klass, jboolean* is_interface_ptr);
[all …]
Dti_method.h48 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 …]
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 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);
Dti_field.h44 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)
DOpenjdkJvmTi.cc100 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 …]
Dti_thread.h74 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 …]
Dti_stack.h47 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);
Dti_heap.h45 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);
Dti_search.h46 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,
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_object.h42 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);
Dti_extension.h44 static jvmtiError GetExtensionFunctions(jvmtiEnv* env,
48 static jvmtiError GetExtensionEvents(jvmtiEnv* env,
52 static jvmtiError SetExtensionEventCallback(jvmtiEnv* env,
Dti_threadgroup.h42 static jvmtiError GetTopThreadGroups(jvmtiEnv* env,
46 static jvmtiError GetThreadGroupInfo(jvmtiEnv* env,
50 static jvmtiError GetThreadGroupChildren(jvmtiEnv* env,
Dart_jvmti.h73 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 …]
Dti_allocator.h48 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);
/art/test/ti-agent/
Djvmti_helper.h34 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 …]
Djni_binder.h27 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);
Dcommon_helper.h28 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/
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/tools/jvmti-agents/ti-fast/
Dtifast.cc75 …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/
Dagent_tls.cc33 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/
Ddump-jvmti.cc29 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/test/901-hello-ti-agent/
Dbasics.cc34 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/jvmti-agents/jit-load/
Djitload.cc53 JNICALL void VmInitCb(jvmtiEnv* jvmti, in VmInitCb()
68 JNICALL static void DataDumpRequestCb(jvmtiEnv* jvmti) { in DataDumpRequestCb()
74 JNICALL void ClassPrepareJit(jvmtiEnv* jvmti, in ClassPrepareJit()
88 JNICALL void VMDeathCb(jvmtiEnv* jvmti, JNIEnv* env ATTRIBUTE_UNUSED) { in VMDeathCb()
92 static jvmtiEnv* SetupJvmti(JavaVM* vm, const char* options) { in SetupJvmti()
95 jvmtiEnv* jvmti = nullptr; in SetupJvmti()
127 jvmtiEnv* jvmti = SetupJvmti(vm, options); in Agent_OnAttach()

12345