# SPDX-License-Identifier: GPL-2.0-only
config [31mCONFIG_PSTORE[0m
tristate "Persistent store support"
select [31mCONFIG_CRYPTO[0m if [31mCONFIG_PSTORE_COMPRESS[0m
default n
help
This option enables generic access to platform level
persistent storage via "pstore" filesystem that can
be mounted as /dev/pstore. Only useful if you have
a platform level driver that registers with pstore to
provide the data, so you probably should just go say "Y"
(or "M") to a platform specific persistent store driver
(e.g. [31mCONFIG_ACPI_APEI[0m on [31mCONFIG_X86[0m) which will select this for you.
If you don't have a platform persistent store driver,
say N.
config [31mCONFIG_PSTORE_DEFLATE_COMPRESS[0m
tristate "DEFLATE (ZLIB) compression"
default y
depends on [31mCONFIG_PSTORE[0m
select [31mCONFIG_CRYPTO_DEFLATE[0m
help
This option enables DEFLATE (also known as ZLIB) compression
algorithm support.
config [31mCONFIG_PSTORE_LZO_COMPRESS[0m
tristate "LZO compression"
depends on [31mCONFIG_PSTORE[0m
select [31mCONFIG_CRYPTO_LZO[0m
help
This option enables LZO compression algorithm support.
config [31mCONFIG_PSTORE_LZ4_COMPRESS[0m
tristate "LZ4 compression"
depends on [31mCONFIG_PSTORE[0m
select [31mCONFIG_CRYPTO_LZ4[0m
help
This option enables LZ4 compression algorithm support.
config [31mCONFIG_PSTORE_LZ4HC_COMPRESS[0m
tristate "LZ4HC compression"
depends on [31mCONFIG_PSTORE[0m
select [31mCONFIG_CRYPTO_LZ4HC[0m
help
This option enables LZ4HC (high compression) mode algorithm.
config [31mCONFIG_PSTORE_842_COMPRESS[0m
bool "842 compression"
depends on [31mCONFIG_PSTORE[0m
select [31mCONFIG_CRYPTO_842[0m
help
This option enables 842 compression algorithm support.
config [31mCONFIG_PSTORE_ZSTD_COMPRESS[0m
bool "zstd compression"
depends on [31mCONFIG_PSTORE[0m
select [31mCONFIG_CRYPTO_ZSTD[0m
help
This option enables zstd compression algorithm support.
config [31mCONFIG_PSTORE_COMPRESS[0m
def_bool y
depends on [31mCONFIG_PSTORE[0m
depends on [31mCONFIG_PSTORE_DEFLATE_COMPRESS[0m || [31mCONFIG_PSTORE_LZO_COMPRESS[0m || \
[31mCONFIG_PSTORE_LZ4_COMPRESS[0m || [31mCONFIG_PSTORE_LZ4HC_COMPRESS[0m || \
[31mCONFIG_PSTORE_842_COMPRESS[0m || [31mCONFIG_PSTORE_ZSTD_COMPRESS[0m
choice
prompt "Default pstore compression algorithm"
depends on [31mCONFIG_PSTORE_COMPRESS[0m
help
This option chooses the default active compression algorithm.
This change be changed at boot with "pstore.compress=..." on
the kernel command line.
Currently, pstore has support for 6 compression algorithms:
deflate, lzo, lz4, lz4hc, 842 and zstd.
The default compression algorithm is deflate.
config [31mCONFIG_PSTORE_DEFLATE_COMPRESS_DEFAULT[0m
bool "deflate" if [31mCONFIG_PSTORE_DEFLATE_COMPRESS[0m
config [31mCONFIG_PSTORE_LZO_COMPRESS_DEFAULT[0m
bool "lzo" if [31mCONFIG_PSTORE_LZO_COMPRESS[0m
config [31mCONFIG_PSTORE_LZ4_COMPRESS_DEFAULT[0m
bool "lz4" if [31mCONFIG_PSTORE_LZ4_COMPRESS[0m
config [31mCONFIG_PSTORE_LZ4HC_COMPRESS_DEFAULT[0m
bool "lz4hc" if [31mCONFIG_PSTORE_LZ4HC_COMPRESS[0m
config [31mCONFIG_PSTORE_842_COMPRESS_DEFAULT[0m
bool "842" if [31mCONFIG_PSTORE_842_COMPRESS[0m
config [31mCONFIG_PSTORE_ZSTD_COMPRESS_DEFAULT[0m
bool "zstd" if [31mCONFIG_PSTORE_ZSTD_COMPRESS[0m
endchoice
config [31mCONFIG_PSTORE_COMPRESS_DEFAULT[0m
string
depends on [31mCONFIG_PSTORE_COMPRESS[0m
default "deflate" if [31mCONFIG_PSTORE_DEFLATE_COMPRESS_DEFAULT[0m
default "lzo" if [31mCONFIG_PSTORE_LZO_COMPRESS_DEFAULT[0m
default "lz4" if [31mCONFIG_PSTORE_LZ4_COMPRESS_DEFAULT[0m
default "lz4hc" if [31mCONFIG_PSTORE_LZ4HC_COMPRESS_DEFAULT[0m
default "842" if [31mCONFIG_PSTORE_842_COMPRESS_DEFAULT[0m
default "zstd" if [31mCONFIG_PSTORE_ZSTD_COMPRESS_DEFAULT[0m
config [31mCONFIG_PSTORE_CONSOLE[0m
bool "Log kernel console messages"
depends on [31mCONFIG_PSTORE[0m
help
When the option is enabled, pstore will log all kernel
messages, even if no oops or panic happened.
config [31mCONFIG_PSTORE_PMSG[0m
bool "Log user space messages"
depends on [31mCONFIG_PSTORE[0m
help
When the option is enabled, pstore will export a character
interface /dev/pmsg0 to log user space messages. On reboot
data can be retrieved from /sys/fs/pstore/pmsg-ramoops-[ID].
If unsure, say N.
config [31mCONFIG_PSTORE_FTRACE[0m
bool "Persistent function tracer"
depends on [31mCONFIG_PSTORE[0m
depends on [31mCONFIG_FUNCTION_TRACER[0m
depends on [31mCONFIG_DEBUG_FS[0m
help
With this option kernel traces function calls into a persistent
ram buffer that can be decoded and dumped after reboot through
pstore filesystem. It can be used to determine what function
was last called before a reset or panic.
If unsure, say N.
config [31mCONFIG_PSTORE_RAM[0m
tristate "Log panic/oops to a RAM buffer"
depends on [31mCONFIG_PSTORE[0m
depends on [31mCONFIG_HAS_IOMEM[0m
select [31mCONFIG_REED_SOLOMON[0m
select [31mCONFIG_REED_SOLOMON_ENC8[0m
select [31mCONFIG_REED_SOLOMON_DEC8[0m
help
This enables panic and oops messages to be logged to a circular
buffer in RAM where it can be read back at some later point.
Note that for historical reasons, the module will be named
"ramoops.ko".
For more information, see Documentation/admin-guide/ramoops.rst.