diff options
author | Chris Newcomer <chris.newcomer@canonical.com> | 2017-05-12 10:55:27 -0700 |
---|---|---|
committer | Adam Stokes <battlemidget@users.noreply.github.com> | 2017-05-12 13:55:27 -0400 |
commit | 6a4a5fed78ab01acb411c6d0c4df23127ec5f792 (patch) | |
tree | e647b66d239d5f32edeb2e6159d41b5e476087dd | |
parent | c1288230f29d334687827b8367ec58ef79b7e6fe (diff) | |
download | sos-6a4a5fed78ab01acb411c6d0c4df23127ec5f792.tar.gz |
[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 <chris@thenewcomers.org>
Signed-off-by: Adam Stokes <battlemidget@users.noreply.github.com>
-rw-r--r-- | sos/plugins/kernel.py | 1 | ||||
-rw-r--r-- | 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", |