CACAO
Data Structures | Macros | Typedefs | Functions | Variables
jvmti.c File Reference

Go to the source code of this file.

Data Structures

struct  _jvmtiEventModeLL
 
struct  _jvmtiThreadLocalStorage
 
struct  _environment
 
struct  runagentparam
 

Macros

#define CHECK_PHASE_START   if (!(false
 
#define CHECK_PHASE(chkphase)   || (phase == chkphase)
 
#define CHECK_PHASE_END   )) return JVMTI_ERROR_WRONG_PHASE
 
#define CHECK_CAPABILITY(env, CAP)
 
#define CHECK_THREAD_IS_ALIVE(t)
 
#define COPY_RESPONSE(name_ptr, str)
 
#define CHECK_ADD_CAPABILITY(env, CAN)
 
#define CHECK_DEL_CAPABILITY(env, CAN)
 

Typedefs

typedef struct _environment environment
 
typedef struct _jvmtiEventModeLL jvmtiEventModeLL
 
typedef struct
_jvmtiThreadLocalStorage 
jvmtiThreadLocalStorage
 

Functions

static jvmtiError check_thread_is_alive (jthread t)
 
static void execute_callback (jvmtiEvent e, functionptr ec, genericEventData *data)
 
static void dofireEvent (jvmtiEvent e, genericEventData *data)
 
void jvmti_fireEvent (genericEventData *d)
 
static jvmtiError SetEventNotificationMode (jvmtiEnv *env, jvmtiEventMode mode, jvmtiEvent event_type, jthread event_thread,...)
 
static jvmtiError GetAllThreads (jvmtiEnv *env, jint *threads_count_ptr, jthread **threads_ptr)
 
static jvmtiError SuspendThread (jvmtiEnv *env, jthread thread)
 
static jvmtiError ResumeThread (jvmtiEnv *env, jthread thread)
 
static jvmtiError StopThread (jvmtiEnv *env, jthread thread, jobject exception)
 
static jvmtiError InterruptThread (jvmtiEnv *env, jthread thread)
 
static jvmtiError GetThreadInfo (jvmtiEnv *env, jthread t, jvmtiThreadInfo *info_ptr)
 
static jvmtiError GetOwnedMonitorInfo (jvmtiEnv *env, jthread thread, jint *owned_monitor_count_ptr, jobject **owned_monitors_ptr)
 
static jvmtiError GetCurrentContendedMonitor (jvmtiEnv *env, jthread thread, jobject *monitor_ptr)
 
static voidthreadstartup (void *t)
 
static jvmtiError RunAgentThread (jvmtiEnv *env, jthread thread, jvmtiStartFunction proc, const void *arg, jint priority)
 
static jvmtiError GetTopThreadGroups (jvmtiEnv *env, jint *group_count_ptr, jthreadGroup **groups_ptr)
 
static jvmtiError GetThreadGroupInfo (jvmtiEnv *env, jthreadGroup group, jvmtiThreadGroupInfo *info_ptr)
 
static jvmtiError GetThreadGroupChildren (jvmtiEnv *env, jthreadGroup group, jint *thread_count_ptr, jthread **threads_ptr, jint *group_count_ptr, jthreadGroup **groups_ptr)
 
static jvmtiError getcacaostacktrace (stacktracebuffer **trace, jthread thread)
 
static jvmtiError GetFrameCount (jvmtiEnv *env, jthread thread, jint *count_ptr)
 
static jvmtiError GetThreadState (jvmtiEnv *env, jthread thread, jint *thread_state_ptr)
 
static jvmtiError GetFrameLocation (jvmtiEnv *env, jthread thread, jint depth, jmethodID *method_ptr, jlocation *location_ptr)
 
static jvmtiError NotifyFramePop (jvmtiEnv *env, jthread thread, jint depth)
 
static jvmtiError GetLocalObject (jvmtiEnv *env, jthread thread, jint depth, jint slot, jobject *value_ptr)
 
static jvmtiError GetLocalInt (jvmtiEnv *env, jthread thread, jint depth, jint slot, jint *value_ptr)
 
static jvmtiError GetLocalLong (jvmtiEnv *env, jthread thread, jint depth, jint slot, jlong *value_ptr)
 
static jvmtiError GetLocalFloat (jvmtiEnv *env, jthread thread, jint depth, jint slot, jfloat *value_ptr)
 
static jvmtiError GetLocalDouble (jvmtiEnv *env, jthread thread, jint depth, jint slot, jdouble *value_ptr)
 
static jvmtiError SetLocalObject (jvmtiEnv *env, jthread thread, jint depth, jint slot, jobject value)
 
static jvmtiError SetLocalInt (jvmtiEnv *env, jthread thread, jint depth, jint slot, jint value)
 
static jvmtiError SetLocalLong (jvmtiEnv *env, jthread thread, jint depth, jint slot, jlong value)
 
static jvmtiError SetLocalFloat (jvmtiEnv *env, jthread thread, jint depth, jint slot, jfloat value)
 
static jvmtiError SetLocalDouble (jvmtiEnv *env, jthread thread, jint depth, jint slot, jdouble value)
 
static jvmtiError CreateRawMonitor (jvmtiEnv *env, const char *name, jrawMonitorID *monitor_ptr)
 
static jvmtiError DestroyRawMonitor (jvmtiEnv *env, jrawMonitorID monitor)
 
static jvmtiError RawMonitorEnter (jvmtiEnv *env, jrawMonitorID monitor)
 
static jvmtiError RawMonitorExit (jvmtiEnv *env, jrawMonitorID monitor)
 
static jvmtiError RawMonitorWait (jvmtiEnv *env, jrawMonitorID monitor, jlong millis)
 
static jvmtiError RawMonitorNotify (jvmtiEnv *env, jrawMonitorID monitor)
 
static jvmtiError RawMonitorNotifyAll (jvmtiEnv *env, jrawMonitorID monitor)
 
static jvmtiError SetBreakpoint (jvmtiEnv *env, jmethodID method, jlocation location)
 
static jvmtiError ClearBreakpoint (jvmtiEnv *env, jmethodID method, jlocation location)
 
static jvmtiError SetFieldAccessWatch (jvmtiEnv *env, jclass klass, jfieldID field)
 
static jvmtiError ClearFieldAccessWatch (jvmtiEnv *env, jclass klass, jfieldID field)
 
static jvmtiError SetFieldModificationWatch (jvmtiEnv *env, jclass klass, jfieldID field)
 
static jvmtiError ClearFieldModificationWatch (jvmtiEnv *env, jclass klass, jfieldID field)
 
static jvmtiError Allocate (jvmtiEnv *env, jlong size, unsigned char **mem_ptr)
 
static jvmtiError Deallocate (jvmtiEnv *env, unsigned char *mem)
 
static jvmtiError GetClassSignature (jvmtiEnv *env, jclass klass, char **signature_ptr, char **generic_ptr)
 
static jvmtiError GetClassStatus (jvmtiEnv *env, jclass klass, jint *status_ptr)
 
static jvmtiError GetSourceFileName (jvmtiEnv *env, jclass klass, char **source_name_ptr)
 
static jvmtiError GetClassModifiers (jvmtiEnv *env, jclass klass, jint *modifiers_ptr)
 
static jvmtiError GetClassMethods (jvmtiEnv *env, jclass klass, jint *method_count_ptr, jmethodID **methods_ptr)
 
static jvmtiError GetClassFields (jvmtiEnv *env, jclass klass, jint *field_count_ptr, jfieldID **fields_ptr)
 
static jvmtiError GetImplementedInterfaces (jvmtiEnv *env, jclass klass, jint *interface_count_ptr, jclass **interfaces_ptr)
 
static jvmtiError IsInterface (jvmtiEnv *env, jclass klass, jboolean *is_interface_ptr)
 
static jvmtiError IsArrayClass (jvmtiEnv *env, jclass klass, jboolean *is_array_class_ptr)
 
static jvmtiError GetClassLoader (jvmtiEnv *env, jclass klass, jobject *classloader_ptr)
 
static jvmtiError GetObjectHashCode (jvmtiEnv *env, jobject object, jint *hash_code_ptr)
 
static jvmtiError GetObjectMonitorUsage (jvmtiEnv *env, jobject object, jvmtiMonitorUsage *info_ptr)
 
static jvmtiError GetFieldName (jvmtiEnv *env, jclass klass, jfieldID field, char **name_ptr, char **signature_ptr, char **generic_ptr)
 
static jvmtiError GetFieldDeclaringClass (jvmtiEnv *env, jclass klass, jfieldID field, jclass *declaring_class_ptr)
 
static jvmtiError GetFieldModifiers (jvmtiEnv *env, jclass klass, jfieldID field, jint *modifiers_ptr)
 
static jvmtiError IsFieldSynthetic (jvmtiEnv *env, jclass klass, jfieldID field, jboolean *is_synthetic_ptr)
 
static jvmtiError GetMethodName (jvmtiEnv *env, jmethodID method, char **name_ptr, char **signature_ptr, char **generic_ptr)
 
static jvmtiError GetMethodDeclaringClass (jvmtiEnv *env, jmethodID method, jclass *declaring_class_ptr)
 
static jvmtiError GetMethodModifiers (jvmtiEnv *env, jmethodID method, jint *modifiers_ptr)
 
static jvmtiError GetMaxLocals (jvmtiEnv *env, jmethodID method, jint *max_ptr)
 
static jvmtiError GetArgumentsSize (jvmtiEnv *env, jmethodID method, jint *size_ptr)
 
static jvmtiError GetLineNumberTable (jvmtiEnv *env, jmethodID method, jint *entry_count_ptr, jvmtiLineNumberEntry **table_ptr)
 
static jvmtiError GetMethodLocation (jvmtiEnv *env, jmethodID method, jlocation *start_location_ptr, jlocation *end_location_ptr)
 
static jvmtiError GetLocalVariableTable (jvmtiEnv *env, jmethodID method, jint *entry_count_ptr, jvmtiLocalVariableEntry **table_ptr)
 
static jvmtiError GetBytecodes (jvmtiEnv *env, jmethodID method, jint *bytecode_count_ptr, unsigned char **bytecodes_ptr)
 
static jvmtiError IsMethodNative (jvmtiEnv *env, jmethodID method, jboolean *is_native_ptr)
 
static jvmtiError IsMethodSynthetic (jvmtiEnv *env, jmethodID method, jboolean *is_synthetic_ptr)
 
static jvmtiError GetLoadedClasses (jvmtiEnv *env, jint *class_count_ptr, jclass **classes_ptr)
 
static jvmtiError GetClassLoaderClasses (jvmtiEnv *env, jobject initiating_loader, jint *class_count_ptr, jclass **classes_ptr)
 
static jvmtiError PopFrame (jvmtiEnv *env, jthread thread)
 
static jvmtiError RedefineClasses (jvmtiEnv *env, jint class_count, const jvmtiClassDefinition *class_definitions)
 
static jvmtiError GetVersionNumber (jvmtiEnv *env, jint *version_ptr)
 
static jvmtiError GetCapabilities (jvmtiEnv *env, jvmtiCapabilities *capabilities_ptr)
 
static jvmtiError GetSourceDebugExtension (jvmtiEnv *env, jclass klass, char **source_debug_extension_ptr)
 
static jvmtiError IsMethodObsolete (jvmtiEnv *env, jmethodID method, jboolean *is_obsolete_ptr)
 
static jvmtiError SuspendThreadList (jvmtiEnv *env, jint request_count, const jthread *request_list, jvmtiError *results)
 
static jvmtiError ResumeThreadList (jvmtiEnv *env, jint request_count, const jthread *request_list, jvmtiError *results)
 
static jvmtiError GetStackTrace (jvmtiEnv *env, jthread thread, jint start_depth, jint max_frame_count, jvmtiFrameInfo *frame_buffer, jint *count_ptr)
 
static jvmtiError GetThreadListStackTraces (jvmtiEnv *env, jint thread_count, const jthread *thread_list, jint max_frame_count, jvmtiStackInfo **stack_info_ptr)
 
static jvmtiError GetAllStackTraces (jvmtiEnv *env, jint max_frame_count, jvmtiStackInfo **stack_info_ptr, jint *thread_count_ptr)
 
static jvmtiError GetThreadLocalStorage (jvmtiEnv *env, jthread thread, void **data_ptr)
 
jvmtiError SetThreadLocalStorage (jvmtiEnv *jenv, jthread thread, const void *data)
 
static jvmtiError GetTag (jvmtiEnv *env, jobject object, jlong *tag_ptr)
 
static jvmtiError SetTag (jvmtiEnv *env, jobject object, jlong tag)
 
static jvmtiError ForceGarbageCollection (jvmtiEnv *env)
 
static jvmtiError IterateOverObjectsReachableFromObject (jvmtiEnv *env, jobject object, jvmtiObjectReferenceCallback object_reference_callback, void *user_data)
 
static jvmtiError IterateOverReachableObjects (jvmtiEnv *env, jvmtiHeapRootCallback heap_root_callback, jvmtiStackReferenceCallback stack_ref_callback, jvmtiObjectReferenceCallback object_ref_callback, void *user_data)
 
static jvmtiError IterateOverHeap (jvmtiEnv *env, jvmtiHeapObjectFilter object_filter, jvmtiHeapObjectCallback heap_object_callback, void *user_data)
 
static jvmtiError IterateOverInstancesOfClass (jvmtiEnv *env, jclass klass, jvmtiHeapObjectFilter object_filter, jvmtiHeapObjectCallback heap_object_callback, void *user_data)
 
static jvmtiError GetObjectsWithTags (jvmtiEnv *env, jint tag_count, const jlong *tags, jint *count_ptr, jobject **object_result_ptr, jlong **tag_result_ptr)
 
static jvmtiError SetJNIFunctionTable (jvmtiEnv *env, const jniNativeInterface *function_table)
 
static jvmtiError GetJNIFunctionTable (jvmtiEnv *env, jniNativeInterface **function_table)
 
static jvmtiError SetEventCallbacks (jvmtiEnv *env, const jvmtiEventCallbacks *callbacks, jint size_of_callbacks)
 
static jvmtiError GenerateEvents (jvmtiEnv *env, jvmtiEvent event_type)
 
static jvmtiError GetExtensionFunctions (jvmtiEnv *env, jint *extension_count_ptr, jvmtiExtensionFunctionInfo **extensions)
 
static jvmtiError GetExtensionEvents (jvmtiEnv *env, jint *extension_count_ptr, jvmtiExtensionEventInfo **extensions)
 
static jvmtiError SetExtensionEventCallback (jvmtiEnv *env, jint extension_event_index, jvmtiExtensionEvent callback)
 
static jvmtiError DisposeEnvironment (jvmtiEnv *env)
 
static jvmtiError GetErrorName (jvmtiEnv *env, jvmtiError error, char **name_ptr)
 
static jvmtiError GetJLocationFormat (jvmtiEnv *env, jvmtiJlocationFormat *format_ptr)
 
static jvmtiError GetSystemProperties (jvmtiEnv *env, jint *count_ptr, char ***property_ptr)
 
static jvmtiError GetSystemProperty (jvmtiEnv *env, const char *property, char **value_ptr)
 
static jvmtiError SetSystemProperty (jvmtiEnv *env, const char *property, const char *value)
 
static jvmtiError GetPhase (jvmtiEnv *env, jvmtiPhase *phase_ptr)
 
static jvmtiError GetCurrentThreadCpuTimerInfo (jvmtiEnv *env, jvmtiTimerInfo *info_ptr)
 
static jvmtiError GetCurrentThreadCpuTime (jvmtiEnv *env, jlong *nanos_ptr)
 
static jvmtiError GetThreadCpuTimerInfo (jvmtiEnv *env, jvmtiTimerInfo *info_ptr)
 
static jvmtiError GetThreadCpuTime (jvmtiEnv *env, jthread thread, jlong *nanos_ptr)
 
static jvmtiError GetTimerInfo (jvmtiEnv *env, jvmtiTimerInfo *info_ptr)
 
static jvmtiError GetTime (jvmtiEnv *env, jlong *nanos_ptr)
 
static jvmtiError GetPotentialCapabilities (jvmtiEnv *env, jvmtiCapabilities *capabilities_ptr)
 
static jvmtiError AddCapabilities (jvmtiEnv *env, const jvmtiCapabilities *capabilities_ptr)
 
static jvmtiError RelinquishCapabilities (jvmtiEnv *env, const jvmtiCapabilities *capabilities_ptr)
 
static jvmtiError GetAvailableProcessors (jvmtiEnv *env, jint *processor_count_ptr)
 
static jvmtiError GetEnvironmentLocalStorage (jvmtiEnv *env, void **data_ptr)
 
static jvmtiError SetEnvironmentLocalStorage (jvmtiEnv *env, const void *data)
 
static jvmtiError AddToBootstrapClassLoaderSearch (jvmtiEnv *env, const char *segment)
 
static jvmtiError SetVerboseFlag (jvmtiEnv *env, jvmtiVerboseFlag flag, jboolean value)
 
static jvmtiError GetObjectSize (jvmtiEnv *env, jobject object, jlong *size_ptr)
 
void jvmti_set_phase (jvmtiPhase p)
 
jvmtiEnvjvmti_new_environment ()
 
void jvmti_agentload (char *opt_arg, bool agentbypath, lt_dlhandle *handle, char **libname)
 
void jvmti_agentunload ()
 

Variables

static environmentenvs =NULL
 
mutex_t dbgcomlock
 
struct JNIInvokeInterface _Jv_JNIInvokeInterface
 
static jvmtiPhase phase
 
static struct jvmtiEnv_struct JVMTI_EnvTable
 
static jvmtiCapabilities JVMTI_Capabilities
 
static lt_ptr unload
 

Macro Definition Documentation

#define CHECK_ADD_CAPABILITY (   env,
  CAN 
)
Value:
if (capabilities_ptr->CAN == 1) { \
if (JVMTI_Capabilities.CAN == 0) \
else \
env->capabilities.CAN = 1; \
}
static jvmtiCapabilities JVMTI_Capabilities
Definition: jvmti.c:111
#define return

Definition at line 3903 of file jvmti.c.

#define CHECK_CAPABILITY (   env,
  CAP 
)
Value:

Definition at line 117 of file jvmti.c.

#define CHECK_DEL_CAPABILITY (   env,
  CAN 
)
Value:
if (capabilities_ptr->CAN == 1) \
env->capabilities.CAN = 0;

Definition at line 3972 of file jvmti.c.

#define CHECK_PHASE (   chkphase)    || (phase == chkphase)

Definition at line 115 of file jvmti.c.

#define CHECK_PHASE_END   )) return JVMTI_ERROR_WRONG_PHASE

Definition at line 116 of file jvmti.c.

#define CHECK_PHASE_START   if (!(false

Definition at line 114 of file jvmti.c.

#define CHECK_THREAD_IS_ALIVE (   t)
Value:
static jvmtiError check_thread_is_alive(jthread t)
Definition: jvmti.c:132
#define return

Definition at line 120 of file jvmti.c.

#define COPY_RESPONSE (   name_ptr,
  str 
)
Value:
*name_ptr = (char*) heap_allocate(sizeof(str),true,NULL); \
memcpy(*name_ptr, &str, sizeof(str)); \
break
#define str(x)

Definition at line 3442 of file jvmti.c.

Typedef Documentation

typedef struct _environment environment

Definition at line 77 of file jvmti.c.

Definition at line 84 of file jvmti.c.

Definition at line 91 of file jvmti.c.

Function Documentation

static jvmtiError AddCapabilities ( jvmtiEnv env,
const jvmtiCapabilities capabilities_ptr 
)
static

Definition at line 3919 of file jvmti.c.

static jvmtiError AddToBootstrapClassLoaderSearch ( jvmtiEnv env,
const char *  segment 
)
static

Definition at line 4099 of file jvmti.c.

static jvmtiError Allocate ( jvmtiEnv env,
jlong  size,
unsigned char **  mem_ptr 
)
static

Definition at line 1749 of file jvmti.c.

static jvmtiError check_thread_is_alive ( jthread  t)
static

Definition at line 132 of file jvmti.c.

static jvmtiError ClearBreakpoint ( jvmtiEnv env,
jmethodID  method,
jlocation  location 
)
static

Definition at line 1653 of file jvmti.c.

static jvmtiError ClearFieldAccessWatch ( jvmtiEnv env,
jclass  klass,
jfieldID  field 
)
static

Definition at line 1691 of file jvmti.c.

static jvmtiError ClearFieldModificationWatch ( jvmtiEnv env,
jclass  klass,
jfieldID  field 
)
static

Definition at line 1729 of file jvmti.c.

static jvmtiError CreateRawMonitor ( jvmtiEnv env,
const char *  name,
jrawMonitorID monitor_ptr 
)
static

Definition at line 1442 of file jvmti.c.

static jvmtiError Deallocate ( jvmtiEnv env,
unsigned char *  mem 
)
static

Definition at line 1771 of file jvmti.c.

static jvmtiError DestroyRawMonitor ( jvmtiEnv env,
jrawMonitorID  monitor 
)
static

Definition at line 1472 of file jvmti.c.

static jvmtiError DisposeEnvironment ( jvmtiEnv env)
static

Definition at line 3399 of file jvmti.c.

static void dofireEvent ( jvmtiEvent  e,
genericEventData data 
)
static

Definition at line 364 of file jvmti.c.

static void execute_callback ( jvmtiEvent  e,
functionptr  ec,
genericEventData data 
)
static

Definition at line 145 of file jvmti.c.

static jvmtiError ForceGarbageCollection ( jvmtiEnv env)
static

Definition at line 3105 of file jvmti.c.

static jvmtiError GenerateEvents ( jvmtiEnv env,
jvmtiEvent  event_type 
)
static

Definition at line 3311 of file jvmti.c.

static jvmtiError GetAllStackTraces ( jvmtiEnv env,
jint  max_frame_count,
jvmtiStackInfo **  stack_info_ptr,
jint *  thread_count_ptr 
)
static

Definition at line 2944 of file jvmti.c.

static jvmtiError GetAllThreads ( jvmtiEnv env,
jint *  threads_count_ptr,
jthread **  threads_ptr 
)
static

Definition at line 540 of file jvmti.c.

static jvmtiError GetArgumentsSize ( jvmtiEnv env,
jmethodID  method,
jint *  size_ptr 
)
static

Definition at line 2390 of file jvmti.c.

static jvmtiError GetAvailableProcessors ( jvmtiEnv env,
jint *  processor_count_ptr 
)
static

Definition at line 4042 of file jvmti.c.

static jvmtiError GetBytecodes ( jvmtiEnv env,
jmethodID  method,
jint *  bytecode_count_ptr,
unsigned char **  bytecodes_ptr 
)
static

Definition at line 2531 of file jvmti.c.

static jvmtiError getcacaostacktrace ( stacktracebuffer **  trace,
jthread  thread 
)
static

Definition at line 1057 of file jvmti.c.

static jvmtiError GetCapabilities ( jvmtiEnv env,
jvmtiCapabilities capabilities_ptr 
)
static

Definition at line 2720 of file jvmti.c.

static jvmtiError GetClassFields ( jvmtiEnv env,
jclass  klass,
jint *  field_count_ptr,
jfieldID **  fields_ptr 
)
static

Definition at line 1956 of file jvmti.c.

static jvmtiError GetClassLoader ( jvmtiEnv env,
jclass  klass,
jobject classloader_ptr 
)
static

Definition at line 2075 of file jvmti.c.

static jvmtiError GetClassLoaderClasses ( jvmtiEnv env,
jobject  initiating_loader,
jint *  class_count_ptr,
jclass **  classes_ptr 
)
static

Definition at line 2635 of file jvmti.c.

static jvmtiError GetClassMethods ( jvmtiEnv env,
jclass  klass,
jint *  method_count_ptr,
jmethodID **  methods_ptr 
)
static

Definition at line 1921 of file jvmti.c.

static jvmtiError GetClassModifiers ( jvmtiEnv env,
jclass  klass,
jint *  modifiers_ptr 
)
static

Definition at line 1895 of file jvmti.c.

static jvmtiError GetClassSignature ( jvmtiEnv env,
jclass  klass,
char **  signature_ptr,
char **  generic_ptr 
)
static

Definition at line 1787 of file jvmti.c.

static jvmtiError GetClassStatus ( jvmtiEnv env,
jclass  klass,
jint *  status_ptr 
)
static

Definition at line 1820 of file jvmti.c.

static jvmtiError GetCurrentContendedMonitor ( jvmtiEnv env,
jthread  thread,
jobject monitor_ptr 
)
static

Definition at line 779 of file jvmti.c.

static jvmtiError GetCurrentThreadCpuTime ( jvmtiEnv env,
jlong *  nanos_ptr 
)
static

Definition at line 3789 of file jvmti.c.

static jvmtiError GetCurrentThreadCpuTimerInfo ( jvmtiEnv env,
jvmtiTimerInfo info_ptr 
)
static

Definition at line 3769 of file jvmti.c.

static jvmtiError GetEnvironmentLocalStorage ( jvmtiEnv env,
void **  data_ptr 
)
static

Definition at line 4065 of file jvmti.c.

static jvmtiError GetErrorName ( jvmtiEnv env,
jvmtiError  error,
char **  name_ptr 
)
static

Definition at line 3447 of file jvmti.c.

static jvmtiError GetExtensionEvents ( jvmtiEnv env,
jint *  extension_count_ptr,
jvmtiExtensionEventInfo **  extensions 
)
static

Definition at line 3354 of file jvmti.c.

static jvmtiError GetExtensionFunctions ( jvmtiEnv env,
jint *  extension_count_ptr,
jvmtiExtensionFunctionInfo **  extensions 
)
static

Definition at line 3329 of file jvmti.c.

static jvmtiError GetFieldDeclaringClass ( jvmtiEnv env,
jclass  klass,
jfieldID  field,
jclass declaring_class_ptr 
)
static

Definition at line 2189 of file jvmti.c.

static jvmtiError GetFieldModifiers ( jvmtiEnv env,
jclass  klass,
jfieldID  field,
jint *  modifiers_ptr 
)
static

Definition at line 2220 of file jvmti.c.

static jvmtiError GetFieldName ( jvmtiEnv env,
jclass  klass,
jfieldID  field,
char **  name_ptr,
char **  signature_ptr,
char **  generic_ptr 
)
static

Definition at line 2143 of file jvmti.c.

static jvmtiError GetFrameCount ( jvmtiEnv env,
jthread  thread,
jint *  count_ptr 
)
static

Definition at line 1088 of file jvmti.c.

static jvmtiError GetFrameLocation ( jvmtiEnv env,
jthread  thread,
jint  depth,
jmethodID *  method_ptr,
jlocation location_ptr 
)
static

Definition at line 1177 of file jvmti.c.

static jvmtiError GetImplementedInterfaces ( jvmtiEnv env,
jclass  klass,
jint *  interface_count_ptr,
jclass **  interfaces_ptr 
)
static

Definition at line 1985 of file jvmti.c.

static jvmtiError GetJLocationFormat ( jvmtiEnv env,
jvmtiJlocationFormat format_ptr 
)
static

Definition at line 3561 of file jvmti.c.

static jvmtiError GetJNIFunctionTable ( jvmtiEnv env,
jniNativeInterface **  function_table 
)
static

Definition at line 3257 of file jvmti.c.

static jvmtiError GetLineNumberTable ( jvmtiEnv env,
jmethodID  method,
jint *  entry_count_ptr,
jvmtiLineNumberEntry **  table_ptr 
)
static

Definition at line 2416 of file jvmti.c.

static jvmtiError GetLoadedClasses ( jvmtiEnv env,
jint *  class_count_ptr,
jclass **  classes_ptr 
)
static

Definition at line 2609 of file jvmti.c.

static jvmtiError GetLocalDouble ( jvmtiEnv env,
jthread  thread,
jint  depth,
jint  slot,
jdouble *  value_ptr 
)
static

Definition at line 1322 of file jvmti.c.

static jvmtiError GetLocalFloat ( jvmtiEnv env,
jthread  thread,
jint  depth,
jint  slot,
jfloat *  value_ptr 
)
static

Definition at line 1302 of file jvmti.c.

static jvmtiError GetLocalInt ( jvmtiEnv env,
jthread  thread,
jint  depth,
jint  slot,
jint *  value_ptr 
)
static

Definition at line 1264 of file jvmti.c.

static jvmtiError GetLocalLong ( jvmtiEnv env,
jthread  thread,
jint  depth,
jint  slot,
jlong *  value_ptr 
)
static

Definition at line 1282 of file jvmti.c.

static jvmtiError GetLocalObject ( jvmtiEnv env,
jthread  thread,
jint  depth,
jint  slot,
jobject value_ptr 
)
static

Definition at line 1245 of file jvmti.c.

static jvmtiError GetLocalVariableTable ( jvmtiEnv env,
jmethodID  method,
jint *  entry_count_ptr,
jvmtiLocalVariableEntry **  table_ptr 
)
static

Definition at line 2508 of file jvmti.c.

static jvmtiError GetMaxLocals ( jvmtiEnv env,
jmethodID  method,
jint *  max_ptr 
)
static

Definition at line 2363 of file jvmti.c.

static jvmtiError GetMethodDeclaringClass ( jvmtiEnv env,
jmethodID  method,
jclass declaring_class_ptr 
)
static

Definition at line 2314 of file jvmti.c.

static jvmtiError GetMethodLocation ( jvmtiEnv env,
jmethodID  method,
jlocation start_location_ptr,
jlocation end_location_ptr 
)
static

Definition at line 2461 of file jvmti.c.

static jvmtiError GetMethodModifiers ( jvmtiEnv env,
jmethodID  method,
jint *  modifiers_ptr 
)
static

Definition at line 2338 of file jvmti.c.

static jvmtiError GetMethodName ( jvmtiEnv env,
jmethodID  method,
char **  name_ptr,
char **  signature_ptr,
char **  generic_ptr 
)
static

Definition at line 2273 of file jvmti.c.

static jvmtiError GetObjectHashCode ( jvmtiEnv env,
jobject  object,
jint *  hash_code_ptr 
)
static

Definition at line 2098 of file jvmti.c.

static jvmtiError GetObjectMonitorUsage ( jvmtiEnv env,
jobject  object,
jvmtiMonitorUsage info_ptr 
)
static

Definition at line 2122 of file jvmti.c.

static jvmtiError GetObjectSize ( jvmtiEnv env,
jobject  object,
jlong *  size_ptr 
)
static

Definition at line 4157 of file jvmti.c.

static jvmtiError GetObjectsWithTags ( jvmtiEnv env,
jint  tag_count,
const jlong *  tags,
jint *  count_ptr,
jobject **  object_result_ptr,
jlong **  tag_result_ptr 
)
static

Definition at line 3213 of file jvmti.c.

static jvmtiError GetOwnedMonitorInfo ( jvmtiEnv env,
jthread  thread,
jint *  owned_monitor_count_ptr,
jobject **  owned_monitors_ptr 
)
static

Definition at line 706 of file jvmti.c.

static jvmtiError GetPhase ( jvmtiEnv env,
jvmtiPhase phase_ptr 
)
static

Definition at line 3753 of file jvmti.c.

static jvmtiError GetPotentialCapabilities ( jvmtiEnv env,
jvmtiCapabilities capabilities_ptr 
)
static

Definition at line 3888 of file jvmti.c.

static jvmtiError GetSourceDebugExtension ( jvmtiEnv env,
jclass  klass,
char **  source_debug_extension_ptr 
)
static

Definition at line 2737 of file jvmti.c.

static jvmtiError GetSourceFileName ( jvmtiEnv env,
jclass  klass,
char **  source_name_ptr 
)
static

Definition at line 1864 of file jvmti.c.

static jvmtiError GetStackTrace ( jvmtiEnv env,
jthread  thread,
jint  start_depth,
jint  max_frame_count,
jvmtiFrameInfo frame_buffer,
jint *  count_ptr 
)
static

Definition at line 2847 of file jvmti.c.

static jvmtiError GetSystemProperties ( jvmtiEnv env,
jint *  count_ptr,
char ***  property_ptr 
)
static

Definition at line 3576 of file jvmti.c.

static jvmtiError GetSystemProperty ( jvmtiEnv env,
const char *  property,
char **  value_ptr 
)
static

Definition at line 3655 of file jvmti.c.

static jvmtiError GetTag ( jvmtiEnv env,
jobject  object,
jlong *  tag_ptr 
)
static

Definition at line 3066 of file jvmti.c.

static jvmtiError GetThreadCpuTime ( jvmtiEnv env,
jthread  thread,
jlong *  nanos_ptr 
)
static

Definition at line 3827 of file jvmti.c.

static jvmtiError GetThreadCpuTimerInfo ( jvmtiEnv env,
jvmtiTimerInfo info_ptr 
)
static

Definition at line 3808 of file jvmti.c.

static jvmtiError GetThreadGroupChildren ( jvmtiEnv env,
jthreadGroup  group,
jint *  thread_count_ptr,
jthread **  threads_ptr,
jint *  group_count_ptr,
jthreadGroup **  groups_ptr 
)
static

Definition at line 1012 of file jvmti.c.

static jvmtiError GetThreadGroupInfo ( jvmtiEnv env,
jthreadGroup  group,
jvmtiThreadGroupInfo info_ptr 
)
static

Definition at line 972 of file jvmti.c.

static jvmtiError GetThreadInfo ( jvmtiEnv env,
jthread  t,
jvmtiThreadInfo info_ptr 
)
static

Definition at line 677 of file jvmti.c.

static jvmtiError GetThreadListStackTraces ( jvmtiEnv env,
jint  thread_count,
const jthread thread_list,
jint  max_frame_count,
jvmtiStackInfo **  stack_info_ptr 
)
static

Definition at line 2899 of file jvmti.c.

static jvmtiError GetThreadLocalStorage ( jvmtiEnv env,
jthread  thread,
void **  data_ptr 
)
static

Definition at line 2975 of file jvmti.c.

static jvmtiError GetThreadState ( jvmtiEnv env,
jthread  thread,
jint *  thread_state_ptr 
)
static

Definition at line 1126 of file jvmti.c.

static jvmtiError GetTime ( jvmtiEnv env,
jlong *  nanos_ptr 
)
static

Definition at line 3863 of file jvmti.c.

static jvmtiError GetTimerInfo ( jvmtiEnv env,
jvmtiTimerInfo info_ptr 
)
static

Definition at line 3844 of file jvmti.c.

static jvmtiError GetTopThreadGroups ( jvmtiEnv env,
jint *  group_count_ptr,
jthreadGroup **  groups_ptr 
)
static

Definition at line 909 of file jvmti.c.

static jvmtiError GetVersionNumber ( jvmtiEnv env,
jint *  version_ptr 
)
static

Definition at line 2702 of file jvmti.c.

static jvmtiError InterruptThread ( jvmtiEnv env,
jthread  thread 
)
static

Definition at line 647 of file jvmti.c.

static jvmtiError IsArrayClass ( jvmtiEnv env,
jclass  klass,
jboolean *  is_array_class_ptr 
)
static

Definition at line 2051 of file jvmti.c.

static jvmtiError IsFieldSynthetic ( jvmtiEnv env,
jclass  klass,
jfieldID  field,
jboolean *  is_synthetic_ptr 
)
static

Definition at line 2251 of file jvmti.c.

static jvmtiError IsInterface ( jvmtiEnv env,
jclass  klass,
jboolean *  is_interface_ptr 
)
static

Definition at line 2029 of file jvmti.c.

static jvmtiError IsMethodNative ( jvmtiEnv env,
jmethodID  method,
jboolean *  is_native_ptr 
)
static

Definition at line 2561 of file jvmti.c.

static jvmtiError IsMethodObsolete ( jvmtiEnv env,
jmethodID  method,
jboolean *  is_obsolete_ptr 
)
static

Definition at line 2758 of file jvmti.c.

static jvmtiError IsMethodSynthetic ( jvmtiEnv env,
jmethodID  method,
jboolean *  is_synthetic_ptr 
)
static

Definition at line 2588 of file jvmti.c.

static jvmtiError IterateOverHeap ( jvmtiEnv env,
jvmtiHeapObjectFilter  object_filter,
jvmtiHeapObjectCallback  heap_object_callback,
void user_data 
)
static

Definition at line 3170 of file jvmti.c.

static jvmtiError IterateOverInstancesOfClass ( jvmtiEnv env,
jclass  klass,
jvmtiHeapObjectFilter  object_filter,
jvmtiHeapObjectCallback  heap_object_callback,
void user_data 
)
static

Definition at line 3191 of file jvmti.c.

static jvmtiError IterateOverObjectsReachableFromObject ( jvmtiEnv env,
jobject  object,
jvmtiObjectReferenceCallback  object_reference_callback,
void user_data 
)
static

Definition at line 3124 of file jvmti.c.

static jvmtiError IterateOverReachableObjects ( jvmtiEnv env,
jvmtiHeapRootCallback  heap_root_callback,
jvmtiStackReferenceCallback  stack_ref_callback,
jvmtiObjectReferenceCallback  object_ref_callback,
void user_data 
)
static

Definition at line 3146 of file jvmti.c.

void jvmti_agentload ( char *  opt_arg,
bool  agentbypath,
lt_dlhandle *  handle,
char **  libname 
)

Definition at line 4465 of file jvmti.c.

void jvmti_agentunload ( )

Definition at line 4533 of file jvmti.c.

void jvmti_fireEvent ( genericEventData d)

Definition at line 402 of file jvmti.c.

jvmtiEnv* jvmti_new_environment ( )

Definition at line 4429 of file jvmti.c.

void jvmti_set_phase ( jvmtiPhase  p)

Definition at line 4386 of file jvmti.c.

static jvmtiError NotifyFramePop ( jvmtiEnv env,
jthread  thread,
jint  depth 
)
static

Definition at line 1227 of file jvmti.c.

static jvmtiError PopFrame ( jvmtiEnv env,
jthread  thread 
)
static

Definition at line 2661 of file jvmti.c.

static jvmtiError RawMonitorEnter ( jvmtiEnv env,
jrawMonitorID  monitor 
)
static

Definition at line 1504 of file jvmti.c.

static jvmtiError RawMonitorExit ( jvmtiEnv env,
jrawMonitorID  monitor 
)
static

Definition at line 1526 of file jvmti.c.

static jvmtiError RawMonitorNotify ( jvmtiEnv env,
jrawMonitorID  monitor 
)
static

Definition at line 1581 of file jvmti.c.

static jvmtiError RawMonitorNotifyAll ( jvmtiEnv env,
jrawMonitorID  monitor 
)
static

Definition at line 1607 of file jvmti.c.

static jvmtiError RawMonitorWait ( jvmtiEnv env,
jrawMonitorID  monitor,
jlong  millis 
)
static

Definition at line 1552 of file jvmti.c.

static jvmtiError RedefineClasses ( jvmtiEnv env,
jint  class_count,
const jvmtiClassDefinition class_definitions 
)
static

Definition at line 2680 of file jvmti.c.

static jvmtiError RelinquishCapabilities ( jvmtiEnv env,
const jvmtiCapabilities capabilities_ptr 
)
static

Definition at line 3983 of file jvmti.c.

static jvmtiError ResumeThread ( jvmtiEnv env,
jthread  thread 
)
static

Definition at line 600 of file jvmti.c.

static jvmtiError ResumeThreadList ( jvmtiEnv env,
jint  request_count,
const jthread request_list,
jvmtiError results 
)
static

Definition at line 2819 of file jvmti.c.

static jvmtiError RunAgentThread ( jvmtiEnv env,
jthread  thread,
jvmtiStartFunction  proc,
const void arg,
jint  priority 
)
static

Definition at line 856 of file jvmti.c.

static jvmtiError SetBreakpoint ( jvmtiEnv env,
jmethodID  method,
jlocation  location 
)
static

Definition at line 1633 of file jvmti.c.

static jvmtiError SetEnvironmentLocalStorage ( jvmtiEnv env,
const void data 
)
static

Definition at line 4082 of file jvmti.c.

static jvmtiError SetEventCallbacks ( jvmtiEnv env,
const jvmtiEventCallbacks callbacks,
jint  size_of_callbacks 
)
static

Definition at line 3280 of file jvmti.c.

static jvmtiError SetEventNotificationMode ( jvmtiEnv env,
jvmtiEventMode  mode,
jvmtiEvent  event_type,
jthread  event_thread,
  ... 
)
static

Definition at line 424 of file jvmti.c.

static jvmtiError SetExtensionEventCallback ( jvmtiEnv env,
jint  extension_event_index,
jvmtiExtensionEvent  callback 
)
static

Definition at line 3379 of file jvmti.c.

static jvmtiError SetFieldAccessWatch ( jvmtiEnv env,
jclass  klass,
jfieldID  field 
)
static

Definition at line 1672 of file jvmti.c.

static jvmtiError SetFieldModificationWatch ( jvmtiEnv env,
jclass  klass,
jfieldID  field 
)
static

Definition at line 1710 of file jvmti.c.

static jvmtiError SetJNIFunctionTable ( jvmtiEnv env,
const jniNativeInterface function_table 
)
static

Definition at line 3234 of file jvmti.c.

static jvmtiError SetLocalDouble ( jvmtiEnv env,
jthread  thread,
jint  depth,
jint  slot,
jdouble  value 
)
static

Definition at line 1422 of file jvmti.c.

static jvmtiError SetLocalFloat ( jvmtiEnv env,
jthread  thread,
jint  depth,
jint  slot,
jfloat  value 
)
static

Definition at line 1402 of file jvmti.c.

static jvmtiError SetLocalInt ( jvmtiEnv env,
jthread  thread,
jint  depth,
jint  slot,
jint  value 
)
static

Definition at line 1362 of file jvmti.c.

static jvmtiError SetLocalLong ( jvmtiEnv env,
jthread  thread,
jint  depth,
jint  slot,
jlong  value 
)
static

Definition at line 1382 of file jvmti.c.

static jvmtiError SetLocalObject ( jvmtiEnv env,
jthread  thread,
jint  depth,
jint  slot,
jobject  value 
)
static

Definition at line 1342 of file jvmti.c.

static jvmtiError SetSystemProperty ( jvmtiEnv env,
const char *  property,
const char *  value 
)
static

Definition at line 3707 of file jvmti.c.

static jvmtiError SetTag ( jvmtiEnv env,
jobject  object,
jlong  tag 
)
static

Definition at line 3085 of file jvmti.c.

jvmtiError SetThreadLocalStorage ( jvmtiEnv jenv,
jthread  thread,
const void data 
)

Definition at line 3016 of file jvmti.c.

static jvmtiError SetVerboseFlag ( jvmtiEnv env,
jvmtiVerboseFlag  flag,
jboolean  value 
)
static

Definition at line 4128 of file jvmti.c.

static jvmtiError StopThread ( jvmtiEnv env,
jthread  thread,
jobject  exception 
)
static

Definition at line 627 of file jvmti.c.

static jvmtiError SuspendThread ( jvmtiEnv env,
jthread  thread 
)
static

Definition at line 574 of file jvmti.c.

static jvmtiError SuspendThreadList ( jvmtiEnv env,
jint  request_count,
const jthread request_list,
jvmtiError results 
)
static

Definition at line 2779 of file jvmti.c.

static void* threadstartup ( void t)
static

Definition at line 842 of file jvmti.c.

Variable Documentation

struct JNIInvokeInterface _Jv_JNIInvokeInterface

Definition at line 3841 of file jni.cpp.

mutex_t dbgcomlock

Definition at line 79 of file jvmti.c.

environment* envs =NULL
static

Definition at line 78 of file jvmti.c.

static jvmtiCapabilities JVMTI_Capabilities
static

Definition at line 111 of file jvmti.c.

static struct jvmtiEnv_struct JVMTI_EnvTable
static

Definition at line 110 of file jvmti.c.

jvmtiPhase phase
static

Definition at line 83 of file jvmti.c.

lt_ptr unload
static

Definition at line 112 of file jvmti.c.