commit | d56bab55fe4d3d1436eac5ff5ccc3fd95537b291 | [log] [tgz] |
---|---|---|
author | Jian Zhang <zhangjian.3032@bytedance.com> | Fri Aug 09 11:11:42 2024 +0800 |
committer | Jayanth Othayoth <ojayanth@gmail.com> | Tue Feb 11 01:49:31 2025 -0600 |
tree | bf4b91f7ef77fe9182733ba104eb6f4b3eb416d7 | |
parent | ffbb9d6d27b798a60bf643d0b4b8b499c61b7bf6 [diff] |
dreport: fix procfd missing During the execution of 'ls -Al /proc/*/fd/ 2> /dev/null', some processes may stop, like `while true; do echo "Hello" > /dev/null; done` Causing the ls cmd to fail, and as a result, the procfs.log will not be collected in the dump log. So ensure ls procfd returns success. Tested: 1. Run `while true; do echo "Hello" > /dev/null; done` in the background. 2. Run `set -e; while true; do ls -Al /proc/*/fd/ 2> /dev/null || true; done`, the command will not stop (before the fix, the command will stop quickly). Change-Id: I1f4e8fda000f303fd579825e0a94efdba5a097eb Signed-off-by: Jian Zhang <zhangjian.3032@bytedance.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