Kconfig 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. config PSTORE
  2. tristate "Persistent store support"
  3. select CRYPTO if PSTORE_COMPRESS
  4. default n
  5. help
  6. This option enables generic access to platform level
  7. persistent storage via "pstore" filesystem that can
  8. be mounted as /dev/pstore. Only useful if you have
  9. a platform level driver that registers with pstore to
  10. provide the data, so you probably should just go say "Y"
  11. (or "M") to a platform specific persistent store driver
  12. (e.g. ACPI_APEI on X86) which will select this for you.
  13. If you don't have a platform persistent store driver,
  14. say N.
  15. config PSTORE_DEFLATE_COMPRESS
  16. tristate "DEFLATE (ZLIB) compression"
  17. default y
  18. depends on PSTORE
  19. select CRYPTO_DEFLATE
  20. help
  21. This option enables DEFLATE (also known as ZLIB) compression
  22. algorithm support.
  23. config PSTORE_LZO_COMPRESS
  24. tristate "LZO compression"
  25. depends on PSTORE
  26. select CRYPTO_LZO
  27. help
  28. This option enables LZO compression algorithm support.
  29. config PSTORE_LZ4_COMPRESS
  30. tristate "LZ4 compression"
  31. depends on PSTORE
  32. select CRYPTO_LZ4
  33. help
  34. This option enables LZ4 compression algorithm support.
  35. config PSTORE_LZ4HC_COMPRESS
  36. tristate "LZ4HC compression"
  37. depends on PSTORE
  38. select CRYPTO_LZ4HC
  39. help
  40. This option enables LZ4HC (high compression) mode algorithm.
  41. config PSTORE_842_COMPRESS
  42. bool "842 compression"
  43. depends on PSTORE
  44. select CRYPTO_842
  45. help
  46. This option enables 842 compression algorithm support.
  47. config PSTORE_ZSTD_COMPRESS
  48. bool "zstd compression"
  49. depends on PSTORE
  50. select CRYPTO_ZSTD
  51. help
  52. This option enables zstd compression algorithm support.
  53. config PSTORE_COMPRESS
  54. def_bool y
  55. depends on PSTORE
  56. depends on PSTORE_DEFLATE_COMPRESS || PSTORE_LZO_COMPRESS || \
  57. PSTORE_LZ4_COMPRESS || PSTORE_LZ4HC_COMPRESS || \
  58. PSTORE_842_COMPRESS || PSTORE_ZSTD_COMPRESS
  59. choice
  60. prompt "Default pstore compression algorithm"
  61. depends on PSTORE_COMPRESS
  62. help
  63. This option chooses the default active compression algorithm.
  64. This change be changed at boot with "pstore.compress=..." on
  65. the kernel command line.
  66. Currently, pstore has support for 6 compression algorithms:
  67. deflate, lzo, lz4, lz4hc, 842 and zstd.
  68. The default compression algorithm is deflate.
  69. config PSTORE_DEFLATE_COMPRESS_DEFAULT
  70. bool "deflate" if PSTORE_DEFLATE_COMPRESS
  71. config PSTORE_LZO_COMPRESS_DEFAULT
  72. bool "lzo" if PSTORE_LZO_COMPRESS
  73. config PSTORE_LZ4_COMPRESS_DEFAULT
  74. bool "lz4" if PSTORE_LZ4_COMPRESS
  75. config PSTORE_LZ4HC_COMPRESS_DEFAULT
  76. bool "lz4hc" if PSTORE_LZ4HC_COMPRESS
  77. config PSTORE_842_COMPRESS_DEFAULT
  78. bool "842" if PSTORE_842_COMPRESS
  79. config PSTORE_ZSTD_COMPRESS_DEFAULT
  80. bool "zstd" if PSTORE_ZSTD_COMPRESS
  81. endchoice
  82. config PSTORE_COMPRESS_DEFAULT
  83. string
  84. depends on PSTORE_COMPRESS
  85. default "deflate" if PSTORE_DEFLATE_COMPRESS_DEFAULT
  86. default "lzo" if PSTORE_LZO_COMPRESS_DEFAULT
  87. default "lz4" if PSTORE_LZ4_COMPRESS_DEFAULT
  88. default "lz4hc" if PSTORE_LZ4HC_COMPRESS_DEFAULT
  89. default "842" if PSTORE_842_COMPRESS_DEFAULT
  90. default "zstd" if PSTORE_ZSTD_COMPRESS_DEFAULT
  91. config PSTORE_CONSOLE
  92. bool "Log kernel console messages"
  93. depends on PSTORE
  94. help
  95. When the option is enabled, pstore will log all kernel
  96. messages, even if no oops or panic happened.
  97. config PSTORE_PMSG
  98. bool "Log user space messages"
  99. depends on PSTORE
  100. help
  101. When the option is enabled, pstore will export a character
  102. interface /dev/pmsg0 to log user space messages. On reboot
  103. data can be retrieved from /sys/fs/pstore/pmsg-ramoops-[ID].
  104. If unsure, say N.
  105. config PSTORE_FTRACE
  106. bool "Persistent function tracer"
  107. depends on PSTORE
  108. depends on FUNCTION_TRACER
  109. depends on DEBUG_FS
  110. help
  111. With this option kernel traces function calls into a persistent
  112. ram buffer that can be decoded and dumped after reboot through
  113. pstore filesystem. It can be used to determine what function
  114. was last called before a reset or panic.
  115. If unsure, say N.
  116. config PSTORE_RAM
  117. tristate "Log panic/oops to a RAM buffer"
  118. depends on PSTORE
  119. depends on HAS_IOMEM
  120. depends on HAVE_MEMBLOCK
  121. select REED_SOLOMON
  122. select REED_SOLOMON_ENC8
  123. select REED_SOLOMON_DEC8
  124. help
  125. This enables panic and oops messages to be logged to a circular
  126. buffer in RAM where it can be read back at some later point.
  127. Note that for historical reasons, the module will be named
  128. "ramoops.ko".
  129. For more information, see Documentation/admin-guide/ramoops.rst.