commit | ff92ffe29db4099fa44864fc22f40843f4ca1834 | [log] [tgz] |
---|---|---|
author | George Liu <liuxiwei@inspur.com> | Tue Feb 09 15:01:53 2021 +0800 |
committer | Jayanth Othayoth <ojayanth@in.ibm.com> | Tue Jul 13 07:29:37 2021 +0000 |
tree | a542118d81c859e88bd08fb49091ee61af6ecda1 | |
parent | bb9366d06d02d732efbb7fc1e8ae86fe01dcf29e [diff] |
Collect ramoops data into BMC dump - Add ramoops file monitor and support to enable ramoops data collection for kernel dump. - Systemd will collect ramoops data and write it into /var/lib/systemd/pstore when a system kernel oops/panics. - Today, need to grab everything in that directory, put it in a dump and then delete everything in that directory. Tested: - Simulate a kernel panic by creating similar data in the expected location. `dmesg > /var/lib/systemd/pstore/dmesg1.txt` `dmesg > /var/lib/systemd/pstore/dmesg2.txt` `dmesg > /var/lib/systemd/pstore/dmesg3.txt` `dmesg > /var/lib/systemd/pstore/dmesg4.txt` tar -tvf obmcdump_1_248.tar.xz: drwxr-xr-x 0/0 0 1970-01-01 00:01:32 obmcdump_1_248/ -rw-r--r-- 0/0 21239 1970-01-01 00:01:32 obmcdump_1_248/dmesg1.txt -rw-r--r-- 0/0 21239 1970-01-01 00:01:32 obmcdump_1_248/dmesg2.txt -rw-r--r-- 0/0 21239 1970-01-01 00:01:32 obmcdump_1_248/dmesg3.txt -rw-r--r-- 0/0 21239 1970-01-01 00:01:32 obmcdump_1_248/dmesg4.txt -rw-r--r-- 0/0 162 1970-01-01 00:01:32 obmcdump_1_248/dreport.log -rw-r--r-- 0/0 294 1970-01-01 00:01:31 obmcdump_1_248/os-release -rw-r--r-- 0/0 278 1970-01-01 00:01:31 obmcdump_1_248/summary.log Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I05bca408f4dcc2b62350104a0c5f757d740dde22
Phosphor Debug Collector provides mechanisms to collect various log files and system parameters. Used to troubleshoot problems in OpenBMC based systems.
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 -Doe-sdk=enabled -Dtests=enabled build ninja -C build test