Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp798884pxb; Thu, 21 Oct 2021 09:40:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwT9Zpt2YsGFi2ngjOVjzydEdsnOOezlZ+AcLRDdxSECXTCA60MghJtntCwnvwnNMIkKsMB X-Received: by 2002:a50:f0c9:: with SMTP id a9mr8972228edm.104.1634834426068; Thu, 21 Oct 2021 09:40:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634834426; cv=none; d=google.com; s=arc-20160816; b=Stt+2S/kPhReBNgD7orSDaOg8yAeOMpDaEWTnbjP2KCDJisAft6KUKabPidDCPssDy 4zrBQ+jeitprQHMXog4tImP9i2ihMFQxKnKwBS3+TfzmNJIP5848JcSLduPeGoWRZM7x e/U+GAsCGf9Pd57ql/NterboPH/sQ/PeES+d6UiwnA3pWbFQU8cf5Yaq9IsPK7Oj5bV1 O/y4KEcLCRhaivk/83RisPfOMweN7vEaG/dRDgX7GWmJFsOAIX3i+IEK1NAJIAm7PJE8 kW9YsxKdETvxoM/1JKlOqmKb28megsFQcKbBZNheovWRA4OCCIhnnYNBpKuYRXpjYLeb kbRQ== 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 :message-id:subject:cc:to:from:date; bh=Tei1cfP31aFlSLuPjUDiQjwqJ2eTWNZZzx3/n0pdvVw=; b=NJprD4F1V/eeKl0zUaI0JlKqPiNTnJuYfZg0bwBtNCL7+1V/UiTu1ED7poQeq9Elz3 9hEy+VdTM5EPwZSUaiJ8B3zead/lwOdqOBjqHJoszOVvkY4Oc2KD7NjTdTVQNOTuZoOd e637L4Dp6AKpLnicP7XBSGBi6afREg8ryj5WQU8OHHOVWgb/3kj5nBdXztqwB4E6OGPR dsMqBw3oFOB4GJjq6WBJxAT0pdQRsTOreFFCvzPUAZVrZHRNYsVD4PwBrazSqwXDDJq1 vTGgem3qG5RrmNCWJugtcHV1xmGdbWFA/Np6xdRXlWnQWZzf8/M7D9F9H/2m1lxhDWyA VOKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h9si12231454edb.350.2021.10.21.09.40.02; Thu, 21 Oct 2021 09:40:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232070AbhJUQjv (ORCPT + 99 others); Thu, 21 Oct 2021 12:39:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:47932 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232071AbhJUQjr (ORCPT ); Thu, 21 Oct 2021 12:39:47 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F03866138D; Thu, 21 Oct 2021 16:37:30 +0000 (UTC) Date: Thu, 21 Oct 2021 12:37:29 -0400 From: Steven Rostedt To: LKML Cc: Ingo Molnar , Andrew Morton , Jiri Olsa Subject: [PATCH] tracing: Fix selftest config check for function graph start up test Message-ID: <20211021123729.23be20c4@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-kernel@vger.kernel.org From: "Steven Rostedt (VMware)" There's a new test in trace_selftest_startup_function_graph() that requires the use of ftrace args being supported as well does some tricks with dynamic tracing. Although this code checks HAVE_DYNAMIC_FTRACE_WITH_ARGS it fails to check DYNAMIC_FTRACE, and the kernel fails to build due to that dependency. Signed-off-by: Steven Rostedt (VMware) --- Fixes this patch: https://lore.kernel.org/all/20211008091336.33616-5-jolsa@kernel.org/ kernel/trace/trace_selftest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/trace/trace_selftest.c b/kernel/trace/trace_selftest.c index 3404a245417e..3db8b80fbdca 100644 --- a/kernel/trace/trace_selftest.c +++ b/kernel/trace/trace_selftest.c @@ -845,7 +845,8 @@ trace_selftest_startup_function_graph(struct tracer *trace, goto out; } -#ifdef CONFIG_HAVE_DYNAMIC_FTRACE_WITH_ARGS +#if defined(CONFIG_DYNAMIC_FTRACE) && \ + defined(CONFIG_HAVE_DYNAMIC_FTRACE_WITH_ARGS) tracing_reset_online_cpus(&tr->array_buffer); set_graph_array(tr); -- 2.31.1