Re: [PATCH v2 RESEND] Hardware breakpoints: Invoke __perf_event_disable() if interrupts are already disabled

2012-07-31 Thread Frederic Weisbecker
On Wed, Jul 25, 2012 at 05:02:56PM +0530, Naveen N. Rao wrote: > >>>@@ -453,7 +453,15 @@ int modify_user_hw_breakpoint(struct perf_event > >>>*bp, struct perf_event_attr *att > >>> int old_type = bp->attr.bp_type; > >>> int err = 0; > >>> > >>>-perf_event_disable(bp); > >>>+/* > >

Re: [PATCH v2 RESEND] Hardware breakpoints: Invoke __perf_event_disable() if interrupts are already disabled

2012-07-25 Thread Naveen N. Rao
On 07/19/2012 04:46 PM, Naveen N. Rao wrote: On 07/18/2012 05:27 PM, Frederic Weisbecker wrote: On Wed, Jul 18, 2012 at 04:00:46PM +0530, Naveen N. Rao wrote: Please find v2 of the patch from Prasad, based on Peter Zijlstra's feedback. This applies on top of v3.5-rc7. This has been tested and f

Re: [PATCH v2 RESEND] Hardware breakpoints: Invoke __perf_event_disable() if interrupts are already disabled

2012-07-19 Thread Naveen N. Rao
On 07/18/2012 05:27 PM, Frederic Weisbecker wrote: On Wed, Jul 18, 2012 at 04:00:46PM +0530, Naveen N. Rao wrote: Please find v2 of the patch from Prasad, based on Peter Zijlstra's feedback. This applies on top of v3.5-rc7. This has been tested and found to work fine by Edjunior. Regards, Navee

Re: [PATCH v2 RESEND] Hardware breakpoints: Invoke __perf_event_disable() if interrupts are already disabled

2012-07-18 Thread Frederic Weisbecker
On Wed, Jul 18, 2012 at 04:00:46PM +0530, Naveen N. Rao wrote: > Please find v2 of the patch from Prasad, based on Peter Zijlstra's > feedback. This applies on top of v3.5-rc7. This has been tested and > found to work fine by Edjunior. > > Regards, > Naveen > __ > > From: K.Prasad > > While

[PATCH v2 RESEND] Hardware breakpoints: Invoke __perf_event_disable() if interrupts are already disabled

2012-07-18 Thread Naveen N. Rao
Please find v2 of the patch from Prasad, based on Peter Zijlstra's feedback. This applies on top of v3.5-rc7. This has been tested and found to work fine by Edjunior. Regards, Naveen __ From: K.Prasad While debugging a warning message on PowerPC while using hardware breakpoints, it was disc