* [PATCH] rv: Select RV_LTL_MONITOR for all LTL monitors
@ 2026-11-30 0:53 Karl Mehltretter
2026-11-30 8:13 ` Gabriele Monaco
0 siblings, 1 reply; 2+ messages in thread
From: Karl Mehltretter @ 2026-11-30 0:53 UTC (permalink / raw)
To: Steven Rostedt, Gabriele Monaco
Cc: Karl Mehltretter, Masami Hiramatsu, Mathieu Desnoyers, Nam Cao,
linux-trace-kernel, linux-kernel, stable
Enabling the wakeup monitor without the sleep and pagefault monitors
breaks the build:
kernel/trace/rv/monitors/wakeup/wakeup.h:23:31: error: 'RV_MAX_LTL_ATOM' undeclared here (not in a function)
RV_MAX_LTL_ATOM and the members of struct ltl_monitor are only defined
with RV_LTL_MONITOR. The sleep and pagefault monitors select it, but the
wakeup monitor only selects LTL_MON_EVENTS_ID. So do the Kconfig files
rvgen generates for LTL monitors.
Select RV_LTL_MONITOR from LTL_MON_EVENTS_ID, like HA_MON_EVENTS_ID
selects RV_HA_MONITOR.
Fixes: 6fdaab4e1636 ("rv/rtapp: Add wakeup monitor")
Cc: stable@vger.kernel.org
Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com>
---
Assisted by an LLM.
Build-tested on x86_64 with GCC 14.2, CONFIG_RV_MON_WAKEUP=y,
CONFIG_RV_MON_SLEEP=n and CONFIG_RV_MON_PAGEFAULT=n. Without this patch,
kernel/trace/rv/ fails to build. With it, the whole kernel builds
without warnings.
kernel/trace/rv/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/trace/rv/Kconfig b/kernel/trace/rv/Kconfig
index 9bfd429ff..24a400b83 100644
--- a/kernel/trace/rv/Kconfig
+++ b/kernel/trace/rv/Kconfig
@@ -18,6 +18,7 @@ config DA_MON_EVENTS_ID
config LTL_MON_EVENTS_ID
select RV_MON_EVENTS
+ select RV_LTL_MONITOR
bool
config RV_LTL_MONITOR
base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244
--
2.47.3
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] rv: Select RV_LTL_MONITOR for all LTL monitors
2026-11-30 0:53 [PATCH] rv: Select RV_LTL_MONITOR for all LTL monitors Karl Mehltretter
@ 2026-11-30 8:13 ` Gabriele Monaco
0 siblings, 0 replies; 2+ messages in thread
From: Gabriele Monaco @ 2026-11-30 8:13 UTC (permalink / raw)
To: Karl Mehltretter, Steven Rostedt
Cc: Masami Hiramatsu, Mathieu Desnoyers, Nam Cao, linux-trace-kernel,
linux-kernel, stable
On Mon, 2026-11-30 at 01:53 +0100, Karl Mehltretter wrote:
> Enabling the wakeup monitor without the sleep and pagefault monitors
> breaks the build:
>
> kernel/trace/rv/monitors/wakeup/wakeup.h:23:31: error: 'RV_MAX_LTL_ATOM'
> undeclared here (not in a function)
>
> RV_MAX_LTL_ATOM and the members of struct ltl_monitor are only defined
> with RV_LTL_MONITOR. The sleep and pagefault monitors select it, but the
> wakeup monitor only selects LTL_MON_EVENTS_ID. So do the Kconfig files
> rvgen generates for LTL monitors.
>
> Select RV_LTL_MONITOR from LTL_MON_EVENTS_ID, like HA_MON_EVENTS_ID
> selects RV_HA_MONITOR.
>
> Fixes: 6fdaab4e1636 ("rv/rtapp: Add wakeup monitor")
> Cc: stable@vger.kernel.org
> Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com>
> ---
Good catch, thanks!
Technically speaking, the issue was there way before the wakeup monitor, just
other monitors selected both LTL_MON_EVENTS_ID and RV_LTL_MONITOR so it couldn't
show up.
From stable's perspective this doesn't make any difference so your Fixes tag
should work just fine.
Acked-by: Gabriele Monaco <gmonaco@redhat.com>
> Assisted by an LLM.
>
> Build-tested on x86_64 with GCC 14.2, CONFIG_RV_MON_WAKEUP=y,
> CONFIG_RV_MON_SLEEP=n and CONFIG_RV_MON_PAGEFAULT=n. Without this patch,
> kernel/trace/rv/ fails to build. With it, the whole kernel builds
> without warnings.
>
> kernel/trace/rv/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/kernel/trace/rv/Kconfig b/kernel/trace/rv/Kconfig
> index 9bfd429ff..24a400b83 100644
> --- a/kernel/trace/rv/Kconfig
> +++ b/kernel/trace/rv/Kconfig
> @@ -18,6 +18,7 @@ config DA_MON_EVENTS_ID
>
> config LTL_MON_EVENTS_ID
> select RV_MON_EVENTS
> + select RV_LTL_MONITOR
> bool
>
> config RV_LTL_MONITOR
>
> base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-30 8:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 0:53 [PATCH] rv: Select RV_LTL_MONITOR for all LTL monitors Karl Mehltretter
2026-11-30 8:13 ` Gabriele Monaco
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox