Re: [RFC 00/21] perf tools: Add toggling events support

2013-09-26 Thread Andi Kleen
> > It would be better to keep counting and just do RDPMC on the switch > > points, and then subtract for counting. For sampling could need a MSR > > write to enable/disable. Still somewhat expensive, but nowhere near as > > bad as a full switch. > > This is essentially an optimized event switc

Re: [RFC 00/21] perf tools: Add toggling events support

2013-09-26 Thread Jiri Olsa
On Thu, Sep 26, 2013 at 01:31:06PM +0200, Stephane Eranian wrote: > Jiri, > > On Wed, Sep 25, 2013 at 2:50 PM, Jiri Olsa wrote: > > hi, > > sending *RFC* for toggling events support. > > > > Adding perf interface that allows to create toggle events, which can > > enable or disable another event.

Re: [RFC 00/21] perf tools: Add toggling events support

2013-09-26 Thread Jiri Olsa
On Wed, Sep 25, 2013 at 12:12:16PM -0700, Andi Kleen wrote: > On Wed, Sep 25, 2013 at 02:50:26PM +0200, Jiri Olsa wrote: > > hi, > > sending *RFC* for toggling events support. > > > > Adding perf interface that allows to create toggle events, which can > > enable or disable another event. Whenever

Re: [RFC 00/21] perf tools: Add toggling events support

2013-09-26 Thread Stephane Eranian
Jiri, On Wed, Sep 25, 2013 at 2:50 PM, Jiri Olsa wrote: > hi, > sending *RFC* for toggling events support. > > Adding perf interface that allows to create toggle events, which can > enable or disable another event. Whenever the toggle event is triggered > (has overflow), it toggles another event

Re: [RFC 00/21] perf tools: Add toggling events support

2013-09-26 Thread Ingo Molnar
* Andi Kleen wrote: > On Wed, Sep 25, 2013 at 02:50:26PM +0200, Jiri Olsa wrote: > > hi, > > sending *RFC* for toggling events support. > > > > Adding perf interface that allows to create toggle events, which can > > enable or disable another event. Whenever the toggle event is triggered > > (h

Re: [RFC 00/21] perf tools: Add toggling events support

2013-09-25 Thread Andi Kleen
On Wed, Sep 25, 2013 at 02:50:26PM +0200, Jiri Olsa wrote: > hi, > sending *RFC* for toggling events support. > > Adding perf interface that allows to create toggle events, which can > enable or disable another event. Whenever the toggle event is triggered > (has overflow), it toggles another even

[RFC 00/21] perf tools: Add toggling events support

2013-09-25 Thread Jiri Olsa
hi, sending *RFC* for toggling events support. Adding perf interface that allows to create toggle events, which can enable or disable another event. Whenever the toggle event is triggered (has overflow), it toggles another event state and either starts or stops it. The goal is to be able to creat