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