linux/kernel/trace/rv/monitors/wakeup/Kconfig
Nam Cao 6fdaab4e16 rv/rtapp: Add wakeup monitor
Add a wakeup monitor to detect a lower-priority task waking up a
higher-priority task.

The rtapp/sleep monitor already detects this. However, that monitor
triggers an error in the context of the wakee task and user only gets
the stacktrace of that task. It is also extremely useful to get the
stacktrace of the waker task, which this monitor offers. In other
words, this monitor complements the rtapp/sleep monitor.

Signed-off-by: Nam Cao <namcao@linutronix.de>
Reviewed-by: Gabriele Monaco <gmonaco@redhat.com>
Link: https://lore.kernel.org/r/ba5658fa13e49ada466b84a2c211f233037180b5.1781852967.git.namcao@linutronix.de
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
2026-07-24 09:01:10 +02:00

17 lines
531 B
Plaintext

# SPDX-License-Identifier: GPL-2.0-only
#
config RV_MON_WAKEUP
depends on RV
depends on RV_MON_RTAPP
depends on HAVE_SYSCALL_TRACEPOINTS
default y
select LTL_MON_EVENTS_ID
bool "wakeup monitor"
help
This monitor detects a lower-priority task waking up a
higher-priority task. The RV_MON_SLEEP monitor already
detects this case, but this monitor detects in the context
of the waker task instead. This and RV_MON_SLEEP can be
enabled together to get the stacktrace of both the waker
task and the wakee task.