aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2020-01-28 15:22:51 -0500
committerJake Hunsaker <jhunsake@redhat.com>2020-02-04 12:59:09 -0500
commitdd9c27b938e53f3962940472fffc4aa8350d9943 (patch)
treedc8ba4a2657c3a165ef9926e4b9981ddc95ce4cf
parent1070f6ed363df51c860e3c15a3e32c3f1adf4292 (diff)
downloadsos-dd9c27b938e53f3962940472fffc4aa8350d9943.tar.gz
[s390] Correctly capture s390dbf
Captures the content under /sys/kernel/debug/s390dbf rather than just listing the file names. Also included are trivial stylistic fixes. Closes: #905 Resolves: #1926 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r--sos/plugins/s390.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/sos/plugins/s390.py b/sos/plugins/s390.py
index 19eb4911..8cb98f81 100644
--- a/sos/plugins/s390.py
+++ b/sos/plugins/s390.py
@@ -41,17 +41,22 @@ class S390(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
"/sys/bus/ccw/drivers/zfcp/0.*/*",
"/sys/bus/ccw/drivers/zfcp/0.*/0x*/*",
"/sys/bus/ccw/drivers/zfcp/0.*/0x*/0x*/*",
+ "/sys/kernel/debug/s390dbf",
"/etc/zipl.conf",
"/etc/zfcp.conf",
"/etc/sysconfig/dumpconf",
"/etc/src_vipa.conf",
"/etc/ccwgroup.conf",
- "/etc/chandev.conf"])
+ "/etc/chandev.conf"
+ ])
+
+ # skip flush as it is useless for sos collection
+ self.add_forbidden_path("/sys/kernel/debug/s390dbf/*/flush")
+
self.add_cmd_output([
"lscss",
"lsdasd",
"lstape",
- "find /proc/s390dbf -type f",
"qethconf list_all",
"lsqeth",
"lszfcp",
@@ -59,6 +64,7 @@ class S390(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
"icainfo",
"icastats"
])
+
r = self.exec_cmd("ls /dev/dasd?")
dasd_dev = r['output']
for x in dasd_dev.split('\n'):