Thanks for your remind, Corey. I'll downgrade the linux kernel to 2.6.30 if
I decide to code with perfmon. Basically I just wanna a tool that can help
me to collect the performance counter values by interval (more precisely, by
the retired instruction number, an typical event-based sampling), so I'll
search all the possible approaches before heading to explore the code of
perfmon. I am trying to use Intel Vtune Amplifier, unfortunately this tool
doesn't provide the function I need since the selected events are sampled at
different frequencies.

On Thu, Jul 7, 2011 at 5:12 PM, Corey Ashford
<cjash...@linux.vnet.ibm.com>wrote:

> On 07/06/2011 08:29 PM, Ying Zhang wrote:
> > Hi,
> >
> >     I've briefly looked through perfmon's document. It seems that
> > perfmon provides both time-based sampling and event-based sampling. In
> > the event-based sampling mode, a sampling is made when a preset event
> > reaches a specific threshold. I think this is exactly what I want. That
> > is, collect the counter values after every million instructions are
> > retired. Also, perfmon provides two options: --long-smpl-periods and
> > --short-smpl-periods. I believe these two options are related to the
> > sampling period setting. Can anyone generally explain how to do a
> > sampling in event-based mode?
> >
> >    Maybe this question is sort of silly, but please, I really have no
> > idea...
>
> I'd like to reiterate that if you want to use perfmon, you will have to
> downgrade the kernel that you are using to 2.6.30 or earlier.
>
> You can do event-based sampling with perf_events as well, but it's not
> trivial to describe in an email how to accomplish this with the
> perf_events kernel API.
>
> There is some information in /usr/include/linux/perf_event.h but perhaps
> not enough to be a HOW TO.  There's also some information here, but
> unfortunately it's more than a little out of date:
>
>
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=tools/perf/design.txt;h=bd0bb1b1279b8ec258cc40a231fc4a9d289abd96;hb=HEAD
>
> - Corey
>
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> perfmon2-devel mailing list
> perfmon2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/perfmon2-devel
>
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to