Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4440812imw; Tue, 12 Jul 2022 08:01:42 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sR0F+ZT6+wraDLzYrwZWfmwniLOqskBeS+kuHWrokxCSxp/rPZVJJtL9uTphnvhJ7obejT X-Received: by 2002:a17:90b:4c87:b0:1f0:30fa:12bc with SMTP id my7-20020a17090b4c8700b001f030fa12bcmr4935960pjb.66.1657638102019; Tue, 12 Jul 2022 08:01:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657638102; cv=none; d=google.com; s=arc-20160816; b=Pfzqgxy+GXHKJhLi7IMiLkuJPuuOyd16sX3JqVPpJBinoE8FGFc2l4ltHbyS167orr OUc/V5FNw1BNxiW6uloB/+aW358CIo30dNN09HdKcs3h0P1zVys5/OHorrY+EwLCASR7 PigafUHlqZe+1KxL2cEeO39RabgJ0TuLv/2rNpHQElGZmpFJBOyawTAnfZ2kBsZ2/eS/ O8bgDNsntbd2XYNXEI8TMOdeI9QRk514k/Fuemd0M3anMkdWFFZZJGCQ9HzG5XlTf+o0 IZ+lrWyzcxkCSnrNpYomxIpriuKdzmRR1iiBaVdQRvbyAKEvrVn/a2qrkEg+y7RxhOHG lmjg== 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=iNdkETl2DbYNSfoo0oNyffpmXOZ2zdxUHRhLmFxPLCk=; b=lsnHgzcCGZR8r0XtZprfSj1xVH+AMmGuSg+sprkgtKXwto337BIGSfGm+eumRl4CE+ YHOGaQDFTXOyXzJEjcmHS75xBwK8HU3W7sSQq+TE36TipvZG3X6tmwH8uY8mZWW9Ubkh Fqfi/b4GDSPccAesYKo9bpa0+T8Zbbv4Fzs/2SddLWqGAZUFnnEF7xTURVoEJ5rRseFM u3nwSPc+7Tyfsi60r24Ofon9C+RHXvxMqftdHV/gmSV5Y7rVfiEJvZCDokqDxI4YFxha vjljzeZlBx977B1D+5sHUmEYi+AlKCmzmI1sSWTxV2N3tVGVnJ3igcdimtqLw4/OTka/ 6g+A== 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 b2-20020a170902b60200b0016c3f7f6e21si10535434pls.387.2022.07.12.08.01.16; Tue, 12 Jul 2022 08:01:42 -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 S233780AbiGLOyG (ORCPT + 99 others); Tue, 12 Jul 2022 10:54:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233629AbiGLOyB (ORCPT ); Tue, 12 Jul 2022 10:54:01 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5683E248DA for ; Tue, 12 Jul 2022 07:53:57 -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 dfw.source.kernel.org (Postfix) with ESMTPS id B7C0F61006 for ; Tue, 12 Jul 2022 14:53:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0597C3411C; Tue, 12 Jul 2022 14:53:54 +0000 (UTC) Date: Tue, 12 Jul 2022 10:53:53 -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: <20220712105353.08358450@gandalf.local.home> In-Reply-To: <20220712134916.GT1790663@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> <20220712093940.45012e47@gandalf.local.home> <20220712134916.GT1790663@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 06:49:16 -0700 "Paul E. McKenney" wrote: > > 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. > > As I understand it, code in such a place should be labeled noinstr. > Then the call to printk() would be complained about as an illegal > noinstr-to-non-noinstr call. > > But where exactly is that printk()? Perhaps the fix is to remove the _rcuidle() from trace_console_rcuidle(). If printk() can never be called from noinstr (aka RCU not watching). -- Steve