diff options
author | Mark Salyzyn <salyzyn@android.com> | 2015-01-17 01:01:10 +0100 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2015-01-17 01:01:10 +0100 |
commit | 9d5438f462abd6398cdb7b3211bdcec271873a3b (patch) | |
tree | feb8e50edd4180710602c0f4d2db9d76559da1f8 /fs/pstore/platform.c | |
parent | pstore: Handle zero-sized prz in series (diff) | |
download | linux-9d5438f462abd6398cdb7b3211bdcec271873a3b.tar.xz linux-9d5438f462abd6398cdb7b3211bdcec271873a3b.zip |
pstore: Add pmsg - user-space accessible pstore object
A secured user-space accessible pstore object. Writes
to /dev/pmsg0 are appended to the buffer, on reboot
the persistent contents are available in
/sys/fs/pstore/pmsg-ramoops-[ID].
One possible use is syslogd, or other daemon, can
write messages, then on reboot provides a means to
triage user-space activities leading up to a panic
as a companion to the pstore dmesg or console logs.
Signed-off-by: Mark Salyzyn <salyzyn@android.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'fs/pstore/platform.c')
-rw-r--r-- | fs/pstore/platform.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c index 0a9b72cdfeca..15ee78c5020b 100644 --- a/fs/pstore/platform.c +++ b/fs/pstore/platform.c @@ -447,6 +447,7 @@ int pstore_register(struct pstore_info *psi) if ((psi->flags & PSTORE_FLAGS_FRAGILE) == 0) { pstore_register_console(); pstore_register_ftrace(); + pstore_register_pmsg(); } if (pstore_update_ms >= 0) { |