From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Rostedt Subject: Re: [patch 1/3] kernel: local_irq_{save,restore}_nmi() Date: Tue, 06 Apr 2010 21:13:10 -0400 Message-ID: <1270602790.19685.15603.camel@gandalf.stny.rr.com> References: <20100406132807.698467930@chello.nl> <20100406133140.903644813@chello.nl> Reply-To: rostedt@goodmis.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: 7bit Return-path: Received: from hrndva-omtalb.mail.rr.com ([71.74.56.125]:64825 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932357Ab0DGBNN (ORCPT ); Tue, 6 Apr 2010 21:13:13 -0400 In-Reply-To: <20100406133140.903644813@chello.nl> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Peter Zijlstra Cc: mingo@elte.hu, David Miller , acme@redhat.com, paulus@samba.org, Mike Galbraith , Frederic Weisbecker , Thomas Gleixner , linux-kernel@vger.kernel.org, sparclinux@vger.kernel.org, linux-arch@vger.kernel.org On Tue, 2010-04-06 at 15:28 +0200, Peter Zijlstra wrote: > Index: linux-2.6/kernel/trace/trace_irqsoff.c > =================================================================== > --- linux-2.6.orig/kernel/trace/trace_irqsoff.c > +++ linux-2.6/kernel/trace/trace_irqsoff.c > @@ -316,6 +316,14 @@ void trace_hardirqs_off(void) > } > EXPORT_SYMBOL(trace_hardirqs_off); > > +void trace_hardirqs_off_no_nmi(void) > +{ > + WARN_ON_ONCE(in_nmi()); Should we do this for all archs? I can imagine a lot of warning reports coming in the near future. And they will be passing it towards me. -- Steve > + if (!preempt_trace() && irq_trace()) > + start_critical_timing(CALLER_ADDR0, CALLER_ADDR1); > +} > +EXPORT_SYMBOL(trace_hardirqs_off_no_nmi); > + > void trace_hardirqs_on_caller(unsigned long caller_addr) > { > if (!preempt_trace() && irq_trace()) > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/