mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-09-16 13:39:28 -05:00
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>
29 lines
1.2 KiB
Makefile
29 lines
1.2 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
ccflags-y += -I $(src) # needed for trace events
|
|
|
|
obj-$(CONFIG_RV) += rv.o
|
|
obj-$(CONFIG_RV_MON_WIP) += monitors/wip/wip.o
|
|
obj-$(CONFIG_RV_MON_WWNR) += monitors/wwnr/wwnr.o
|
|
obj-$(CONFIG_RV_MON_SCHED) += monitors/sched/sched.o
|
|
obj-$(CONFIG_RV_MON_SCO) += monitors/sco/sco.o
|
|
obj-$(CONFIG_RV_MON_SNROC) += monitors/snroc/snroc.o
|
|
obj-$(CONFIG_RV_MON_SCPD) += monitors/scpd/scpd.o
|
|
obj-$(CONFIG_RV_MON_SNEP) += monitors/snep/snep.o
|
|
obj-$(CONFIG_RV_MON_RTAPP) += monitors/rtapp/rtapp.o
|
|
obj-$(CONFIG_RV_MON_PAGEFAULT) += monitors/pagefault/pagefault.o
|
|
obj-$(CONFIG_RV_MON_SLEEP) += monitors/sleep/sleep.o
|
|
obj-$(CONFIG_RV_MON_STS) += monitors/sts/sts.o
|
|
obj-$(CONFIG_RV_MON_NRP) += monitors/nrp/nrp.o
|
|
obj-$(CONFIG_RV_MON_SSSW) += monitors/sssw/sssw.o
|
|
obj-$(CONFIG_RV_MON_OPID) += monitors/opid/opid.o
|
|
obj-$(CONFIG_RV_MON_STALL) += monitors/stall/stall.o
|
|
obj-$(CONFIG_RV_MON_DEADLINE) += monitors/deadline/deadline.o
|
|
obj-$(CONFIG_RV_MON_NOMISS) += monitors/nomiss/nomiss.o
|
|
obj-$(CONFIG_RV_MON_WAKEUP) += monitors/wakeup/wakeup.o
|
|
# Add new monitors here
|
|
obj-$(CONFIG_RV_REACTORS) += rv_reactors.o
|
|
obj-$(CONFIG_RV_REACT_PRINTK) += reactor_printk.o
|
|
obj-$(CONFIG_RV_REACT_PANIC) += reactor_panic.o
|
|
obj-$(CONFIG_RV_MONITORS_KUNIT_TEST) += rv_monitors_test.o
|