Hi Maynard, Thanks for your suggestion. Right, I have been using oprofile for a while. The reason I need libpfm specifically is when using oprofile in a virtual machine with PMC already exported by the host, oprofile doesn’t list all events that I need properly. However, libpfm does seem to see those events, and I am able to use it to track performance of C programs on virtual machine so far…
Binh On Apr 2, 2014, at 11:14 AM, Maynard Johnson <mayna...@us.ibm.com> wrote: > On 04/01/2014 04:02 PM, Binh Pham wrote: >> Hi all, >> Sorry if this is a basic question (I searched in the list and don’t seem to >> find a hit). >> Has anyone had experience with using libpfm for Java applications as all >> examples in the perf_examples folder are in C? I would appreciate if someone >> can give me some pointer about that. >> >> Another approach I am thinking of is using a system wide monitoring like >> oprofile, and I went across pfmon but looks like it hasn’t been updated for >> long, and the most recent kernel that it supports is 2.6.x, which is really >> old. > Hi, Binh, > The oprofile project has included the "operf" tool since the August 2012 > release. This tool is capable of profiling either system-wide or > per-process, and has the Java JIT support you are apparently aware of > already. If you build oprofile yourself, then getting the Java JIT support > built and set up right does take a few extra steps (which are documented in > Chapter 1, sections 5 and 7 of > http://oprofile.sourceforge.net/doc/index.html). If the Linux distro you're > running on is new enough to have oprofile 0.9.8 or newer, then it would be > easier to install the distro-provided oprofile. Be aware that most distros > have a separate package for installing the oprofile Java agent libraries, > which are needed for the JIT support. Package names vary between distros, so > just search for all packages related to oprofile. > > If you have questions about oprofile, feel free to post them to the oprofile > mailing list (https://lists.sourceforge.net/lists/listinfo/oprofile-list). > > -Maynard >> >> Thanks in advance for your help, >> Binh >> ------------------------------------------------------------------------------ >> _______________________________________________ >> perfmon2-devel mailing list >> perfmon2-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/perfmon2-devel >> > ------------------------------------------------------------------------------ _______________________________________________ perfmon2-devel mailing list perfmon2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfmon2-devel