tracing/remotes: Fix TRACE_REMOTE build when TRACING=n
Subsystems (4)
PATCH 1/1 tracing/remotes: Fix TRACE_REMOTE build when TRACING=n
TRACE_REMOTE relies on tracefs, eventfs and ring-buffer which are only built and declared when TRACING is enabled. It is however possible for a config to have FTRACE=y TRACING=n and TRACE_REMOTE=y.
To fix this configuration, have TRACE_REMOTE select TRACING directly, just like other FTRACE options do and drop the TRACING dependency from NVHE_EL2_TRACING to avoid a circular Kconfig dependency.
--- arch/arm64/kvm/Kconfig | 2 +- kernel/trace/Kconfig | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
arch/arm64/kvm/Kconfig +1 -1
@@ -74,7 +74,7 @@ if NVHE_EL2_DEBUG config NVHE_EL2_TRACING bool - depends on TRACING && FTRACE + depends on FTRACE select TRACE_REMOTE default y
kernel/trace/Kconfig +1 -0
@@ -1329,6 +1329,7 @@ source "kernel/trace/rv/Kconfig" config TRACE_REMOTE bool + select TRACING config SIMPLE_RING_BUFFER bool
base-commit: 24a19b953e2a3d0ea5a8c4951a0ab8f32720c907
Signature · 1 line
2.56.0.385.gd3acb90ef8-goog
Quoted 8 lines · On Thu, 15 Oct 2026 12:28:14 +0100 Vincent Donnefort <[email protected]>…
TRACE_REMOTErelies on tracefs, eventfs and ring-buffer which are only built and declared when TRACING is enabled. It is however possible for a config to have FTRACE=y TRACING=n and TRACE_REMOTE=y.To fix this configuration, have
TRACE_REMOTEselect TRACING directly, just like other FTRACE options do and drop the TRACING dependency fromNVHE_EL2_TRACINGto avoid a circularKconfigdependency.
Quoted 5 lines
Fixes ea908a2b79c8 ("tracing: Add a trace remote module for testing")Reported-by kernel test robot <[email protected]>Signed-off-by Vincent Donnefort <[email protected]>
This can go through the arm64 tree.
-- Steve
Quoted 32 lines
--- arch/arm64/kvm/Kconfig | 2 +- kernel/trace/Kconfig | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)arch/arm64/kvm/Kconfig +1
-1@@ -74,7 +74,7 @@ if NVHE_EL2_DEBUG config NVHE_EL2_TRACING bool - depends on TRACING && FTRACE + depends on FTRACE select TRACE_REMOTE default ykernel/trace/Kconfig +1
-0@@ -1329,6 +1329,7 @@ source "kernel/trace/rv/Kconfig" config TRACE_REMOTE bool + select TRACING config SIMPLE_RING_BUFFER boolbase-commit:
24a19b953e2a3d0ea5a8c4951a0ab8f32720c907
Quoted 9 lines · Vincent Donnefort
TRACE_REMOTErelies on tracefs, eventfs and ring-buffer which are only built and declared when TRACING is enabled. It is however possible for a config to have FTRACE=y TRACING=n and TRACE_REMOTE=y.To fix this configuration, have
TRACE_REMOTEselect TRACING directly, just like other FTRACE options do and drop the TRACING dependency fromNVHE_EL2_TRACINGto avoid a circularKconfigdependency.[...]
Applied to fixes, thanks!
[1/1] tracing/remotes: Fix TRACE_REMOTE build when TRACING=n
commit: 3bb853ad84244f0b86ab12f029bc4a0c9c7100e8
Cheers,
M.
Signature · 1 line
Without deviation from the norm, progress is not possible.