summaryrefslogtreecommitdiff
path: root/kernel/trace/rv/rv_reactors_kunit.c
AgeCommit message (Collapse)Author
2026-10-01rv: Add KUnit tests for reactor registration and dispatchWen Yang
Add KUnit tests covering the reactor register/unregister lifecycle (including duplicate and name-length rejection) and rv_react() dispatch (a no-op without a callback, exactly one invocation with one). The mdelay() callback keeps the CPU busy so a timer interrupt lands inside rv_react()'s lockdep context, exercising the LD_WAIT_SPIN wait type from the previous patch; a spurious lockdep splat there would show up in the test output. The dispatch tests rely on reacting_on being enabled, since rv_react() returns early when it is off. Reviewed-by: Gabriele Monaco <gmonaco@redhat.com> Signed-off-by: Wen Yang <wen.yang@linux.dev> Link: https://lore.kernel.org/r/7d213b110815da45595ad8cd7bcce5641fac3404.1789412799.git.wen.yang@linux.dev Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>