Re: PERF_EVENT_IOC_SET_OUTPUT

2013-10-07 Thread Peter Zijlstra
On Thu, Oct 03, 2013 at 08:43:51AM +0200, Ingo Molnar wrote: > If you find time to send an updated version that boots then I can try to > trace it to figure out where it fails, if it still fails. Can you give the below a spin? --- Subject: perf: Fix the perf context switch optimization From: Pet

Re: PERF_EVENT_IOC_SET_OUTPUT

2013-10-02 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Wed, Oct 02, 2013 at 02:29:01PM +0200, Ingo Molnar wrote: > > > > Btw., this does not seem to be working very well when the perf context is > > inherited: > > https://lkml.org/lkml/2011/7/21/124 > > Never figured that one out :-( Hm, maybe the various fixes over

Re: PERF_EVENT_IOC_SET_OUTPUT

2013-10-02 Thread Peter Zijlstra
On Wed, Oct 02, 2013 at 02:29:01PM +0200, Ingo Molnar wrote: > > Btw., this does not seem to be working very well when the perf context is > inherited: https://lkml.org/lkml/2011/7/21/124 Never figured that one out :-( -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" i

Re: PERF_EVENT_IOC_SET_OUTPUT

2013-10-02 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Wed, Oct 02, 2013 at 12:29:56PM +0200, Frederic Weisbecker wrote: > > On Wed, Oct 02, 2013 at 12:03:50PM +0200, Peter Zijlstra wrote: > > > On Tue, Oct 01, 2013 at 10:11:56PM +0300, Adrian Hunter wrote: > > > > Hi > > > > > > > > It does not seem possible to use set

Re: PERF_EVENT_IOC_SET_OUTPUT

2013-10-02 Thread Frederic Weisbecker
On Wed, Oct 02, 2013 at 01:27:30PM +0200, Peter Zijlstra wrote: > On Wed, Oct 02, 2013 at 12:29:56PM +0200, Frederic Weisbecker wrote: > > On Wed, Oct 02, 2013 at 12:03:50PM +0200, Peter Zijlstra wrote: > > > On Tue, Oct 01, 2013 at 10:11:56PM +0300, Adrian Hunter wrote: > > > > Hi > > > > > > > >

Re: PERF_EVENT_IOC_SET_OUTPUT

2013-10-02 Thread Peter Zijlstra
On Wed, Oct 02, 2013 at 12:29:56PM +0200, Frederic Weisbecker wrote: > On Wed, Oct 02, 2013 at 12:03:50PM +0200, Peter Zijlstra wrote: > > On Tue, Oct 01, 2013 at 10:11:56PM +0300, Adrian Hunter wrote: > > > Hi > > > > > > It does not seem possible to use set-output between > > > task contexts of

Re: PERF_EVENT_IOC_SET_OUTPUT

2013-10-02 Thread Frederic Weisbecker
On Wed, Oct 02, 2013 at 12:03:50PM +0200, Peter Zijlstra wrote: > On Tue, Oct 01, 2013 at 10:11:56PM +0300, Adrian Hunter wrote: > > Hi > > > > It does not seem possible to use set-output between > > task contexts of different types (e.g. a software event > > to a hardware event) > > > > If you l

Re: PERF_EVENT_IOC_SET_OUTPUT

2013-10-02 Thread Peter Zijlstra
On Tue, Oct 01, 2013 at 10:11:56PM +0300, Adrian Hunter wrote: > Hi > > It does not seem possible to use set-output between > task contexts of different types (e.g. a software event > to a hardware event) > > If you look at perf_event_set_output(): > > /* >* If its not a pe

PERF_EVENT_IOC_SET_OUTPUT

2013-10-01 Thread Adrian Hunter
Hi It does not seem possible to use set-output between task contexts of different types (e.g. a software event to a hardware event) If you look at perf_event_set_output(): /* * If its not a per-cpu rb, it must be the same task. */ if (output_event->cpu