commit | 93f064102cc060d913e7492f32d60757b6f100a4 | [log] [tgz] |
---|---|---|
author | Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> | Sun Jun 02 05:16:51 2024 -0500 |
committer | Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> | Tue Jun 18 11:55:31 2024 -0500 |
tree | 5eb70c82390260d665d13c599b7468f1f40ed7ad | |
parent | fa5459871335906fc1cd21037ac74aca155a991d [diff] |
Add Serialization Support for Dump Entry Attributes Implemented serialization of dump entry attributes using the nlohmann::json library. Added serialization support in the Dump Entry class, serializing attributes including originatorId, originatorType, and startTime. These attributes are not part of the dump filename and thus require serialization to ensure their state is preserved. Deserialization will occur only if the serialization version matches and the dump ID in the dump object matches the ID in the serialized file. Tests: - Created BMC dumps and restarted service - Created BMC dumps and restarted BMC - Created 200 BMC dumps and restarted service and BMC multiple times File: ``` {"dumpId":2,"originatorId":"","originatorType":1,"startTime":1718199238942411,"version":1} ``` Change-Id: I16ecb058bddd464c8771bd8d08a50ea1877747ed Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
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