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