[RFC PATCH 0/2] sysctl: Panic on RCU stall and schedule while atomic

From: Daniel Bristot de Oliveira
Date: Tue May 31 2016 - 15:07:49 EST


This patch series implements two kernel.panic_on_* like sysctl:

kernel.panic_on_rcu_stall:
panic() on RCU Stall detection.

kernel.panic_on_sched_in_atomic:
panic() on schedule while atomic detection.

These sysctls are useful to capture a vmcore when is not possible
to recompile the kernel to include the panic() call. For instance
when supporting enterprise users.

Daniel Bristot de Oliveira (2):
rcu: sysctl: Panic on RCU Stall
sched: sysctl: Panic on scheduling while atomic

Documentation/sysctl/kernel.txt | 25 +++++++++++++++++++++++++
include/linux/kernel.h | 2 ++
kernel/rcu/tree.c | 8 ++++++++
kernel/sched/core.c | 7 +++++++
kernel/sysctl.c | 20 ++++++++++++++++++++
5 files changed, 62 insertions(+)

--
2.5.5