Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1575431rwb; Thu, 15 Dec 2022 11:49:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Y0Q04KrUt5Njj1vRzcLAQrqTfS6ofQtzIIq9tVjE2fP39/VXqRKPFJO6J0ZfQDEuNl/Jc X-Received: by 2002:a05:6a00:21c5:b0:566:94d0:8c8d with SMTP id t5-20020a056a0021c500b0056694d08c8dmr37270196pfj.17.1671133759058; Thu, 15 Dec 2022 11:49:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671133759; cv=none; d=google.com; s=arc-20160816; b=JC8swHCcnwIP2SXJxE5KbJYqPo+qpWDfd3Zs7c5jrBgKpLgWCZivrKxfVKdqtP0BXT KpHKEkEmjzYJE76ZH7tBqcRaP+mtrAMuNH4JC56QWC0FHF9vOBA2BAmR5o9wil3bsAoV y3aeLLUL47pOdYU30nD3WAppY0UUy7zEQTZowyqbFE9KypuMhaaalxCNvyAOyuHY4AT6 e19wRN99HG+kdDeni7j889EhH+18E5mMAMta4NTDHHD7d9VrkGvKhKSA/YoD21TpSN+C 22wIBI7HR8OCw76UjzeQ6cMDacFGWZu1hFb3jg3pRWjnOUeEOq59NtXF27E21dFYPyEw 1sYA== 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=ZV8hqmy+I4xpLfPD99Rx1pvN2BGWnmYMjcydQlnCyqI=; b=fw15HkBcgzWahRpdzub6KHSfsXTzy41/E4nAi3QGrS8UVydgSdtLoIj8SCTBTAWnqF oo18rTS0Bug2C3iVxw8AwGEgHqRT4qR+sXlHlU5gaohDW/caL1l+z5OYiruXQq6WWnD0 MfoRfJrXBYJtlIijalg8alhHrObapqyvGsxu8OOKoM9b1Ci1+afY4jY4LBfkVANWPUA6 I8nkPBlXuOsUzJNgeqjV/7zEHkqlmS7Is4tZpXbOLoi5HfJgJpDbC50bPEcKcJ7uPXI3 2Zv5+n2Si0jxxcdMUhN66Wj16hIQW64GsJPOpT3L+Sl3rQLTd7UGkOB3MCK27LBAorQ+ Sv0w== 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 dc8-20020a056a0035c800b00566a131ea12si3429475pfb.289.2022.12.15.11.49.10; Thu, 15 Dec 2022 11:49:19 -0800 (PST) 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 S229596AbiLOTMG (ORCPT + 69 others); Thu, 15 Dec 2022 14:12:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbiLOTLz (ORCPT ); Thu, 15 Dec 2022 14:11:55 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D07323169; Thu, 15 Dec 2022 11:11:50 -0800 (PST) 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 009B061EEB; Thu, 15 Dec 2022 19:11:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29543C433EF; Thu, 15 Dec 2022 19:11:48 +0000 (UTC) Date: Thu, 15 Dec 2022 14:11:46 -0500 From: Steven Rostedt To: Joel Fernandes Cc: LKML , Linux Trace Kernel , linux-acpi@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , Masami Hiramatsu , Brian Norris , Ross Zwisler , Ching-lin Yu Subject: Re: [RFC][PATCH] ACPI: tracing: Have ACPI debug go to tracing ring buffer Message-ID: <20221215141146.6ceb7cf2@gandalf.local.home> In-Reply-To: References: <20221214233106.69b2c01b@gandalf.local.home> 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 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 Thu, 15 Dec 2022 18:45:37 +0000 Joel Fernandes wrote: > Wouldn't it be better to also check trace_acpi_print_enabled() here in the > else if() condition, along with IS_ENABLED()? That way if the CONFIG is > enabled but the tracepoint is not enabled, at least the messages will go to > dmesg instead of skipped. I really don't want that. This was purposely done to be mutually exclusive. The reason I added this in the first place, is because too much enabled will render the system useless if printk() is used. After boot up, if I had enabled all debug events and then I were to disable the acpi tracepoint, it will likely render the system useless again if it were to switch over to printk. -- Steve