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