Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1910706rwb; Thu, 8 Dec 2022 17:22:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf6PhyfEflhJW4LxNFI3T9iNCQUuWCuPKf58eVByfTCTSInaFnrzrhcK0DUlZUuEQLT4RnU5 X-Received: by 2002:a17:902:e811:b0:189:d8fb:152d with SMTP id u17-20020a170902e81100b00189d8fb152dmr5379346plg.25.1670548969562; Thu, 08 Dec 2022 17:22:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670548969; cv=none; d=google.com; s=arc-20160816; b=NUOMFn42Ux2oMkuDlXLQQCbMte9W4Drkv/pgsHcGzy78FhDq5QJ9zuuCl4ursP6Dhv oltPnQfxOsSAEiWj3oYgNZdYowST2QJirHsaKuhDhiAVYDsRzfrCfrRUss2R5bKmRKbK I0/hxFkllTGZK5mspCrYrmAsFA/M6stMjo/X7mSyd3x/C/EWrjUOsar/n5uYRJRz0mtv dFlxCUfjC3hfAnMThJVpapmGJplhWBcyOzUcBL0UpjkCKi6QWvks62snx7AsmYb8P2rj V6TQhyPl0MQG72U95tl5FsNfEFyQZxRKGU16lfYMrx4ekiQHqGW8otHScl021+k35QVQ Ly9g== 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:date:subject:cc:to:from :dkim-signature; bh=LiyNuJAHf+GBcXEoDhMMGdej4ZIve975Owt12C1xWOY=; b=Pe+8Q2tIXW8+K74Xew4bnYRDVe/AWqh2ncT+wODx1xOHteo6WmSCfJLiCmSJuNMCmL DMqcyMrhjUR0kkMZL230piE0xzzy0j7Er6pZoq1XzeClzq8RVnkooWZ3Bei7smHdiZBj IJ5glSPzxTNJ4wWqAPbT4CNAPGNbPpnPPutNzhTAZXf27+E0GO6WGsseH6MmqIGpA9tl xC4PNo0p7QtsNjuYJ/T9++6uvzFK42kndbfAs3E6ufriCWtTy38o7NvmeR2azBqiCsud 8lCSsY/a5Ix9NrL0cuSxKU52fnRzI7FP2O4aK8hdpWLkivjchzmheiIvUh7nXjwuPA3h w7sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="QIJA/Ivd"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 23-20020a630517000000b004700981177dsi109000pgf.528.2022.12.08.17.22.39; Thu, 08 Dec 2022 17:22:49 -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; dkim=pass header.i=@chromium.org header.s=google header.b="QIJA/Ivd"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229677AbiLIAdW (ORCPT + 73 others); Thu, 8 Dec 2022 19:33:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbiLIAdV (ORCPT ); Thu, 8 Dec 2022 19:33:21 -0500 Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 463716389 for ; Thu, 8 Dec 2022 16:33:20 -0800 (PST) Received: by mail-io1-xd2d.google.com with SMTP id p6so1257193iod.13 for ; Thu, 08 Dec 2022 16:33:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LiyNuJAHf+GBcXEoDhMMGdej4ZIve975Owt12C1xWOY=; b=QIJA/IvdxNtD2ifQjZjh1vWT8lgLixpDa6sH3oAOZ9zVR2ZMUFQ+mWHrF3Ja3Q2TxA ETo0epCN7yLRHcEZMMDhF72fqdZ8+qujQ+vUCJl7MhNWYLyJg+Anm4VUQm8+krvTosq2 1QG38jXV2jfCPIhKIEhZ4ufzypsRQeh9yOgf8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LiyNuJAHf+GBcXEoDhMMGdej4ZIve975Owt12C1xWOY=; b=WrMpgZCDcqavWX70mWFOAVCyi/DdHqOT6YVaVu8/DGtoicPqd02qwUohCfcoIlLviS TlcdkgrJ5NWVCQ3McEGtZWLZ9i7vA6wHGK0RNKo+7dPoLazy/rsWvvofVXlRQUbmPlsD WWzzwYK7d0ts0HzgSnFDopkYdeqhJhoLaIvAnLq2W3UHEXBihThtSbNVoYGJ2FkD36Pv CitFjjzOWzaxVdo1i/E1ylE+zm/lSUKg97uwh8lCEBGrpWOHQL39j6OicNBi1K7AnYgk NXe/Uhu91JpeX7O8NsbGL8cjyYhnCmgjcqFTtc7/VaDIsQZgD9TWfvT51AUq0DOxBtv3 PJRw== X-Gm-Message-State: ANoB5plzG8viATAX0JWhw9sB+jn7GNh2rG2jeywnM+GVpssYqlBej/AR yVSentjEtQBternKwdVinXmemA== X-Received: by 2002:a6b:b741:0:b0:6e0:353d:8c1c with SMTP id h62-20020a6bb741000000b006e0353d8c1cmr2171484iof.13.1670545999667; Thu, 08 Dec 2022 16:33:19 -0800 (PST) Received: from ravnica.bld.corp.google.com ([2620:15c:183:200:4662:6e7c:28a0:dd77]) by smtp.gmail.com with ESMTPSA id f27-20020a056602071b00b0067b75781af9sm56969iox.37.2022.12.08.16.33.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 16:33:19 -0800 (PST) From: Ross Zwisler X-Google-Original-From: Ross Zwisler To: Steven Rostedt Cc: Ross Zwisler , LKML , Linux Trace Kernel , Masami Hiramatsu , Andrew Morton , Mathieu Desnoyers , paulmck@kernel.org, Joel Fernandes , Tom Zanussi Subject: [PATCH] tracing: remove unnecessary trace_trigger ifdef Date: Thu, 8 Dec 2022 17:33:10 -0700 Message-Id: <20221209003310.1737039-1-zwisler@google.com> X-Mailer: git-send-email 2.39.0.rc1.256.g54fd8350bd-goog In-Reply-To: <20221208183945.1de18843@gandalf.local.home> References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 The trace_trigger command line option introduced by commit a01fdc897fa5 ("tracing: Add trace_trigger kernel command line option") doesn't need to depend on the CONFIG_HIST_TRIGGERS kernel config option. This code doesn't depend on the histogram code, and the run-time selection of triggers is usable without CONFIG_HIST_TRIGGERS. Fixes: a01fdc897fa5 ("tracing: Add trace_trigger kernel command line option") Signed-off-by: Ross Zwisler --- kernel/trace/trace_events.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index 3bfaf560ecc4..33e0b4f8ebe6 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c @@ -2796,7 +2796,6 @@ trace_create_new_event(struct trace_event_call *call, return file; } -#ifdef CONFIG_HIST_TRIGGERS #define MAX_BOOT_TRIGGERS 32 static struct boot_triggers { @@ -2832,7 +2831,6 @@ static __init int setup_trace_triggers(char *str) return 1; } __setup("trace_trigger=", setup_trace_triggers); -#endif /* Add an event to a trace directory */ static int @@ -2850,7 +2848,6 @@ __trace_add_new_event(struct trace_event_call *call, struct trace_array *tr) return event_define_fields(call); } -#ifdef CONFIG_HIST_TRIGGERS static void trace_early_triggers(struct trace_event_file *file, const char *name) { int ret; @@ -2868,9 +2865,6 @@ static void trace_early_triggers(struct trace_event_file *file, const char *name bootup_triggers[i].event); } } -#else -static inline void trace_early_triggers(struct trace_event_file *file, const char *name) { } -#endif /* * Just create a descriptor for early init. A descriptor is required -- 2.39.0.rc1.256.g54fd8350bd-goog