Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rv: Adjust monitor dependencies

RV monitors relying on the preemptirqs tracepoints are set as dependent
on PREEMPT_TRACER and IRQSOFF_TRACER. In fact, those configurations do
enable the tracepoints but are not the minimal configurations enabling
them, which are TRACE_PREEMPT_TOGGLE and TRACE_IRQFLAGS (not selectable
manually).

Set TRACE_PREEMPT_TOGGLE and TRACE_IRQFLAGS as dependencies for
monitors.

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Tomas Glozar <tglozar@redhat.com>
Cc: Juri Lelli <jlelli@redhat.com>
Cc: Clark Williams <williams@redhat.com>
Cc: John Kacur <jkacur@redhat.com>
Link: https://lore.kernel.org/20250728135022.255578-5-gmonaco@redhat.com
Fixes: fbe6c09b7eb4 ("rv: Add scpd, snep and sncid per-cpu monitors")
Acked-by: Nam Cao <namcao@linutronix.de>
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>

authored by

Gabriele Monaco and committed by
Steven Rostedt (Google)
79de6617 7f904ff6

+4 -4
+1 -1
kernel/trace/rv/monitors/scpd/Kconfig
··· 2 2 # 3 3 config RV_MON_SCPD 4 4 depends on RV 5 - depends on PREEMPT_TRACER 5 + depends on TRACE_PREEMPT_TOGGLE 6 6 depends on RV_MON_SCHED 7 7 default y 8 8 select DA_MON_EVENTS_IMPLICIT
+1 -1
kernel/trace/rv/monitors/sncid/Kconfig
··· 2 2 # 3 3 config RV_MON_SNCID 4 4 depends on RV 5 - depends on IRQSOFF_TRACER 5 + depends on TRACE_IRQFLAGS 6 6 depends on RV_MON_SCHED 7 7 default y 8 8 select DA_MON_EVENTS_IMPLICIT
+1 -1
kernel/trace/rv/monitors/snep/Kconfig
··· 2 2 # 3 3 config RV_MON_SNEP 4 4 depends on RV 5 - depends on PREEMPT_TRACER 5 + depends on TRACE_PREEMPT_TOGGLE 6 6 depends on RV_MON_SCHED 7 7 default y 8 8 select DA_MON_EVENTS_IMPLICIT
+1 -1
kernel/trace/rv/monitors/wip/Kconfig
··· 2 2 # 3 3 config RV_MON_WIP 4 4 depends on RV 5 - depends on PREEMPT_TRACER 5 + depends on TRACE_PREEMPT_TOGGLE 6 6 select DA_MON_EVENTS_IMPLICIT 7 7 bool "wip monitor" 8 8 help