kernel: rcu: Panic on RCU stall
Enable panic on RCU stalls if the RCU_PANIC_ON_STALL is enabled. This
helps collecting the cpu context for debugging.
Change-Id: Ibc95799df995bf31053152ab9b3894710fcd9f43
Signed-off-by: Channagoud Kadabi <ckadabi@codeaurora.org>
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 87a3de7..af5e988 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1481,6 +1481,18 @@
RCU grace period persists, additional CPU stall warnings are
printed at more widely spaced intervals.
+config RCU_PANIC_ON_STALL
+ int "Panic on RCU Stalls"
+ range 0 1
+ default 0
+ depends on RCU_STALL_COMMON
+ help
+ Panic if a given RCU grace period extends more than the specified
+ number of seconds instead of just printing a CPU stall warning.
+ This helps to collect cpu context as part of ramdumps for post
+ mortem analysis.
+
+
config RCU_TRACE
bool "Enable tracing for RCU"
depends on DEBUG_KERNEL