diff options
| author | Wen Yang <wen.yang@linux.dev> | 2026-09-15 03:13:37 +0800 |
|---|---|---|
| committer | Gabriele Monaco <gmonaco@redhat.com> | 2026-10-01 13:59:46 +0200 |
| commit | 47fad7f891c61e19d17c67c3d39bdfb7c06743b5 (patch) | |
| tree | aba872aa1021af895329781e435db78ce86283fb /tools/perf/scripts/python/stackcollapse.py | |
| parent | 89a6f8102948afa5d0851a6eebf5d7b166a42a6f (diff) | |
rv: Add KUnit tests for reactor registration and dispatch
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>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
