Skip to contentSkip to conversation

tracing/remotes: Fix TRACE_REMOTE build when TRACING=n

PATCH Applied Vincent Donnefort 3 participants 3 messages Oct 15 – Oct 26

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

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
index 449154f9a485..e179b8ad79e8 100644
@@ -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
index 0ab5916575a9..6587450cfcd1 100644
@@ -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
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · On Thu, 15 Oct 2026 12:28:14 +0100 Vincent Donnefort <[email protected]>…

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.

Quoted 5 lines

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
index 449154f9a485..e179b8ad79e8 100644
@@ -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
index 0ab5916575a9..6587450cfcd1 100644
@@ -1329,6 +1329,7 @@ source "kernel/trace/rv/Kconfig"
 
 config TRACE_REMOTE
 	bool
+	select TRACING
 
 config SIMPLE_RING_BUFFER
 	bool

base-commit: 24a19b953e2a3d0ea5a8c4951a0ab8f32720c907

maintainer Applied
#2 lore raw
In reply to Vincent Donnefort
Quoted 9 lines · Vincent Donnefort

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.

[...]

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.