diff options
author | Feng Tang <feng.tang@intel.com> | 2019-01-03 18:28:20 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-01-04 16:13:47 -0500 |
commit | 81c9d43f94870be66146739c6e61df40dc17bb64 (patch) | |
tree | 0209bcac3a8833b99e6b53d0e062667891e09f70 /include/linux/kernel.h | |
parent | d999bd9392dea7c1a9ac43b8680b22c4425ae4c7 (diff) |
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/linux/kernel.h')
-rw-r--r-- | include/linux/kernel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index d6aac75b51ba..8f0e68e250a7 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -527,6 +527,7 @@ static inline u32 int_sqrt64(u64 x) | |||
527 | extern void bust_spinlocks(int yes); | 527 | extern void bust_spinlocks(int yes); |
528 | extern int oops_in_progress; /* If set, an oops, panic(), BUG() or die() is in progress */ | 528 | extern int oops_in_progress; /* If set, an oops, panic(), BUG() or die() is in progress */ |
529 | extern int panic_timeout; | 529 | extern int panic_timeout; |
530 | extern unsigned long panic_print; | ||
530 | extern int panic_on_oops; | 531 | extern int panic_on_oops; |
531 | extern int panic_on_unrecovered_nmi; | 532 | extern int panic_on_unrecovered_nmi; |
532 | extern int panic_on_io_nmi; | 533 | extern int panic_on_io_nmi; |