From nobody Mon Oct 6 08:21:59 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 836EE230BFF for ; Wed, 23 Jul 2025 19:52:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753300341; cv=none; b=cxUtUKeQQ7fvxwYSukyxAi4rvdGjbhBpjXbmMZeXT8ssmLdISttpFDEdkGaIJClE85O1ZfMMlmJ7psk5RKDLUPbWSJCq6lH8yEB9zDh7VKA99MtcWbj/Qu0JcH+UbeeSTOWaiOc4/AAijCUMgtvDMlGY0b7+k5rQcda/TSQWLI4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753300341; c=relaxed/simple; bh=EXouJm0VSKA0V7Xn1kj17NJL/SKguIMKAEbQQ7HHWh8=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=uQDgNnsDdWFv81KL9skm9wqf5x/kkBN+yg6zIc42kRzAOrlpf8RBvOFU6IAZsGrsXA/x5eLW5lp6TEacBfm8ogG21OhoHgmbip9rJ1k9nsOzp3bUikOqXhh1OUl//PeCYnSaHr2DRV/7fLlp85Xeqvd9HX/LD6aMTiYXGG4XYGg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NfMl+0B+; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NfMl+0B+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF5BAC4CEF5; Wed, 23 Jul 2025 19:52:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1753300340; bh=EXouJm0VSKA0V7Xn1kj17NJL/SKguIMKAEbQQ7HHWh8=; h=Date:From:To:Cc:Subject:References:From; b=NfMl+0B+09GA2aHaT4xvdSfVqDiKO6xxRqM16/okyJxwAEaW/tMej+uf63IKpsZsh xnFJLEEvsQQRuM3m1HfbLR6Hun1tH8R3roC4CoFt2+iwQQizvmPAnozgH+NmuhP/EZ G1UaKnd9BK1icU8SueE+EvWPDYaHe9oiZVC1UgAq3Hi6bzf6zZ8Mh6SmxAOroV7Fwz gEe2BS99Khp0egZw571M2wQvflgyjXQNe2ebZG06zAEH9KMneEAR1LjVkY2qBCznZJ EWJr9ipdN2upYL3QqroHSY9zqJc+b193jQXpqZqDCegScGEXPqG0Y1MfOM1Gs4qwkA HMFdrXO6hrV8w== Received: from rostedt by gandalf with local (Exim 4.98.2) (envelope-from ) id 1uefVm-00000000Qul-1JKF; Wed, 23 Jul 2025 15:52:22 -0400 Message-ID: <20250723195222.167138246@kernel.org> User-Agent: quilt/0.68 Date: Wed, 23 Jul 2025 15:52:10 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Andrew Morton , Linus Torvalds , Alexandre Ghiti , ChenMiao Subject: [for-next][PATCH 2/3] ftrace: Make DYNAMIC_FTRACE always enabled for architectures that support it References: <20250723195208.164959427@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Steven Rostedt ftrace has two flavors: 1) static: Where every function always calls the ftrace trampoline 2) dynamic: Where each function has nops that can be changed on demand to jump to the ftrace trampoline when needed. The static flavor has very high performance overhead and was only created to make it easier for architectures to implement the dynamic flavor. An architecture developer can first implement the static ftrace to make sure the trampolines work before working on the more complicated dynamic aspect of ftrace. Once the architecture can support dynamic ftrace, there's no reason to continue to support the static flavor. In fact, the static flavor tends to bitrot and bugs start to appear in them. Remove the prompt to pick DYNAMIC_FTRACE and simply enable it if the architecture supports it. Link: https://lore.kernel.org/all/f7e12c6d-892e-4ca3-9ef0-fbb524d04a48@ghit= i.fr/ Cc: Masami Hiramatsu Cc: Mathieu Desnoyers Cc: Mark Rutland Cc: Linus Torvalds Cc: Alexandre Ghiti Cc: ChenMiao Link: https://lore.kernel.org/20250703115222.2d7c8cd5@batman.local.home Signed-off-by: Steven Rostedt (Google) --- kernel/trace/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index a3f35c7d83b6..28afc6941e7a 100644 --- a/kernel/trace/Kconfig +++ b/kernel/trace/Kconfig @@ -275,7 +275,7 @@ config FUNCTION_TRACE_ARGS funcgraph-args (for the function graph tracer) =20 config DYNAMIC_FTRACE - bool "enable/disable function tracing dynamically" + bool depends on FUNCTION_TRACER depends on HAVE_DYNAMIC_FTRACE default y --=20 2.47.2