]> git.baikalelectronics.ru Git - kernel.git/commit
pstore/platform: Pass max_reason to kmesg dump
authorPavel Tatashin <pasha.tatashin@soleen.com>
Tue, 5 May 2020 15:45:07 +0000 (11:45 -0400)
committerKees Cook <keescook@chromium.org>
Sat, 30 May 2020 17:34:03 +0000 (10:34 -0700)
commit214297f28152c3c21c99f0e0065dd012936e1702
tree6ec9d2329912f3a6d0b4f86c2c99e83a64a679b4
parent497377d0d5d3e18025f9d0ec925799ae7a794a31
pstore/platform: Pass max_reason to kmesg dump

Add a new member to struct pstore_info for passing information about
kmesg dump maximum reason. This allows a finer control of what kmesg
dumps are sent to pstore storage backends.

Those backends that do not explicitly set this field (keeping it equal to
0), get the default behavior: store only Oopses and Panics, or everything
if the printk.always_kmsg_dump boot param is set.

Signed-off-by: Pavel Tatashin <pasha.tatashin@soleen.com>
Link: https://lore.kernel.org/lkml/20200515184434.8470-5-keescook@chromium.org/
Co-developed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
fs/pstore/platform.c
include/linux/pstore.h