summaryrefslogtreecommitdiff
path: root/libutils/Unicode.cpp
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2018-03-19 15:16:29 -0700
committerMark Salyzyn <salyzyn@google.com>2018-03-20 13:11:44 -0700
commit39cc3e70734779503db0ddaf2a6fe604cac08f8d (patch)
tree24f3584ed6bea079b8c5c598f59920ccb25b1f6e /libutils/Unicode.cpp
parent855d205817f642652d0944a3002ec977d5a47e4f (diff)
bootstat: allow kernel_panic,sysrq to propagate subreason
Allow for a daemon to write to last kmsg to propagate a detailed subreason to kernel_panic,sysrq actions. A minor refactor moves common code into a helper function getSubreason for retrieval and bit error correction operations. A sysrq crash generally produces a kernel-provided message: SysRq : Trigger a crash which is used to generate a canonical boot reason kernel_panic,sysrq. A user daemon could write to /dev/kmsg just prior to the sysrq with SysRq : Trigger a crash : '<subreason>' to change the canonical boot reason to kernel_panic,sysrq,<subreason>. Administration added pending kBootReasonMap entries present in TRON. Test: manual echo into /dev/kmsg and /proc/sysrq-trigger and check Test: boot_reason_test.sh Bug: 33808187 Bug: 63736262 Change-Id: Ibf5432737e5a3449ebe40a8c6cf2d3e912ed6bbc
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions