From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5DEF6C38BF9 for ; Mon, 24 Feb 2020 22:02:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2DD552176D for ; Mon, 24 Feb 2020 22:02:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728286AbgBXWCf (ORCPT ); Mon, 24 Feb 2020 17:02:35 -0500 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 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 21B6F20CC7; Mon, 24 Feb 2020 22:02:33 +0000 (UTC) Date: Mon, 24 Feb 2020 17:02:31 -0500 From: Steven Rostedt 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 Subject: Re: [PATCH v4 05/27] x86: Replace ist_enter() with nmi_enter() Message-ID: <20200224170231.3807931d@gandalf.local.home> In-Reply-To: <20200224213139.GO11457@worktop.programming.kicks-ass.net> 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> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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