]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
pstore: Add pmsg - user-space accessible pstore object
authorMark Salyzyn <salyzyn@android.com>
Sat, 17 Jan 2015 00:01:10 +0000 (16:01 -0800)
committerTony Luck <tony.luck@intel.com>
Sat, 17 Jan 2015 00:01:10 +0000 (16:01 -0800)
commit9d5438f462abd6398cdb7b3211bdcec271873a3b
treefeb8e50edd4180710602c0f4d2db9d76559da1f8
parentf44f96528a8cd4134a4f2c1a9d8c785600aa4888
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>
fs/pstore/Kconfig
fs/pstore/Makefile
fs/pstore/inode.c
fs/pstore/internal.h
fs/pstore/platform.c
fs/pstore/pmsg.c [new file with mode: 0644]
fs/pstore/ram.c
include/linux/pstore.h
include/linux/pstore_ram.h