aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMamatha Inamdar <mamatha4@linux.vnet.ibm.com>2020-05-20 14:01:40 +0530
committerJake Hunsaker <jhunsake@redhat.com>2020-06-03 11:19:30 -0400
commitd8aa0a17d94ec08fc899fce3c343f25d19134eb3 (patch)
tree645c4468802037d5275a0819a815437be0b74d01
parentb49098c47bb2f8fde8a5f0ec0a7ad6cc3e331df5 (diff)
downloadsos-d8aa0a17d94ec08fc899fce3c343f25d19134eb3.tar.gz
[kdump]:Add support to collect kdump & fadump logs
This patch updates kdump plugin to collect kdump and fadump information. In this patch we are reading, kdump configuration,panic and kexec_loaded files which are helpful to debug kdump failure issues This patch also reads sys/kernel/fadump_enabled and /sys/kernel/fadump/enabled both files as there is upstream work to deprecate these files Related: #2078 Signed-off-by: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com> Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r--sos/report/plugins/kdump.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/sos/report/plugins/kdump.py b/sos/report/plugins/kdump.py
index 5fc25a9b..41d08b5b 100644
--- a/sos/report/plugins/kdump.py
+++ b/sos/report/plugins/kdump.py
@@ -21,6 +21,15 @@ class KDump(Plugin):
def setup(self):
self.add_copy_spec([
"/proc/cmdline",
+ "/etc/sysconfig/kdump",
+ "/proc/sys/kernel/panic",
+ "/proc/sys/kernel/panic_on_oops",
+ "/sys/kernel/kexec_loaded",
+ "/sys/kernel/fadump_enabled",
+ "/sys/kernel/fadump/enabled",
+ "/sys/kernel/fadump_registered",
+ "/sys/kernel/fadump/registered",
+ "/sys/kernel/fadump/mem_reserved",
"/sys/kernel/kexec_crash_loaded",
"/sys/kernel/kexec_crash_size"
])