[perfmon2] [PATCH] perf: add support for per-event sampling period or frequency in perf record (v2)

2010-11-23 Thread Stephane Eranian
This patch allows specifying a per event sampling period or frequency. Up until now, the same sampling period or frequency was applied to all the events specified on the command line of perf record. A sampling period depends on the event, thus it is necessary to specify it per event. The per-even

Re: [perfmon2] How to reset sampling buffer before it overflows?

2010-11-23 Thread xudi
> 2010/11/22 : >> hi, >> >> I am writing my own app using the libpfm 3.10 API (interface v2.x) on a >> X86 system. >> >> I setup a sampling context for the target-process to sample every 1 >> million insts retired. Traditionally, I should wait for the buffer >> overflow message and process with th

Re: [perfmon2] [PATCH] perf: add support for per-event sampling period or frequency in perf record

2010-11-23 Thread Peter Zijlstra
On Tue, 2010-11-23 at 12:33 +0100, Stephane Eranian wrote: > > Forgot to say, that the reason I did it thru -c and -F was to maintain > backward compatibility. Right, we could keep the existing parameters to mean default values for those events that didn't specify anything.

Re: [perfmon2] [PATCH] perf: add support for per-event sampling period or frequency in perf record

2010-11-23 Thread Stephane Eranian
On Tue, Nov 23, 2010 at 12:33 PM, Stephane Eranian wrote: > On Tue, Nov 23, 2010 at 12:11 PM, Peter Zijlstra wrote: >> On Tue, 2010-11-23 at 11:45 +0200, Stephane Eranian wrote: >>> This patch allows specifying a per event sampling period or frequency. >>> Up until now, the same sampling period o

Re: [perfmon2] [PATCH] perf: add support for per-event sampling period or frequency in perf record

2010-11-23 Thread Stephane Eranian
On Tue, Nov 23, 2010 at 12:11 PM, Peter Zijlstra wrote: > On Tue, 2010-11-23 at 11:45 +0200, Stephane Eranian wrote: >> This patch allows specifying a per event sampling period or frequency. >> Up until now, the same sampling period or frequency was applied to all >> the events specified on the co

Re: [perfmon2] [PATCH] perf: add support for per-event sampling period or frequency in perf record

2010-11-23 Thread Peter Zijlstra
On Tue, 2010-11-23 at 11:45 +0200, Stephane Eranian wrote: > This patch allows specifying a per event sampling period or frequency. > Up until now, the same sampling period or frequency was applied to all > the events specified on the command line of perf record. A sampling > period depends on the

[perfmon2] [PATCH] perf: add support for per-event sampling period or frequency in perf record

2010-11-23 Thread Stephane Eranian
This patch allows specifying a per event sampling period or frequency. Up until now, the same sampling period or frequency was applied to all the events specified on the command line of perf record. A sampling period depends on the event, thus it is necessary to specify it per event. With this pa

Re: [perfmon2] How to reset sampling buffer before it overflows?

2010-11-23 Thread stephane eranian
2010/11/22 : > hi, > > I am writing my own app using the libpfm 3.10 API (interface v2.x) on a > X86 system. > > I setup a sampling context for the target-process to sample every 1 > million insts retired. Traditionally, I should wait for the buffer > overflow message and process with the sampling