From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Rostedt Subject: Re: [PATCH v4 05/27] x86: Replace ist_enter() with nmi_enter() Date: Wed, 26 Feb 2020 10:20:31 -0500 Message-ID: <20200226102031.15664d19@gandalf.local.home> References: <20200221133416.777099322@infradead.org> <20200221134215.328642621@infradead.org> <20200221202246.GA14897@hirez.programming.kicks-ass.net> <20200224104346.GJ14946@hirez.programming.kicks-ass.net> <20200224112708.4f307ba3@gandalf.local.home> <20200224163409.GJ18400@hirez.programming.kicks-ass.net> <20200224114754.0fb798c1@gandalf.local.home> <20200224213139.GO11457@worktop.programming.kicks-ass.net> <20200224170231.3807931d@gandalf.local.home> <20200226102758.GV18400@hirez.programming.kicks-ass.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from mail.kernel.org ([198.145.29.99]:58338 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727023AbgBZPUe (ORCPT ); Wed, 26 Feb 2020 10:20:34 -0500 In-Reply-To: <20200226102758.GV18400@hirez.programming.kicks-ass.net> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Peter Zijlstra Cc: Andy Lutomirski , LKML , linux-arch , Ingo Molnar , Joel Fernandes , Greg KH , gustavo@embeddedor.com, Thomas Gleixner , paulmck@kernel.org, Josh Triplett , Mathieu Desnoyers , Lai Jiangshan , Tony Luck , Frederic Weisbecker , Dan Carpenter , Masami Hiramatsu On Wed, 26 Feb 2020 11:27:58 +0100 Peter Zijlstra wrote: > On Mon, Feb 24, 2020 at 05:02:31PM -0500, Steven Rostedt wrote: > > > The other is for the hwlat detector that measures the time it was in an > > NMI, as NMIs appear as a hardware latency too. > > Yeah,.. I hate that one. But I ended up with this patch. > > And yes, I know some of those notrace annotations are strictly > unnessecary due to Makefile crap, but having them is _SO_ much easier. > > --- > Subject: x86,tracing: Robustify ftrace_nmi_enter() > From: Peter Zijlstra > Date: Mon Feb 24 23:40:29 CET 2020 > > ftrace_nmi_enter() > trace_hwlat_callback() > trace_clock_local() > sched_clock() > paravirt_sched_clock() > native_sched_clock() > > All must not be traced or kprobed, it will be called from do_debug() > before the kprobe handler. > Acked-by: Steven Rostedt (VMware) -- Steve > Signed-off-by: Peter Zijlstra (Intel) > --- > arch/x86/include/asm/paravirt.h | 2 +- > arch/x86/kernel/tsc.c | 7 +++++-- > include/linux/ftrace_irq.h | 4 ++-- > kernel/trace/trace_clock.c | 2 ++ > kernel/trace/trace_hwlat.c | 4 +++- > 5 files changed, 13 insertions(+), 6 deletions(-) >