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 A6748C10F1E for ; Thu, 8 Dec 2022 23:42:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230267AbiLHXmb (ORCPT ); Thu, 8 Dec 2022 18:42:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230498AbiLHXmM (ORCPT ); Thu, 8 Dec 2022 18:42:12 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD4502DF3; Thu, 8 Dec 2022 15:39: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 ams.source.kernel.org (Postfix) with ESMTPS id 72781B8262B; Thu, 8 Dec 2022 23:39:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3800C433D2; Thu, 8 Dec 2022 23:39:46 +0000 (UTC) Date: Thu, 8 Dec 2022 18:39:45 -0500 From: Steven Rostedt To: Ross Zwisler Cc: LKML , Linux Trace Kernel , Masami Hiramatsu , Andrew Morton , Mathieu Desnoyers , paulmck@kernel.org, Joel Fernandes , Tom Zanussi Subject: Re: [PATCH v2] tracing: Add trace_trigger kernel command line option Message-ID: <20221208183945.1de18843@gandalf.local.home> In-Reply-To: References: <20221020210056.0d8d0a5b@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, 8 Dec 2022 15:27:07 -0700 Ross Zwisler wrote: > > +#ifdef CONFIG_HIST_TRIGGERS > > Can you help me understand why this is only available if > CONFIG_HIST_TRIGGERS is selected in the kernel config? AFAICT this > code doesn't depend on the histogram code, and the run-time selection > of triggers is usable without CONFIG_HIST_TRIGGERS. Good catch! I got confused, and only saw that as "CONFIG_TRIGGERS" and wasn't thinking that config was just for histogram triggers :-p Care to send a patch to fix it? Thanks Ross, -- Steve