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 88F63C4332F for ; Thu, 15 Dec 2022 19:12:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230274AbiLOTMG (ORCPT ); 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 Precedence: bulk List-ID: X-Mailing-List: linux-trace-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