Yes, this is possible - I presume you want to sample counters on an x86 box.
You can look up a few examples at
http://perfmon2.sourceforge.net/pfmon_usersguide.html

-pradeep

On Wed, Jul 6, 2011 at 11:05 PM, Ying Zhang <yzha...@tigers.lsu.edu> wrote:
> Hi all,
>    I am a newbie to perfmon (actually I have no experience in using this
> tool).
>    I am working on a project using hardware performance monitoring counters
> to analyze applications running on an Intel processor. I have not used any
> tools such as Vtune or perfmon so far, but with my own program. In the
> current implementation, the counter values are read through a file under
> /proc (thus I need to create a proc_entry before the sampling and read the
> values to this file during execution), and the samplings are implemented by
> inserting a task into the delayed work queue. By doing this, I am able to
> read the performance counter values at fixed time intervals, say, once a
> second.
>   However, I want to read the counters in another way. Namely, rather than
> collect those counters every second, I would like to read them after every
> million instructions are executed. That is, read the counter values when 1M,
> 2M, 3M....instructions are executed. I have no clue on this change.
>   Therefore, I am wondering if perfmon provides an easy approach to carry
> out this kind of measurement (reading counters when 1M, 2M, 3M...
> instructions are retired). If the answer is positive, I'll switch to use
> perfmon and hope that anyone can tell me how to do that.
>   Any suggestions will be appreciated.
>   By the way, I am using Fedora 13 with kernel 2.6.33.
> Thanks,
> Ying Zhang
> ------------------------------------------------------------------------------
> 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