commit | 5e129e228db1c2d7506a31a771d2e4fb4d34d1ae | [log] [tgz] |
---|---|---|
author | Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> | Thu May 06 08:55:36 2021 -0500 |
committer | Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> | Thu Apr 27 09:09:00 2023 -0500 |
tree | 371508eb3fa7af0237c436c998371fa38e721410 | |
parent | 4a959840ae6f08cde2ae24c129647e7136f1bbb0 [diff] |
OpenPOWER: Add support for hardware dump Hardware dump is a collection hardware state information, including various registers, and it is used for debugging system checkstop. checkstop is the descriptive term for entire system termination by the hardware due to a detected error. This commits adds - Hardware dump entry implementation - Hardware dump manager implementation Tested: - Create a hardware dump busctl --verbose call org.open_power.Dump.Manager /org/openpower/dump xyz.openbmc_project.Dump.Create CreateDump a{sv} 3 "com.ibm.Dump.Create.CreateParameters.DumpType" s "com.ibm.Dump.Create.DumpType.Hardware" "com.ibm.Dump.Create.CreateParameters.ErrorLogId" t 0xDEADBEEF "com.ibm.Dump.Create.CreateParameters.FailingUnitId" t 1 MESSAGE "o" { OBJECT_PATH "/xyz/openbmc_project/dump/hardware/entry/1"; }; /var/lib/phosphor-debug-collector/hardwaredump/1/hwdump_1_1627559369.tar.gz - Delete a hardware dump busctl call xyz.openbmc_project.Dump.Manager /xyz/openbmc_project/dump/hardware/entry/1 xyz.openbmc_project.Object.Delete Delete - Offload hardware dump - Restore hardware dumps after restart Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> Change-Id: I7f6b83896b2c78d9eb4295212a62476b1fe1d6c0
Phosphor Debug Collector provides mechanisms to collect various log files and system parameters. Used to troubleshoot problems in OpenBMC based systems.
One such mechanism is dreport, a script that collects debug data and packages it into an archive file.
To build this package with meson, do the following steps:
1. meson builddir 2. ninja -C builddir
To clean the built files run ninja -C builddir clean
.
Tests can be run in the CI docker container, refer local-ci-build
or with an OpenBMC x86 sdk(see below for x86 steps).
meson -Dtests=enabled build ninja -C build test