diff options
| author | Gabriele Monaco <gmonaco@redhat.com> | 2026-07-23 09:45:29 +0200 |
|---|---|---|
| committer | Gabriele Monaco <gmonaco@redhat.com> | 2026-07-31 16:27:45 +0200 |
| commit | 8da2a88383658dac97769ed8f807ef6100a69480 (patch) | |
| tree | 5d8e2c37642a48754b42d0536c64995b866e6f0d /tools/perf/scripts/python/task-analyzer.py | |
| parent | be22e55b37bc3a2d9cc9dc60ede5940131d4c873 (diff) | |
rv: Add KUnit tests for some DA/HA monitors
Validate the functionality of DA monitors by injecting events in a
controlled environment (KUnit) and expecting reactions.
Events handlers are exported directly from the monitor source files
without using system events and with dummy arguments (e.g. no real
tasks). If the provided sequence of events incurs a violation, the test
expects the stub version of rv_react() to be called.
This testing method can validate the entire monitor implementation since
it sits between the monitor and the system (in place of the
tracepoints). All sorts of system and timing events can be emulated
without affecting the running kernel.
Handlers and monitor functions are exported as part of a struct to
simplify the process of running KUnit tests from kernel modules.
Reviewed-by: Nam Cao <namcao@linutronix.de>
Link: https://lore.kernel.org/r/20260723074534.43521-13-gmonaco@redhat.com
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
