diff options
| author | Mark Salyzyn <salyzyn@android.com> | 2015-01-16 19:01:10 -0500 |
|---|---|---|
| committer | Tony Luck <tony.luck@intel.com> | 2015-01-16 19:01:10 -0500 |
| commit | 9d5438f462abd6398cdb7b3211bdcec271873a3b (patch) | |
| tree | feb8e50edd4180710602c0f4d2db9d76559da1f8 /include/linux | |
| parent | f44f96528a8cd4134a4f2c1a9d8c785600aa4888 (diff) | |
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 'include/linux')
| -rw-r--r-- | include/linux/pstore.h | 1 | ||||
| -rw-r--r-- | include/linux/pstore_ram.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pstore.h b/include/linux/pstore.h index ece0c6bbfcc5..8884f6e507f7 100644 --- a/include/linux/pstore.h +++ b/include/linux/pstore.h | |||
| @@ -39,6 +39,7 @@ enum pstore_type_id { | |||
| 39 | PSTORE_TYPE_PPC_RTAS = 4, | 39 | PSTORE_TYPE_PPC_RTAS = 4, |
| 40 | PSTORE_TYPE_PPC_OF = 5, | 40 | PSTORE_TYPE_PPC_OF = 5, |
| 41 | PSTORE_TYPE_PPC_COMMON = 6, | 41 | PSTORE_TYPE_PPC_COMMON = 6, |
| 42 | PSTORE_TYPE_PMSG = 7, | ||
| 42 | PSTORE_TYPE_UNKNOWN = 255 | 43 | PSTORE_TYPE_UNKNOWN = 255 |
| 43 | }; | 44 | }; |
| 44 | 45 | ||
diff --git a/include/linux/pstore_ram.h b/include/linux/pstore_ram.h index 4af3fdc85b01..9c9d6c154c8e 100644 --- a/include/linux/pstore_ram.h +++ b/include/linux/pstore_ram.h | |||
| @@ -81,6 +81,7 @@ struct ramoops_platform_data { | |||
| 81 | unsigned long record_size; | 81 | unsigned long record_size; |
| 82 | unsigned long console_size; | 82 | unsigned long console_size; |
| 83 | unsigned long ftrace_size; | 83 | unsigned long ftrace_size; |
| 84 | unsigned long pmsg_size; | ||
| 84 | int dump_oops; | 85 | int dump_oops; |
| 85 | struct persistent_ram_ecc_info ecc_info; | 86 | struct persistent_ram_ecc_info ecc_info; |
| 86 | }; | 87 | }; |
