Hi all,

I am trying to count instruction retired on user mode and on kernel mode. I
tried ix86arch::INSTRUCTION_RETIRED:u and ix86arch::INSTRUCTION_RETIRED:k,
but it did not worked. Both counters were returning the same value.

I tracked the code to figure out the problem. I found that supported_plm
was missing on pfmlib_intel_x86_arch.c.

After that I got reasonable values for the counters.

I am attaching a simple patch for this fix, please apply using:

patch -p0 < plm_x86.patch

Best,
--

Leonardo

Attachment: plm_x86.patch
Description: Binary data

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to