commit | 6f2f09853658c4f1c3e090bf50510d3f313997a2 | [log] [tgz] |
---|---|---|
author | Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> | Thu Jun 29 03:46:25 2023 -0500 |
committer | Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> | Sun Jul 16 06:47:51 2023 -0500 |
tree | 8bd1bbf58d2508a9e26202e6508f5385704e8f2c | |
parent | 0518b74d7e03186b1128a37947a4973be4df5ea6 [diff] |
BMCDump: dump subtype input parameter support The BMC dump is not accepting any parameters to specify the type of dump or level of data to be collected. It was always creating a default user-requested dump. This commit allows for the specification of the dump type during the dump creation process. A new table has been added in a new header file which stores the valid dump types. When a new dump is requested, the specified dump type is verified against this table. If no dump type is mentioned, a user-requested BMC dump is created for backward compatibility. If an invalid dump type is mentioned, an Invalid Argument exception is thrown. Tested: - Create BMC dump with no arguments - Create BMC dump with type as user - Create a error log dump and make sure other types of dumps which is using internal interface is not impacted. Change-Id: I79f68be6ac6892ac7754b7221db64c22330b1822 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