xref: /openbmc/linux/fs/pstore/Kconfig (revision 239480ab)
1config 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
15choice
16        prompt "Choose compression algorithm"
17        depends on PSTORE
18        default PSTORE_ZLIB_COMPRESS
19        help
20          This option chooses compression algorithm.
21
22config 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
29config 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
36config PSTORE_LZ4_COMPRESS
37        bool "LZ4"
38        select LZ4_COMPRESS
39        select LZ4_DECOMPRESS
40        help
41          This option enables LZ4 compression algorithm support.
42endchoice
43
44config 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
51config PSTORE_PMSG
52	bool "Log user space messages"
53	depends on PSTORE
54	help
55	  When the option is enabled, pstore will export a character
56	  interface /dev/pmsg0 to log user space messages. On reboot
57	  data can be retrieved from /sys/fs/pstore/pmsg-ramoops-[ID].
58
59	  If unsure, say N.
60
61config PSTORE_FTRACE
62	bool "Persistent function tracer"
63	depends on PSTORE
64	depends on FUNCTION_TRACER
65	depends on DEBUG_FS
66	help
67	  With this option kernel traces function calls into a persistent
68	  ram buffer that can be decoded and dumped after reboot through
69	  pstore filesystem. It can be used to determine what function
70	  was last called before a reset or panic.
71
72	  If unsure, say N.
73
74config PSTORE_RAM
75	tristate "Log panic/oops to a RAM buffer"
76	depends on PSTORE
77	depends on HAS_IOMEM
78	depends on HAVE_MEMBLOCK
79	select REED_SOLOMON
80	select REED_SOLOMON_ENC8
81	select REED_SOLOMON_DEC8
82	help
83	  This enables panic and oops messages to be logged to a circular
84	  buffer in RAM where it can be read back at some later point.
85
86	  Note that for historical reasons, the module will be named
87	  "ramoops.ko".
88
89	  For more information, see Documentation/admin-guide/ramoops.rst.
90