Add log collection for BMC kernel sys trace
Changes:
- Add log collection for the file
/sys/kernel/tracing/trace
Tested:
- Tested on the sandbox.
Change-Id: If6a38de6b70502034e6251bc339fa03f3e330d90
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/ffdc/ffdc_config.yaml b/ffdc/ffdc_config.yaml
index eff777f..196c2ec 100644
--- a/ffdc/ffdc_config.yaml
+++ b/ffdc/ffdc_config.yaml
@@ -86,6 +86,7 @@
- "cat /var/lib/phosphor-software-manager/pnor/rw/DEVTREE >
/tmp/DEVTREE"
- "/usr/bin/vpd-tool -i > /tmp/vpd-inventory.txt"
+ - "cat /sys/kernel/tracing/trace > /tmp/kernel_sys_trace.txt"
FILES:
- "/tmp/BMC_flash_side.txt"
- "/tmp/BMC_hwmon.txt"
@@ -113,6 +114,7 @@
- "/tmp/fan_monitor_dump.json"
- "/tmp/DEVTREE"
- "/tmp/vpd-inventory.txt"
+ - "/tmp/kernel_sys_trace.txt"
PROTOCOL:
- "SSH"
diff --git a/lib/openbmc_ffdc_list.py b/lib/openbmc_ffdc_list.py
index 6e33481..a6218f2 100755
--- a/lib/openbmc_ffdc_list.py
+++ b/lib/openbmc_ffdc_list.py
@@ -106,6 +106,9 @@
"cat /var/lib/phosphor-software-manager/pnor/rw/DEVTREE >"
" /tmp/DEVTREE 2>&1"
),
+ "kernel_sys_trace.txt": (
+ "cat /sys/kernel/tracing/trace >/tmp/kernel_sys_trace.txt 2>&1"
+ ),
},
}
# Add file name and corresponding command needed for all Linux distributions