GNU Linux-libre 4.14.332-gnu1
[releases.git] / fs / pstore / Kconfig
1 config PSTORE
2         tristate "Persistent store support"
3         default n
4         help
5            This option enables generic access to platform level
6            persistent storage via "pstore" filesystem that can
7            be mounted as /dev/pstore.  Only useful if you have
8            a platform level driver that registers with pstore to
9            provide the data, so you probably should just go say "Y"
10            (or "M") to a platform specific persistent store driver
11            (e.g. ACPI_APEI on X86) which will select this for you.
12            If you don't have a platform persistent store driver,
13            say N.
14
15 choice
16         prompt "Choose compression algorithm"
17         depends on PSTORE
18         default PSTORE_ZLIB_COMPRESS
19         help
20           This option chooses compression algorithm.
21
22 config PSTORE_ZLIB_COMPRESS
23         bool "ZLIB"
24         select ZLIB_DEFLATE
25         select ZLIB_INFLATE
26         help
27           This option enables ZLIB compression algorithm support.
28
29 config PSTORE_LZO_COMPRESS
30         bool "LZO"
31         select LZO_COMPRESS
32         select LZO_DECOMPRESS
33         help
34           This option enables LZO compression algorithm support.
35
36 config PSTORE_LZ4_COMPRESS
37         bool "LZ4"
38         select LZ4_COMPRESS
39         select LZ4_DECOMPRESS
40         help
41           This option enables LZ4 compression algorithm support.
42 endchoice
43
44 config PSTORE_CONSOLE
45         bool "Log kernel console messages"
46         depends on PSTORE
47         help
48           When the option is enabled, pstore will log all kernel
49           messages, even if no oops or panic happened.
50
51 config PSTORE_PMSG
52         bool "Log user space messages"
53         depends on PSTORE
54         select RT_MUTEXES
55         help
56           When the option is enabled, pstore will export a character
57           interface /dev/pmsg0 to log user space messages. On reboot
58           data can be retrieved from /sys/fs/pstore/pmsg-ramoops-[ID].
59
60           If unsure, say N.
61
62 config PSTORE_FTRACE
63         bool "Persistent function tracer"
64         depends on PSTORE
65         depends on FUNCTION_TRACER
66         depends on DEBUG_FS
67         help
68           With this option kernel traces function calls into a persistent
69           ram buffer that can be decoded and dumped after reboot through
70           pstore filesystem. It can be used to determine what function
71           was last called before a reset or panic.
72
73           If unsure, say N.
74
75 config PSTORE_RAM
76         tristate "Log panic/oops to a RAM buffer"
77         depends on PSTORE
78         depends on HAS_IOMEM
79         depends on HAVE_MEMBLOCK
80         select REED_SOLOMON
81         select REED_SOLOMON_ENC8
82         select REED_SOLOMON_DEC8
83         help
84           This enables panic and oops messages to be logged to a circular
85           buffer in RAM where it can be read back at some later point.
86
87           Note that for historical reasons, the module will be named
88           "ramoops.ko".
89
90           For more information, see Documentation/admin-guide/ramoops.rst.