Re: question on FSL_EMB perf

2015-06-10 Thread Michael Ellerman
On Wed, 2015-06-10 at 13:41 +0200, Peter Zijlstra wrote: > Hi Mike, Ben, > > I just noticed: > > arch/powerpc/Kconfig: select HAVE_PERF_EVENTS_NMI if PPC64 We actually only added that recently, in c54b2bf1b5e9 "powerpc: Add ppc64 hard lockup detector support". AFAICS it doesn't actually have

Re: question on FSL_EMB perf

2015-06-10 Thread Scott Wood
On Wed, 2015-06-10 at 23:14 +0200, Peter Zijlstra wrote: > On Wed, 2015-06-10 at 15:13 -0500, Scott Wood wrote: > > > What sort of "nesting nonsense" would we get on ppc32? I wasn't > > trying to say that the pseudo-NMIs didn't count -- I was pointing > > out > > that we don't even have that o

Re: question on FSL_EMB perf

2015-06-10 Thread Peter Zijlstra
On Wed, 2015-06-10 at 15:13 -0500, Scott Wood wrote: > What sort of "nesting nonsense" would we get on ppc32? I wasn't > trying to say that the pseudo-NMIs didn't count -- I was pointing out > that we don't even have that on ppc32. Oh, I was not aware ppc32 did not have that. > > # git grep n

Re: question on FSL_EMB perf

2015-06-10 Thread Scott Wood
On Wed, 2015-06-10 at 21:27 +0200, Peter Zijlstra wrote: > On Wed, 2015-06-10 at 14:17 -0500, Scott Wood wrote: > > On Wed, 2015-06-10 at 13:41 +0200, Peter Zijlstra wrote: > > > Hi Mike, Ben, > > > > > > I just noticed: > > > > > > arch/powerpc/Kconfig: select HAVE_PERF_EVENTS_NMI if PPC64 > >

Re: question on FSL_EMB perf

2015-06-10 Thread Peter Zijlstra
On Wed, 2015-06-10 at 14:17 -0500, Scott Wood wrote: > On Wed, 2015-06-10 at 13:41 +0200, Peter Zijlstra wrote: > > Hi Mike, Ben, > > > > I just noticed: > > > > arch/powerpc/Kconfig: select HAVE_PERF_EVENTS_NMI if PPC64 > > > > But can't ppc32 have FSL_EMB perf? > > Yes, but it doesn't use N

Re: question on FSL_EMB perf

2015-06-10 Thread Scott Wood
On Wed, 2015-06-10 at 13:41 +0200, Peter Zijlstra wrote: > Hi Mike, Ben, > > I just noticed: > > arch/powerpc/Kconfig: select HAVE_PERF_EVENTS_NMI if PPC64 > > But can't ppc32 have FSL_EMB perf? Yes, but it doesn't use NMIs. ppc64 has lazy interrupt disabling which functions as a pseudo-NMI