Skip to content

panic: Add options to dump system info on panic

Feng Tang lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyIn review
  2. v21 patch 3 repliesSuperseded
  3. v1 RFC1 patch 2 repliesSuperseded

Changes in v3 from the cover letter

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

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2panic: Add options to print system info when panic happensDocumentation/admin-guide/kernel-parameters.txt kernel/panic.c+36 -00 replies
2/2kernel/sysctl: Add panic_print into sysctlDocumentation/sysctl/kernel.txt include/linux/kernel.h include/uapi/linux/sysctl.h +3 more+28 -10 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchKees CookSteven Rostedt (VMware)
SeriesA-b
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] panic: Add options to dump system info on panic
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(+)
Signature · 1 line
2.7.4