xref: /linux-6.15/kernel/trace/rv/Kconfig (revision 93bac9cf)
1# SPDX-License-Identifier: GPL-2.0-only
2#
3config DA_MON_EVENTS
4	bool
5
6config DA_MON_EVENTS_IMPLICIT
7	select DA_MON_EVENTS
8	bool
9
10config DA_MON_EVENTS_ID
11	select DA_MON_EVENTS
12	bool
13
14menuconfig RV
15	bool "Runtime Verification"
16	depends on TRACING
17	help
18	  Enable the kernel runtime verification infrastructure. RV is a
19	  lightweight (yet rigorous) method that complements classical
20	  exhaustive verification techniques (such as model checking and
21	  theorem proving). RV works by analyzing the trace of the system's
22	  actual execution, comparing it against a formal specification of
23	  the system behavior.
24
25	  For further information, see:
26	    Documentation/trace/rv/runtime-verification.rst
27
28source "kernel/trace/rv/monitors/wip/Kconfig"
29source "kernel/trace/rv/monitors/wwnr/Kconfig"
30source "kernel/trace/rv/monitors/sched/Kconfig"
31source "kernel/trace/rv/monitors/tss/Kconfig"
32source "kernel/trace/rv/monitors/sco/Kconfig"
33source "kernel/trace/rv/monitors/snroc/Kconfig"
34# Add new monitors here
35
36config RV_REACTORS
37	bool "Runtime verification reactors"
38	default y
39	depends on RV
40	help
41	  Enables the online runtime verification reactors. A runtime
42	  monitor can cause a reaction to the detection of an exception
43	  on the model's execution. By default, the monitors have
44	  tracing reactions, printing the monitor output via tracepoints,
45	  but other reactions can be added (on-demand) via this interface.
46
47config RV_REACT_PRINTK
48	bool "Printk reactor"
49	depends on RV_REACTORS
50	default y
51	help
52	  Enables the printk reactor. The printk reactor emits a printk()
53	  message if an exception is found.
54
55config RV_REACT_PANIC
56	bool "Panic reactor"
57	depends on RV_REACTORS
58	default y
59	help
60	  Enables the panic reactor. The panic reactor emits a printk()
61	  message if an exception is found and panic()s the system.
62