aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2013-08-13 18:46:47 +0100
committerBryn M. Reeves <bmr@redhat.com>2013-08-13 18:46:47 +0100
commit04d4e4145d695232ba7f7e0a4dd539b39de1dc8b (patch)
tree32df349b85a06ca15fecde048edc27705c698120
parent4858ce293a77cc9b973ab7552f3e0b041360b20e (diff)
downloadsos-04d4e4145d695232ba7f7e0a4dd539b39de1dc8b.tar.gz
Collect saved vmcore-dmesg.txt files in kdump plug-in
Recent versions of kexec-utils automatically generate a text file containing the dmesg buffer of the captured vmcore. This is useful for first-fault debugging and should be included. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/kdump.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/sos/plugins/kdump.py b/sos/plugins/kdump.py
index 73e5d5e3..81ce5740 100644
--- a/sos/plugins/kdump.py
+++ b/sos/plugins/kdump.py
@@ -23,7 +23,7 @@ class KDump(Plugin):
def setup(self):
self.add_copy_specs([
"/proc/cmdline"
- ])
+ ])
class RedHatKDump(KDump, RedHatPlugin):
"""Kdump related information for Red Hat distributions
@@ -35,7 +35,9 @@ class RedHatKDump(KDump, RedHatPlugin):
def setup(self):
self.add_copy_specs([
"/etc/kdump.conf",
- "/etc/udev/rules.d/*kexec.rules"])
+ "/etc/udev/rules.d/*kexec.rules",
+ "/var/crash/*/vmcore-dmesg.txt"
+ ])
class DebianKDump(KDump, DebianPlugin, UbuntuPlugin):
"""Kdump related information for Debian distributions
@@ -47,4 +49,4 @@ class DebianKDump(KDump, DebianPlugin, UbuntuPlugin):
def setup(self):
self.add_copy_specs([
"/etc/default/kdump-tools"
- ])
+ ])