[PATCH v2 0/2] Add command to display or save Linux PStore dumps
Frédéric Danis
frederic.danis at collabora.com
Wed Feb 26 10:42:09 CET 2020
This serie of patches adds a new pstore command allowing to display or save
ramoops logs (oops, panic, console, ftrace and user) generated by a previous
kernel crash.
PStore parameters can be set in U-Boot configuration file, or at run-time
using "pstore set" command. Records size should be the same as the ones
used by kernel, and should be a power of 2.
Since v1:
- Fix 64bit mode build warnings
- Add documentation
- Add function description comments
- Replace calls to pr_debug() by debug()
- Add CONFIG_CMD_PSTORE to sandbox and sandbox64
- Add unit tests
Frédéric Danis (2):
cmd: Add command to display or save Linux PStore dumps
test: Add PStore command tests
cmd/Kconfig | 63 ++++
cmd/Makefile | 1 +
cmd/pstore.c | 505 +++++++++++++++++++++++++++++
configs/sandbox64_defconfig | 1 +
configs/sandbox_defconfig | 1 +
doc/index.rst | 7 +
doc/pstore.rst | 68 ++++
test/py/tests/test_pstore.py | 82 +++++
test/py/tests/test_pstore_data.hex | Bin 0 -> 1048576 bytes
9 files changed, 728 insertions(+)
create mode 100644 cmd/pstore.c
create mode 100644 doc/pstore.rst
create mode 100644 test/py/tests/test_pstore.py
create mode 100644 test/py/tests/test_pstore_data.hex
--
2.18.0
More information about the U-Boot
mailing list