]> git.ipfire.org Git - thirdparty/linux.git/blame - kernel/rcu/Kconfig.debug
Merge tag 'drm-next-2020-06-02' of git://anongit.freedesktop.org/drm/drm
[thirdparty/linux.git] / kernel / rcu / Kconfig.debug
CommitLineData
ec8f24b7 1# SPDX-License-Identifier: GPL-2.0-only
43a0a2a7
PM
2#
3# RCU-related debugging configuration options
4#
5
6menu "RCU Debugging"
7
8config PROVE_RCU
9 def_bool PROVE_LOCKING
10
28875945
JFG
11config PROVE_RCU_LIST
12 bool "RCU list lockdep debugging"
13 depends on PROVE_RCU && RCU_EXPERT
14 default n
15 help
16 Enable RCU lockdep checking for list usages. By default it is
17 turned off since there are several list RCU users that still
18 need to be converted to pass a lockdep expression. To prevent
19 false-positive splats, we keep it default disabled but once all
20 users are converted, we can remove this config option.
21
43a0a2a7
PM
22config TORTURE_TEST
23 tristate
24 default n
25
26config RCU_PERF_TEST
27 tristate "performance tests for RCU"
28 depends on DEBUG_KERNEL
29 select TORTURE_TEST
30 select SRCU
31 select TASKS_RCU
3d6e43c7 32 select TASKS_RUDE_RCU
c1a76c0b 33 select TASKS_TRACE_RCU
43a0a2a7
PM
34 default n
35 help
36 This option provides a kernel module that runs performance
37 tests on the RCU infrastructure. The kernel module may be built
38 after the fact on the running kernel to be tested, if desired.
39
40 Say Y here if you want RCU performance tests to be built into
41 the kernel.
42 Say M if you want the RCU performance tests to build as a module.
43 Say N if you are unsure.
44
45config RCU_TORTURE_TEST
46 tristate "torture tests for RCU"
47 depends on DEBUG_KERNEL
48 select TORTURE_TEST
49 select SRCU
50 select TASKS_RCU
3d6e43c7 51 select TASKS_RUDE_RCU
c1a76c0b 52 select TASKS_TRACE_RCU
43a0a2a7
PM
53 default n
54 help
55 This option provides a kernel module that runs torture tests
56 on the RCU infrastructure. The kernel module may be built
57 after the fact on the running kernel to be tested, if desired.
58
59 Say Y here if you want RCU torture tests to be built into
60 the kernel.
61 Say M if you want the RCU torture tests to build as a module.
62 Say N if you are unsure.
63
64config RCU_CPU_STALL_TIMEOUT
65 int "RCU CPU stall timeout in seconds"
66 depends on RCU_STALL_COMMON
67 range 3 300
68 default 21
69 help
70 If a given RCU grace period extends more than the specified
71 number of seconds, a CPU stall warning is printed. If the
72 RCU grace period persists, additional CPU stall warnings are
73 printed at more widely spaced intervals.
74
75config RCU_TRACE
76 bool "Enable tracing for RCU"
77 depends on DEBUG_KERNEL
78 default y if TREE_RCU
79 select TRACE_CLOCK
80 help
81 This option enables additional tracepoints for ftrace-style
82 event tracing.
83
84 Say Y here if you want to enable RCU tracing
85 Say N if you are unsure.
86
87config RCU_EQS_DEBUG
88 bool "Provide debugging asserts for adding NO_HZ support to an arch"
89 depends on DEBUG_KERNEL
90 help
91 This option provides consistency checks in RCU's handling of
92 NO_HZ. These checks have proven quite helpful in detecting
93 bugs in arch-specific NO_HZ code.
94
95 Say N here if you need ultimate kernel/user switch latencies
96 Say Y if you are unsure
97
98endmenu # "RCU Debugging"