blob: b42e5bd6d8ffdd124cdadbbaa05c267510cbca09 [file] [log] [blame]
Tony Luckca01d6d2010-12-28 14:25:21 -08001config PSTORE
Geliang Tangee1d2672015-10-20 00:39:03 -07002 tristate "Persistent store support"
Tony Luckca01d6d2010-12-28 14:25:21 -08003 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.
Anton Vorontsov1894a252012-05-16 05:43:08 -070014
Geliang Tang8cfc8dd2016-02-18 22:04:22 +080015choice
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
Anton Vorontsovf29e5952012-05-26 06:20:19 -070044config 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
Mark Salyzyn9d5438f2015-01-16 16:01:10 -080051config 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
Anton Vorontsov060287b2012-07-09 17:10:41 -070061config PSTORE_FTRACE
62 bool "Persistent function tracer"
63 depends on PSTORE
64 depends on FUNCTION_TRACER
Anton Vorontsov65f8c952012-07-17 14:26:15 -070065 depends on DEBUG_FS
Anton Vorontsov060287b2012-07-09 17:10:41 -070066 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
Anton Vorontsov1894a252012-05-16 05:43:08 -070074config PSTORE_RAM
75 tristate "Log panic/oops to a RAM buffer"
Anton Vorontsov1894a252012-05-16 05:43:08 -070076 depends on PSTORE
Anton Vorontsovcddb8752012-05-17 00:15:08 -070077 depends on HAS_IOMEM
78 depends on HAVE_MEMBLOCK
79 select REED_SOLOMON
80 select REED_SOLOMON_ENC8
81 select REED_SOLOMON_DEC8
Anton Vorontsov1894a252012-05-16 05:43:08 -070082 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
Mauro Carvalho Chehab8c27ceff32016-10-18 10:12:27 -020089 For more information, see Documentation/admin-guide/ramoops.rst.