Skip to content

RFC generalize panic_print's dump function to be

Feng Tang lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3kernel/panic: generalize panic_print's function to show sys infoinclude/linux/panic.h kernel/panic.c+34 -220 replies
2/3kernel/hung_task: add option to dump system info when hung task detectedkernel/hung_task.c+16 -134 replies
3/3kernel/watchdog: add option to dump system info when system is locked upkernel/watchdog.c+11 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC 0/3] generalize panic_print's dump function to be

When working on kernel stability issues, panic, task-hung and software/hardware lockup are frequently met. And to debug them, user may need lots of system information at that time, like task call stacks, lock info, memory info etc.

panic case already has panic_print_sys_info() for this purpose, and has a 'panic_print' bitmask to control what kinds of information is needed, which is also helpful to debug other task-hung and lockup cases.

So this patchset extract the function out, and make it usable for other cases which also need system info for debugging.

Locally these have been used in our bug chasing for stablility issues and was helpful.

Please help to review, thanks!

- Feng

Feng Tang (3):
kernel/panic: generalize panic_print's function to show sys info kernel/hung_task: add option to dump system info when hung task
detected
kernel/watchdog: add option to dump system info when system is locked
up

 include/linux/panic.h | 12 ++++++++++++
 kernel/hung_task.c    | 29 +++++++++++++++-------------
 kernel/panic.c        | 44 +++++++++++++++++++++----------------------
 kernel/watchdog.c     | 11 +++++++++++
 4 files changed, 61 insertions(+), 35 deletions(-)
Signature · 1 line
2.39.5 (Apple Git-154)