kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Programming program individual hardware CPU performance counters with desired hardware events
@ 2012-02-13 19:09 utsav kanani
  2012-02-14  3:52 ` Mulyadi Santosa
  0 siblings, 1 reply; 3+ messages in thread
From: utsav kanani @ 2012-02-13 19:09 UTC (permalink / raw)
  To: kernelnewbies

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120213/ece81e3a/attachment.html 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Programming program individual hardware CPU performance counters with desired hardware events
  2012-02-13 19:09 Programming program individual hardware CPU performance counters with desired hardware events utsav kanani
@ 2012-02-14  3:52 ` Mulyadi Santosa
  2012-02-14 19:28   ` utsav kanani
  0 siblings, 1 reply; 3+ messages in thread
From: Mulyadi Santosa @ 2012-02-14  3:52 UTC (permalink / raw)
  To: kernelnewbies

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Programming program individual hardware CPU performance counters with desired hardware events
  2012-02-14  3:52 ` Mulyadi Santosa
@ 2012-02-14 19:28   ` utsav kanani
  0 siblings, 0 replies; 3+ messages in thread
From: utsav kanani @ 2012-02-14 19:28 UTC (permalink / raw)
  To: kernelnewbies

>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.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120214/4d8036ce/attachment.html 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-02-14 19:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-13 19:09 Programming program individual hardware CPU performance counters with desired hardware events utsav kanani
2012-02-14  3:52 ` Mulyadi Santosa
2012-02-14 19:28   ` utsav kanani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).