diff options
author | Vasile-Laurentiu Stanimir <vasile-laurentiu.stanimir@windriver.com> | 2020-11-04 15:05:32 +0200 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2020-12-01 12:09:17 -0800 |
commit | 26fecbf7602dd69b649914e61526bd67c557fece (patch) | |
tree | 1f412679073b9efebb805e81a078b32b00328c9c /fs/pstore/Kconfig | |
parent | b6f8ed33ab2bbc58e40fb1e2fb0f9c90cab04baf (diff) | |
download | linux-stable-26fecbf7602dd69b649914e61526bd67c557fece.tar.gz linux-stable-26fecbf7602dd69b649914e61526bd67c557fece.tar.bz2 linux-stable-26fecbf7602dd69b649914e61526bd67c557fece.zip |
pstore: Move kmsg_bytes default into Kconfig
While kmsg_bytes can be set for pstore via mount, if a crash occurs
before the mount only partial console log will be stored as kmsg_bytes
defaults to a potentially different hardcoded value in the kernel
(PSTORE_DEFAULT_KMSG_BYTES). This makes it impossible to analyze valuable
post-mortem data especially on the embedded development or in the process
of bringing up new boards. Change this value to be a Kconfig option
with the default of old PSTORE_DEFAULT_KMSG_BYTES
Signed-off-by: Vasile-Laurentiu Stanimir <vasile-laurentiu.stanimir@windriver.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'fs/pstore/Kconfig')
-rw-r--r-- | fs/pstore/Kconfig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/pstore/Kconfig b/fs/pstore/Kconfig index e16a49ebfe54..8adabde685f1 100644 --- a/fs/pstore/Kconfig +++ b/fs/pstore/Kconfig @@ -14,6 +14,14 @@ config PSTORE If you don't have a platform persistent store driver, say N. +config PSTORE_DEFAULT_KMSG_BYTES + int "Default kernel log storage space" if EXPERT + depends on PSTORE + default "10240" + help + Defines default size of pstore kernel log storage. + Can be enlarged if needed, not recommended to shrink it. + config PSTORE_DEFLATE_COMPRESS tristate "DEFLATE (ZLIB) compression" default y |