Programming program individual hardware CPU performance counters with desired hardware events
Hi, I searched a lot but was not able to find this information. What tool can i use to program individual hardware CPU performance counters with desired hardware events. For eg. say i want to program General Purpose Counter 3 on intel CPU to monitor Retired Instructions. Is this possible using Oprofile or Linux perf? If yes can you point me to the correct documentation or give an example on how to do this. If no is there any other tool available which is capable of going to that granularity. Thanks, UK
Hi.. On Tue, Feb 14, 2012 at 02:09, utsav kanani <utsavjkanani@gmail.com> wrote:
Is this possible using Oprofile or Linux perf? If yes can you point me to the correct documentation or give an example on how to do this.
yep, oprofile is your friend here. Oprofile website has the complete documentation. Also check its man page. -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
yep, oprofile is your friend here. Oprofile website has the complete documentation. Also check its man page.
But oprofile does not allow to program a particular counter. One can specify a performance event in oprofile but has no control on the counter that a performance event gets scheduled on. I want something where i can control the counter on which the performance events gets scheduled. Thanks, UK On Mon, Feb 13, 2012 at 7:52 PM, Mulyadi Santosa <mulyadi.santosa@gmail.com>wrote:
Hi..
On Tue, Feb 14, 2012 at 02:09, utsav kanani <utsavjkanani@gmail.com> wrote:
Is this possible using Oprofile or Linux perf? If yes can you point me to the correct documentation or give an example on how to do this.
yep, oprofile is your friend here. Oprofile website has the complete documentation. Also check its man page.
participants (2)
-
Mulyadi Santosa -
utsav kanani