Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4381580imw; Tue, 12 Jul 2022 07:04:50 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s4OyKHAJwF5grwHQGAgJVnVb8dtSWn5UAVNYLFxESykSBSZnuLwpXI0TRr59AvwEJ7EOB/ X-Received: by 2002:a63:4081:0:b0:405:4f9:e802 with SMTP id n123-20020a634081000000b0040504f9e802mr21044585pga.211.1657634690013; Tue, 12 Jul 2022 07:04:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657634690; cv=none; d=google.com; s=arc-20160816; b=yteIIUdm+jRWxSLyGr4t8v33s7gEBOt8RQ/LYbzlC9BelP8NPWX2P1HMxd35yeQ1a9 og6Y+ARZXqmRgrmRMYEmBfUueI2Cc+d1O64Vm3GloAe9szAmzI+D6amm8O3rRXnwCDW8 DYTQ5lcup4vL5JcIjwMmuflYL7gO11yxB/a2sKnZCY47jOoSmD1iL6pUXmVcRuhJIadh nj5Ri8/CeuUR+yTTO/gzSwgXOZ76IzRAenojzMxPqJKfV0b9YAPOZ1pHULwQHcX0oGAD tdVYWgFrny2Eqv1VfzOK5lsg3wrFumZ+P1CEgQhwwWetAsb3lgrlOz1dmM44jgpxTmGq 1wSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=XyBivkrYxls+hwJZZJSbVJMoMyVPSC3kNuzDk5MDXcg=; b=lidAKEacIFJCjTsyceFhmUtVxnDSaGphtflZp60LLWYHeT6v1GJs/RDA4vwWF2vhKD Vafkx1a+qC4UfFYsDX8cLEWBFejmfFa8U+rtBJPJewnM8JW4LW00O8hIdLDyjpa7yGQq vYj5nqrJ+VfdtywYySkxQuEHgpSOqlHA22x9ILBM5rGDuOTTnBke7Wzlxx09XBArswvp 78thI3xlEb7vlLAg8TSDFcZMqlxKatWMMaAWsZphd1LRvcnrUToUPrWXJ2+sF/jfxVnM gc7NN4+CWdk3fSDNXddxC/L1ejMeJOKxjhSGsGvWBBQ7+sZLIhLhN/9mVAA6p9VdJhjm hfRg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m4-20020a1709026bc400b00158643c240asi12479891plt.87.2022.07.12.07.04.16; Tue, 12 Jul 2022 07:04:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232324AbiGLNjv (ORCPT + 99 others); Tue, 12 Jul 2022 09:39:51 -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 X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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