How to communicate with jvmti agent attached on a running JVM
I wanted to know how would I communicate with the jvmti agent I attached on a running JVM using attach API. When I say communicate ,here's what I meant : I want to call native functions located on my jvmti agent , theses function will return me data (like field values) of the running JVM that I "infected" earlier with the agent. Here's the agent; I did not add the native functions yet: #include <jvmti.h> JNIEXPORT jint JNICALL Agent_OnAttach(JavaVM* vm, char* options, void* reserved); jvmtiEnv* create_jvmti_env(JavaVM* vm); JNIEnv* create_jni_env(JavaVM* vm); void init_jvmti_capabilities