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: Mon, 24 Feb 2020 17:02:31 -0500 Message-ID: <20200224170231.3807931d@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> 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]:43188 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726980AbgBXWCf (ORCPT ); Mon, 24 Feb 2020 17:02:35 -0500 In-Reply-To: <20200224213139.GO11457@worktop.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 Mon, 24 Feb 2020 22:31:39 +0100 Peter Zijlstra wrote: > > Just want to confirm that printk_nmi_enter(), lockdep_off(), > > and ftrace_nmi_enter() are all marked fully with NOKPROBE. > > *sigh*, right you are, I only looked at notrace, not nokprobe. > > In particular the ftrace one is a bit off a mess, let me sort through > that. ftrace_nmi_enter() has two purposes. One, for archs that need to deal with NMIs while they still use stop machine. Although, it appears sh is the only arch that does that. I can look to see if it can be ripped out. The other is for the hwlat detector that measures the time it was in an NMI, as NMIs appear as a hardware latency too. -- Steve