From 6a4a5fed78ab01acb411c6d0c4df23127ec5f792 Mon Sep 17 00:00:00 2001 From: Chris Newcomer Date: Fri, 12 May 2017 10:55:27 -0700 Subject: [kernel] add /sys/fs/pstore collection for all platforms (#1008) The pstore data should be collected upon sosreport run for all architecture (currently only enabled in powerpc.py) because the data there will include any past oops event and/or panic events. This data would assist diagnosing panics with little other data available. Also, the data included is a few kb in size, so it will not add much size to the output of the report. I just moved the /sys/fs/pstore collection from powerpc.py to kernel.py in order to have it collect for all architectures. Signed-off-by: Chris Newcomer Signed-off-by: Adam Stokes --- sos/plugins/kernel.py | 1 + sos/plugins/powerpc.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sos/plugins/kernel.py b/sos/plugins/kernel.py index 833f4bfb..3bd4616c 100644 --- a/sos/plugins/kernel.py +++ b/sos/plugins/kernel.py @@ -84,6 +84,7 @@ class Kernel(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): "/proc/lock*", "/proc/misc", "/var/log/dmesg", + "/sys/fs/pstore", clocksource_path + "available_clocksource", clocksource_path + "current_clocksource" ]) diff --git a/sos/plugins/powerpc.py b/sos/plugins/powerpc.py index 1868d4d9..a4c92d0b 100644 --- a/sos/plugins/powerpc.py +++ b/sos/plugins/powerpc.py @@ -48,8 +48,7 @@ class PowerPC(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin): "/proc/swaps", "/proc/version", "/dev/nvram", - "/var/lib/lsvpd/", - "/sys/fs/pstore/" + "/var/lib/lsvpd/" ]) self.add_cmd_output([ "ppc64_cpu --smt", -- cgit