aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Castillo <jcastillo@redhat.com>2020-07-09 08:16:32 +0100
committerJake Hunsaker <jhunsake@redhat.com>2020-07-09 12:46:56 -0400
commit3a50987a50bb1fcd90c4965089d22b9d90846f15 (patch)
tree3d12ba436057b2ef5a3b96e85a2b5ff798c876d4
parentac038bf53c8caea7a142b0d10e1b1fe90705a328 (diff)
downloadsos-3a50987a50bb1fcd90c4965089d22b9d90846f15.tar.gz
[sar] Extend command sadf to get more data out of sar
Currently, the sadf command translates to a XML file the content of the CPU data captured in sar. With this patch, all the data captured via sar is translated into the XML file. Resolves: #2143 Signed-off-by: Jose Castillo <jcastillo@redhat.com> Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r--sos/report/plugins/sar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/report/plugins/sar.py b/sos/report/plugins/sar.py
index 6a07bf12..8319353f 100644
--- a/sos/report/plugins/sar.py
+++ b/sos/report/plugins/sar.py
@@ -50,7 +50,7 @@ class Sar(Plugin,):
if sar_filename not in dir_list:
sar_cmd = 'sh -c "sar -A -f %s"' % sa_data_path
self.add_cmd_output(sar_cmd, sar_filename)
- sadf_cmd = "sadf -x %s" % sa_data_path
+ sadf_cmd = "sadf -x -- -A %s" % sa_data_path
self.add_cmd_output(sadf_cmd, "%s.xml" % fname)