mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
kmsg_dump: add kmsg_dump() calls to the reboot, halt, poweroff and emergency_restart paths
We need to know the reason why system rebooted in support service. However, we can't inform our customers of the reason because final messages are lost on current Linux kernel. This patch improves the situation above because the final messages are saved by adding kmsg_dump() to reboot, halt, poweroff and emergency_restart path. Signed-off-by: Seiji Aguchi <[email protected]> Cc: David Woodhouse <[email protected]> Cc: Marco Stornelli <[email protected]> Reviewed-by: Artem Bityutskiy <[email protected]> Reviewed-by: KOSAKI Motohiro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
fc2d557c74
commit
04c6862c05
3 changed files with 14 additions and 0 deletions
|
|
@ -1539,6 +1539,10 @@ static const char * const kmsg_reasons[] = {
|
|||
[KMSG_DUMP_OOPS] = "oops",
|
||||
[KMSG_DUMP_PANIC] = "panic",
|
||||
[KMSG_DUMP_KEXEC] = "kexec",
|
||||
[KMSG_DUMP_RESTART] = "restart",
|
||||
[KMSG_DUMP_HALT] = "halt",
|
||||
[KMSG_DUMP_POWEROFF] = "poweroff",
|
||||
[KMSG_DUMP_EMERG] = "emergency_restart",
|
||||
};
|
||||
|
||||
static const char *kmsg_to_str(enum kmsg_dump_reason reason)
|
||||
|
|
|
|||
Loading…
Reference in a new issue