内核态配置:
CONFIG_PSTORE=y
# CONFIG_PSTORE_COMPRESS is not set
# CONFIG_PSTORE_COMPRESS_DEFAULT="deflate"
# CONFIG_PSTORE_CONSOLE is not set
# CONFIG_PSTORE_DEFLATE_COMPRESS is not set
# CONFIG_PSTORE_DEFLATE_COMPRESS_DEFAULT is not set
# CONFIG_PSTORE_842_COMPRESS is not set
# CONFIG_PSTORE_LZ4_COMPRESS is not set
# CONFIG_PSTORE_LZ4HC_COMPRESS is not set
# CONFIG_PSTORE_LZO_COMPRESS is not set
# CONFIG_PSTORE_PMSG is not set
CONFIG_PSTORE_RAM=y
# CONFIG_PSTORE_ZSTD_COMPRESS is not set
# CONFIG_REED_SOLOMON is not set
# CONFIG_REED_SOLOMON_DEC8 is not set
# CONFIG_REED_SOLOMON_ENC8 is not set
用户态配置:
grep -r 'Kernel panic' /sys/fs/pstore/ | wc -l", "r"
cat /sys/fs/pstore/dmesg-ramoops* >> /tmp/1.txt
cat /var/log/dmesg >> /tmp/1.txt
oops/panic/boot日志pstore机制
于 2024-06-14 09:41:51 首次发布