I am trying to use the new operf with Java JVMTI agent. When I tried to run this I've got this error:
schan@thinkpadx1:~/oprofile-0.9.8$ /home/schan/oprofile/bin/operf java -agentpath:/home/schan/oprofile/lib/oprofile/libjvmti_oprofile.so -version
operf: Profiler started
libopagent: Jitdump agent directory /var/lib/oprofile/jitdump missing
libopagent: do opcontrol --setup or opcontrol --reset, first
Error: op_open_agent(): No such file or directory
Error occurred during initialization of VM
agent library failed to init: /home/schan/oprofile/lib/oprofile/libjvmti_oprofile.so
profiled app exited with the following status: 1
This only works after I run opcontol --reset which create the appropriate directory.
The use of opcontrol to create the JIT dump directory is not desirable because on some of the boxes that I don't have root access, I can use operf but not opcontrol.
It would be much more useful if we can use an alternative directory that doesn't requires root access to store the jit information.