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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C0373C433EF for ; Tue, 12 Jul 2022 13:39:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232810AbiGLNjw (ORCPT ); Tue, 12 Jul 2022 09:39:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbiGLNjr (ORCPT ); Tue, 12 Jul 2022 09:39:47 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92EA7B523D for ; Tue, 12 Jul 2022 06:39:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4AACBB818CE for ; Tue, 12 Jul 2022 13:39:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B06EC3411C; Tue, 12 Jul 2022 13:39:42 +0000 (UTC) Date: Tue, 12 Jul 2022 09:39:40 -0400 From: Steven Rostedt To: "Paul E. McKenney" Cc: Marco Elver , John Ogness , Petr Mladek , Sergey Senozhatsky , linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, Thomas Gleixner , Johannes Berg , Alexander Potapenko , Dmitry Vyukov , Naresh Kamboju , Linux Kernel Functional Testing Subject: Re: [PATCH -printk] printk, tracing: fix console tracepoint Message-ID: <20220712093940.45012e47@gandalf.local.home> In-Reply-To: <20220712114954.GA3870114@paulmck-ThinkPad-P17-Gen-1> References: <20220503073844.4148944-1-elver@google.com> <20220711182918.338f000f@gandalf.local.home> <20220712002128.GQ1790663@paulmck-ThinkPad-P17-Gen-1> <20220711205319.1aa0d875@gandalf.local.home> <20220712025701.GS1790663@paulmck-ThinkPad-P17-Gen-1> <20220712114954.GA3870114@paulmck-ThinkPad-P17-Gen-1> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 12 Jul 2022 04:49:54 -0700 "Paul E. McKenney" wrote: > > But a quick fix that stopped the bleeding and allowed printk() to > > progress would be useful in the short term, regardless of whether or > > not in the longer term it makes sense to make srcu_read_lock_trace() > > and srcu_read_unlock_trace() NMI-safe. > > Except that doesn't rcuidle && in_nmi() imply a misplaced trace event? > > Isn't it still the case that you are not supposed to have trace events > in NMI handlers before RCU is watching or after it is no longer watching, > just as for entry/exit code in general? Once in the body of the handler, > rcuidle should be false and all should be well. > > Or am I missing something here? I guess the question is, can we have printk() in such a place? Because this tracepoint is attached to printk and where ever printk is done so is this tracepoint. -- Steve