mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/2] panic: Add options to dump system info on panic
@ 2018-11-28  9:54 Feng Tang
  2018-11-28  9:54 ` [PATCH v3 1/2] panic: Add options to print system info when panic happens Feng Tang
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Feng Tang @ 2018-11-28  9:54 UTC (permalink / raw)
  To: Andrew Morton, linux-kernel
  Cc: Steven Rostedt, Kees Cook, Jonathan Corbet, Thomas Gleixner,
	John Stultz, Ingo Molnar, Peter Zijlstra, Feng Tang

Kernel panic issues are always painful to debug, partially
because it's not easy to get enough information of the
context when panic happens.

And we have ramoops and kdump for that, while this commit
tries to provide a easier way to show the system info by adding
a cmdline parameter, referring some idea from sysrq handler.

The patches have been used by us and did help on solving some nasty
panic cases.

Please help to review, thanks!

- Feng

Changelog:

  v3:
    - Add one patch to add the "panic_print" into sysctl as
      suggested by Steven Rostedt

  v2:
    - change text "dump/DUMP" to "print/PRINT" which
      is more accurate, suggested by Andrew Morton 
    - add code to print ftrace buffer 

Feng Tang (2):
  panic: Add options to print system info when panic happens
  kernel/sysctl: Add panic_print into sysctl

 Documentation/admin-guide/kernel-parameters.txt |  8 +++++++
 Documentation/sysctl/kernel.txt                 | 17 +++++++++++++++
 include/linux/kernel.h                          |  1 +
 include/uapi/linux/sysctl.h                     |  1 +
 kernel/panic.c                                  | 28 +++++++++++++++++++++++++
 kernel/sysctl.c                                 |  7 +++++++
 kernel/sysctl_binary.c                          |  1 +
 7 files changed, 63 insertions(+)

-- 
2.7.4


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-11-28 14:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-28  9:54 [PATCH v3 0/2] panic: Add options to dump system info on panic Feng Tang
2018-11-28  9:54 ` [PATCH v3 1/2] panic: Add options to print system info when panic happens Feng Tang
2018-11-28  9:54 ` [PATCH v3 2/2] kernel/sysctl: Add panic_print into sysctl Feng Tang
2018-11-28 14:12 ` [PATCH v3 0/2] panic: Add options to dump system info on panic Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®