Tony Luck | ca01d6d | 2010-12-28 14:25:21 -0800 | [diff] [blame] | 1 | config PSTORE |
Geliang Tang | ee1d267 | 2015-10-20 00:39:03 -0700 | [diff] [blame] | 2 | tristate "Persistent store support" |
Tony Luck | ca01d6d | 2010-12-28 14:25:21 -0800 | [diff] [blame] | 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. |
Anton Vorontsov | 1894a25 | 2012-05-16 05:43:08 -0700 | [diff] [blame] | 14 | |
Geliang Tang | 8cfc8dd | 2016-02-18 22:04:22 +0800 | [diff] [blame] | 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 | |
Anton Vorontsov | f29e595 | 2012-05-26 06:20:19 -0700 | [diff] [blame] | 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 | |
Mark Salyzyn | 9d5438f | 2015-01-16 16:01:10 -0800 | [diff] [blame] | 51 | config 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 Vorontsov | 060287b | 2012-07-09 17:10:41 -0700 | [diff] [blame] | 61 | config PSTORE_FTRACE |
| 62 | bool "Persistent function tracer" |
| 63 | depends on PSTORE |
| 64 | depends on FUNCTION_TRACER |
Anton Vorontsov | 65f8c95 | 2012-07-17 14:26:15 -0700 | [diff] [blame] | 65 | depends on DEBUG_FS |
Anton Vorontsov | 060287b | 2012-07-09 17:10:41 -0700 | [diff] [blame] | 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 | |
Anton Vorontsov | 1894a25 | 2012-05-16 05:43:08 -0700 | [diff] [blame] | 74 | config PSTORE_RAM |
| 75 | tristate "Log panic/oops to a RAM buffer" |
Anton Vorontsov | 1894a25 | 2012-05-16 05:43:08 -0700 | [diff] [blame] | 76 | depends on PSTORE |
Anton Vorontsov | cddb875 | 2012-05-17 00:15:08 -0700 | [diff] [blame] | 77 | depends on HAS_IOMEM |
| 78 | depends on HAVE_MEMBLOCK |
| 79 | select REED_SOLOMON |
| 80 | select REED_SOLOMON_ENC8 |
| 81 | select REED_SOLOMON_DEC8 |
Anton Vorontsov | 1894a25 | 2012-05-16 05:43:08 -0700 | [diff] [blame] | 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 | |
Mauro Carvalho Chehab | 8c27ceff3 | 2016-10-18 10:12:27 -0200 | [diff] [blame] | 89 | For more information, see Documentation/admin-guide/ramoops.rst. |