rv changes for v7.4 (for-next)
Steve,
The following changes since commit fd73f4a6659897191fa0d40695fe370925dd3780:
Linux 7.3-rc3 (2026-09-13 14:38:02 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/gmonaco/linux.git rv-7.4-next
for you to fetch changes up to 5e9bdf2924c9041ff1520b528db6104626e9ef41:
rv/rtapp/wakeup: Use "rv_this" the rv_monitor variable (2026-10-01 13:59:46 +0200)
----------------------------------------------------------------
rv changes for v7.4 (for-next)
Summary of changes:
- Improve lockdep annotation for reactors
Reactors are not supposed to take locks, so they fit the LD_WAIT_FREE lockdep class. However, reactors may run in preemptible context and if the preempting code (tick or simply the scheduler) takes locks, we see a lockdep splat. Switch to LD_WAIT_SPIN to avoid the splat while documenting that reactors should still not take locks.
- Add KUnit tests for reactors
Add KUnit test cases to validate registration and reaction, this requires exporting some symbols and other minor fixes.
- Use the right rv_this variable in the wakeup monitor
LTL monitors were updated to use the generic rv_this static variable but this change wasn't propagated to the newly introduced wakeup monitor. This broke reactors for the monitor: update the it.
----------------------------------------------------------------
Nam Cao (1):
rv/rtapp/wakeup: Use "rv_this" the rv_monitor variable
Wen Yang (4):
rv: Use LD_WAIT_SPIN as the reactor lockdep wait type
rv: Propagate rv_register_reactor() error from reactor init
rv: Export rv_register_reactor() and rv_unregister_reactor()
rv: Add KUnit tests for reactor registration and dispatch
kernel/trace/rv/Kconfig | 12 ++++ kernel/trace/rv/Makefile | 1 + kernel/trace/rv/monitors/wakeup/wakeup.c | 6 +- kernel/trace/rv/reactor_panic.c | 3 +- kernel/trace/rv/reactor_printk.c | 3 +- kernel/trace/rv/rv_reactors.c | 12 +++- kernel/trace/rv/rv_reactors_kunit.c | 111 +++++++++++++++++++++++++++++++ 7 files changed, 140 insertions(+), 8 deletions(-) create mode 100644 kernel/trace/rv/rv_reactors_kunit.c
To: Steven Rostedt <[email protected]>
Cc: Nam Cao <[email protected]>
Cc: Wen Yang <[email protected]>