I am using JVMPI with SUN JDK1.4.2 on linux to profile JVM execution.
I can successfully intercept the CLASS_LOAD, UNLOAD, METHOD_ENTRY,
EXIT and other events. However, it seems the same callback handler for
the JVMPI_EVENT_INS TRUCTION_START never got called.
My command line to run it (code compiled into libjprof.so) is:
java -Xrunjprof -Xint hello
Has anyone successfully used the INSTRUCTION_STA RT event to
trace the bytecode execution? The event is listed in jvmpi.h from the
JDK and I also tried several other versions, but none worked.
Thanks a lot for any help.
John