xref: /linux/kernel/trace/rv/Kconfig (revision 40648d246fa4307ef11d185933cb0d79fc9ff46c)
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"
30# Add new monitors here
31
32config RV_REACTORS
33	bool "Runtime verification reactors"
34	default y
35	depends on RV
36	help
37	  Enables the online runtime verification reactors. A runtime
38	  monitor can cause a reaction to the detection of an exception
39	  on the model's execution. By default, the monitors have
40	  tracing reactions, printing the monitor output via tracepoints,
41	  but other reactions can be added (on-demand) via this interface.
42
43config RV_REACT_PRINTK
44	bool "Printk reactor"
45	depends on RV_REACTORS
46	default y
47	help
48	  Enables the printk reactor. The printk reactor emits a printk()
49	  message if an exception is found.
50
51config RV_REACT_PANIC
52	bool "Panic reactor"
53	depends on RV_REACTORS
54	default y
55	help
56	  Enables the panic reactor. The panic reactor emits a printk()
57	  message if an exception is found and panic()s the system.
58