/dports/science/paje/Paje_1.97/Tracers/JRastro/src/ |
H A D | JRastro_events.c | 131 error = (*jvmtiLocate)->Deallocate(jvmtiLocate, (unsigned char *)classSignature); in jrst_deallocate_class() 133 error = (*jvmtiLocate)->Deallocate(jvmtiLocate, (unsigned char *)classGeneric); in jrst_deallocate_class() 148 error = (*jvmtiLocate)->GetMethodDeclaringClass(jvmtiLocate, method, &klass); in jrst_find_method() 188 (*jvmtiLocate)->NotifyFramePop(jvmtiLocate, thread, 0); in jrst_event_exception() 189 (*jvmtiLocate)->NotifyFramePop(jvmtiLocate, thread, 1); in jrst_event_exception() 206 error = (*jvmtiLocate)->Deallocate(jvmtiLocate, (unsigned char *)methodName); in jrst_event_exception() 208 error = (*jvmtiLocate)->Deallocate(jvmtiLocate, (unsigned char *)methodSignature); in jrst_event_exception() 210 error = (*jvmtiLocate)->Deallocate(jvmtiLocate, (unsigned char *)methodGsignature); in jrst_event_exception() 235 error = (*jvmtiLocate)->NotifyFramePop(jvmtiLocate, thread, 1); in jrst_event_frame_pop() 248 error = (*jvmtiLocate)->Deallocate(jvmtiLocate, (unsigned char *)methodName); in jrst_event_frame_pop() [all …]
|
H A D | JRastro_options.c | 32 void jrst_enable_all(jvmtiEnv *jvmtiLocate) in jrst_enable_all() argument 39 …error=(*jvmtiLocate)->SetEventNotificationMode(jvmtiLocate, JVMTI_ENABLE, JVMTI_EVENT_EXCEPTION, (… in jrst_enable_all() 42 …error=(*jvmtiLocate)->SetEventNotificationMode(jvmtiLocate, JVMTI_ENABLE, JVMTI_EVENT_FRAME_POP, (… in jrst_enable_all() 49 …error=(*jvmtiLocate)->SetEventNotificationMode(jvmtiLocate, JVMTI_ENABLE, JVMTI_EVENT_OBJECT_FREE,… in jrst_enable_all() 65 …error=(*jvmtiLocate)->SetEventNotificationMode(jvmtiLocate, JVMTI_ENABLE, JVMTI_EVENT_MONITOR_WAIT… in jrst_enable_all() 68 …error=(*jvmtiLocate)->SetEventNotificationMode(jvmtiLocate, JVMTI_ENABLE, JVMTI_EVENT_MONITOR_WAIT… in jrst_enable_all() 73 void jrst_threads(jvmtiEnv *jvmtiLocate) in jrst_threads() argument 77 …error=(*jvmtiLocate)->SetEventNotificationMode(jvmtiLocate, JVMTI_ENABLE, JVMTI_EVENT_THREAD_START… in jrst_threads() 80 …error=(*jvmtiLocate)->SetEventNotificationMode(jvmtiLocate, JVMTI_ENABLE, JVMTI_EVENT_THREAD_END, … in jrst_threads() 117 jrst_enable_all(jvmtiLocate); in jrst_read_events_enable() [all …]
|
H A D | JRastro_basic.c | 32 void jrst_describe_error(jvmtiEnv *jvmtiLocate, jvmtiError error) in jrst_describe_error() argument 38 err=(*jvmtiLocate)->GetErrorName(jvmtiLocate, error, &describe); in jrst_describe_error() 45 err=(*jvmtiLocate)->Deallocate(jvmtiLocate, (unsigned char *)describe); in jrst_describe_error() 56 jrst_describe_error(jvmtiLocate,error); in jrst_check_error() 68 error=(*jvmtiLocate)->RawMonitorEnter(jvmtiLocate, monitor); in jrst_enter_critical_section() 76 error=(*jvmtiLocate)->RawMonitorExit(jvmtiLocate, monitor); in jrst_exit_critical_section() 77 jrst_check_error(jvmtiLocate, error, "Cannot exit with raw monitor"); in jrst_exit_critical_section() 87 error=(*jvmtiLocate)->GetThreadInfo(jvmtiLocate, thread, &infoThread); in jrst_get_thread_name() 88 jrst_check_error(jvmtiLocate, error, "Cannot get Thread Info"); in jrst_get_thread_name() 98 error=(*jvmtiLocate)->Deallocate(jvmtiLocate, (unsigned char *)infoThread.name); in jrst_get_thread_name() [all …]
|
H A D | JRastro.c | 187 err = (*jvmtiLocate)->Allocate(jvmtiLocate,(jlong)new_file_len, &jvmti_space); in jrst_event_ClassFileLoadHook() 197 jrst_exit_critical_section(jvmtiLocate, gagent->monitor); in jrst_event_ClassFileLoadHook() 223 jrst_read_events_enable(jvmtiLocate); in jrst_event_VMInit() 233 error = (*jvmtiLocate)->GetLoadedClasses(jvmtiLocate, &class_count_ptr, &classes_ptr); in jrst_event_VMInit() 243 …error = (*jvmtiLocate)->GetClassSignature(jvmtiLocate, classes_ptr[i], &signature_ptr, &generic_pt… in jrst_event_VMInit() 262 error=(*jvmtiLocate)->Deallocate(jvmtiLocate, (unsigned char*)signature_ptr); in jrst_event_VMInit() 264 error=(*jvmtiLocate)->Deallocate(jvmtiLocate, (unsigned char*)generic_ptr); in jrst_event_VMInit() 270 error=(*jvmtiLocate)->RedefineClasses(jvmtiLocate, count, definitions); in jrst_event_VMInit() 273 error=(*jvmtiLocate)->Deallocate(jvmtiLocate, (unsigned char*)classes_ptr); in jrst_event_VMInit() 278 trace_initialize(jvmtiLocate, thread, name); in jrst_event_VMInit() [all …]
|
H A D | JRastro_traces.c | 76 jrst_enter_critical_section(jvmtiLocate, gagent->monitor_thread); in trace_initialize() 78 error=(*jvmtiLocate)->GetThreadInfo(jvmtiLocate, thread, &infoThread); in trace_initialize() 79 jrst_check_error(jvmtiLocate, error, "Cannot get Thread Info"); in trace_initialize() 86 error = (*jvmtiLocate)->SetThreadLocalStorage(jvmtiLocate, thread, (void*)ptr); in trace_initialize() 89 jrst_exit_critical_section(jvmtiLocate, gagent->monitor_thread); in trace_initialize() 91 error=(*jvmtiLocate)->Deallocate(jvmtiLocate, (unsigned char *)infoThread.name); in trace_initialize() 92 jrst_check_error(jvmtiLocate, error,"Cannot deallocate memory"); in trace_initialize() 97 void trace_finalize(jvmtiEnv *jvmtiLocate, jthread thread) in trace_finalize() argument 107 error = (*jvmtiLocate)->GetThreadLocalStorage(jvmtiLocate, thread, (void**)&ptr); in trace_finalize() 116 error = (*jvmtiLocate)->SetThreadLocalStorage(jvmtiLocate, thread, NULL); in trace_finalize() [all …]
|
H A D | JRastro_thread.c | 33 void JNICALL jrst_event_thread_start(jvmtiEnv *jvmtiLocate, JNIEnv* jniEnv, jthread thread) in jrst_event_thread_start() argument 38 jrst_get_thread_name(jvmtiLocate, thread, name, MAX_NAME_THREAD); in jrst_event_thread_start() 41 trace_initialize(jvmtiLocate, thread, name); in jrst_event_thread_start() 47 void JNICALL jrst_event_thread_end(jvmtiEnv *jvmtiLocate, JNIEnv* jniEnv, jthread thread) in jrst_event_thread_end() argument 50 trace_finalize(jvmtiLocate, thread); in jrst_event_thread_end()
|
/dports/science/paje/Paje_1.97/Tracers/JRastro/include/ |
H A D | JRastro_events.h | 32 void JNICALL jrst_monitor_contended_enter(jvmtiEnv *jvmtiLocate, JNIEnv* jniEnv, jthread thread, jo… 34 void JNICALL jrst_monitor_contended_entered(jvmtiEnv *jvmtiLocate, JNIEnv* jniEnv, jthread thread, … 36 void JNICALL jrst_monitor_wait(jvmtiEnv *jvmtiLocate, JNIEnv* jniEnv, jthread thread, jobject objec… 38 void JNICALL jrst_monitor_waited(jvmtiEnv *jvmtiLocate, JNIEnv* jniEnv, jthread thread, jobject obj… 40 void JNICALL jrst_event_VMObject_alloc(jvmtiEnv *jvmtiLocate, JNIEnv* jniEnv, jthread thread, jobje… 42 void JNICALL jrst_event_object_free(jvmtiEnv *jvmtiLocate, jlong tag); 44 void JNICALL jrst_event_garbage_collection_start(jvmtiEnv *jvmtiLocate); 46 void JNICALL jrst_event_garbage_collection_finish(jvmtiEnv *jvmtiLocate); 52 void JNICALL jrst_event_exception_catch(jvmtiEnv *jvmtiLocate, JNIEnv* jniEnv, jthread thread, jmet… 54 void JNICALL jrst_event_frame_pop(jvmtiEnv *jvmtiLocate, JNIEnv* jniEnv, jthread thread, jmethodID … [all …]
|
H A D | JRastro_traces.h | 49 void trace_initialize(jvmtiEnv *jvmtiLocate, jthread thread, char *name); 50 void trace_finalize(jvmtiEnv *jvmtiLocate, jthread thread); 66 void trace_event_monitor_contended_enter(jvmtiEnv *jvmtiLocate, jthread thread, int object); 67 void trace_event_monitor_contended_entered(jvmtiEnv *jvmtiLocate, jthread thread, int object); 69 void trace_event_monitor_wait(jvmtiEnv *jvmtiLocate, jthread thread, int object); 70 void trace_event_monitor_waited(jvmtiEnv *jvmtiLocate, jthread thread, int object);
|
H A D | JRastro_options.h | 41 void jrst_enable_all(jvmtiEnv *jvmtiLocate); 42 void jrst_threads(jvmtiEnv *jvmtiLocate); 43 void jrst_read_events_enable(jvmtiEnv *jvmtiLocate);
|
H A D | JRastro_basic.h | 73 void jrst_get_thread_name(jvmtiEnv *jvmtiLocate, jthread thread, char *name, int numMax);
|