Re: [perfmon2] [RFC][PATCH] perf_events: added new start/stop PMU callbacks

2010-02-08 Thread Stephane Eranian
On Mon, Feb 8, 2010 at 5:30 PM, Peter Zijlstra wrote: > On Mon, 2010-02-08 at 17:06 +0200, Stephane Eranian wrote: >>       In certain situations, the kernel may need to stop and start the >>       same event rapidly. The current PMU callbacks do not distinguish >>       between stop and release  

Re: [perfmon2] [RFC][PATCH] perf_events: added new start/stop PMU callbacks

2010-02-08 Thread Peter Zijlstra
On Mon, 2010-02-08 at 17:06 +0200, Stephane Eranian wrote: > In certain situations, the kernel may need to stop and start the > same event rapidly. The current PMU callbacks do not distinguish > between stop and release (i.e., stop + free the resource). Thus, > a counter ma

[perfmon2] [PATCH] perf_events: AMD event scheduling (v3)

2010-02-08 Thread Stephane Eranian
This patch adds correct AMD Northbridge event scheduling. It must be applied on top tip-x86 + hw_perf_enable() fix. NB events are events measuring L3 cache, Hypertransport traffic. They are identified by an event code >= 0xe0. They measure events on the Nor

[perfmon2] [RFC][PATCH] perf_events: added new start/stop PMU callbacks

2010-02-08 Thread Stephane Eranian
In certain situations, the kernel may need to stop and start the same event rapidly. The current PMU callbacks do not distinguish between stop and release (i.e., stop + free the resource). Thus, a counter may be released, then it will be immediately re-acquired.

[perfmon2] [PATCH] perf_events: support for Intel bus-cycles/unhalted_ref_cycles events

2010-02-08 Thread Stephane Eranian
On Intel Core, Nehalem, Atom, there are multiple events to count elapsed cycles: - unhalted_core_cycles: elapsed cycles, correlation to time not maintained with time when frequency scaling operates - unhalted_reference_cycles: elasped cycles, correlation

Re: [perfmon2] Unable to get asynchronous overflow notification

2010-02-08 Thread stephane eranian
On Mon, Feb 8, 2010 at 10:44 AM, J K Rai wrote: >> > I use perfmon2 with linux-2.6.30, libpfm-3.9 on intel >> xeon x5482. >> > >> > I am trying to get asynchronous overflow notification >> (instrn retired) in my controlling process, (for child >> process ls) by doing fcntl on perfmon2 context fd.

Re: [perfmon2] Unable to get asynchronous overflow notification

2010-02-08 Thread J K Rai
> > I use perfmon2 with linux-2.6.30, libpfm-3.9 on intel > xeon x5482. > > > > I am trying to get asynchronous overflow notification > (instrn retired) in my controlling process, (for child > process ls) by doing fcntl on perfmon2 context fd. (sampling > period = 1000) > > > > I do standard signal

Re: [perfmon2] Unable to get asynchronous overflow notification

2010-02-08 Thread stephane eranian
On Thu, Feb 4, 2010 at 1:45 PM, J K Rai wrote: > Hi > > I use perfmon2 with linux-2.6.30, libpfm-3.9 on intel xeon x5482. > > I am trying to get asynchronous overflow notification (instrn retired) in my > controlling process, (for child process ls) by doing fcntl on perfmon2 > context fd. (sampl