summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/sysctl.h
diff options
context:
space:
mode:
authorFeng Tang2019-01-04 00:28:20 +0100
committerLinus Torvalds2019-01-04 22:13:47 +0100
commit81c9d43f94870be66146739c6e61df40dc17bb64 (patch)
tree0209bcac3a8833b99e6b53d0e062667891e09f70 /include/uapi/linux/sysctl.h
parentpanic: add options to print system info when panic happens (diff)
downloadkernel-qcow2-linux-81c9d43f94870be66146739c6e61df40dc17bb64.tar.gz
kernel-qcow2-linux-81c9d43f94870be66146739c6e61df40dc17bb64.tar.xz
kernel-qcow2-linux-81c9d43f94870be66146739c6e61df40dc17bb64.zip
kernel/sysctl: add panic_print into sysctl
So that we can also runtime chose to print out the needed system info for panic, other than setting the kernel cmdline. Link: http://lkml.kernel.org/r/1543398842-19295-3-git-send-email-feng.tang@intel.com Signed-off-by: Feng Tang <feng.tang@intel.com> Suggested-by: Steven Rostedt <rostedt@goodmis.org> Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: John Stultz <john.stultz@linaro.org> Cc: Ingo Molnar <mingo@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Kees Cook <keescook@chromium.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/uapi/linux/sysctl.h')
-rw-r--r--include/uapi/linux/sysctl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/sysctl.h b/include/uapi/linux/sysctl.h
index d71013fffaf6..87aa2a6d9125 100644
--- a/include/uapi/linux/sysctl.h
+++ b/include/uapi/linux/sysctl.h
@@ -153,6 +153,7 @@ enum
KERN_NMI_WATCHDOG=75, /* int: enable/disable nmi watchdog */
KERN_PANIC_ON_NMI=76, /* int: whether we will panic on an unrecovered */
KERN_PANIC_ON_WARN=77, /* int: call panic() in WARN() functions */
+ KERN_PANIC_PRINT=78, /* ulong: bitmask to print system info on panic */
};