xref: /linux/kernel/trace/rv/Kconfig (revision 670ff946b9bd398749450ad1b8a4bd4e78c82a2b)
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	select 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"
45source "kernel/trace/rv/monitors/pagefault/Kconfig"
46source "kernel/trace/rv/monitors/sleep/Kconfig"
47# Add new monitors here
48
49config RV_REACTORS
50	bool "Runtime verification reactors"
51	default y
52	depends on RV
53	help
54	  Enables the online runtime verification reactors. A runtime
55	  monitor can cause a reaction to the detection of an exception
56	  on the model's execution. By default, the monitors have
57	  tracing reactions, printing the monitor output via tracepoints,
58	  but other reactions can be added (on-demand) via this interface.
59
60config RV_REACT_PRINTK
61	bool "Printk reactor"
62	depends on RV_REACTORS
63	default y
64	help
65	  Enables the printk reactor. The printk reactor emits a printk()
66	  message if an exception is found.
67
68config RV_REACT_PANIC
69	bool "Panic reactor"
70	depends on RV_REACTORS
71	default y
72	help
73	  Enables the panic reactor. The panic reactor emits a printk()
74	  message if an exception is found and panic()s the system.
75