Skip to content

Commit 6299806

Browse files
sourabhjainsTurboTurtle
authored andcommitted
[kdump]: Collect everything under /sys/kernel/fadump dir
Kernel commit 9dc140785961e ("powerpc/fadump: update documentation about bootargs_append") added /sys/kernel/fadump/bootargs_append to set up additional arguments for the fadump kernel. To debug fadump-related issues, having this new sysfs entry is critical, so collect it. Since sos is already collecting most of the files currently present under /sys/kernel/fadump by listing them individually, let's instead collect everything inside /sys/kernel/fadump by listing the entire directory. This change will not only ensure the collection of /sys/kernel/fadump/bootargs_append, but will also help capture any new fadump-related sysfs entries introduced in the future. Note: the total size of all sysfs files under /sys/kernel/fadump is in KBs. Signed-off-by: Sourabh Jain <sourabhjain@linux.ibm.com>
1 parent d2b74d5 commit 6299806

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

sos/report/plugins/kdump.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,9 @@ def setup(self):
2525
"/proc/sys/kernel/panic",
2626
"/proc/sys/kernel/panic_on_oops",
2727
"/sys/kernel/kexec_loaded",
28+
"/sys/kernel/fadump",
2829
"/sys/kernel/fadump_enabled",
29-
"/sys/kernel/fadump/enabled",
3030
"/sys/kernel/fadump_registered",
31-
"/sys/kernel/fadump/registered",
32-
"/sys/kernel/fadump/mem_reserved",
3331
"/sys/kernel/kexec_crash_size"
3432
])
3533

0 commit comments

Comments
 (0)