Blame SOURCES/sos-bz1961229-snapper-plugin-and-allocation-failures.patch

ba407d
From 60105e0705f3483b9a3e8e98dafd6f0e1e277ab7 Mon Sep 17 00:00:00 2001
ba407d
From: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
ba407d
Date: Mon, 19 Apr 2021 16:55:52 +0530
ba407d
Subject: [PATCH 1/3] [block]:Patch to update block pluging to collect disk
ba407d
 info
ba407d
ba407d
This patch is to update block plugin to collect
ba407d
state of sda
ba407d
ba407d
Resolves: #2504
ba407d
ba407d
Signed-off-by: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
ba407d
---
ba407d
 sos/report/plugins/block.py | 1 +
ba407d
 1 file changed, 1 insertion(+)
ba407d
ba407d
diff --git a/sos/report/plugins/block.py b/sos/report/plugins/block.py
ba407d
index f93b3231..c959d667 100644
ba407d
--- a/sos/report/plugins/block.py
ba407d
+++ b/sos/report/plugins/block.py
ba407d
@@ -38,7 +38,8 @@ class Block(Plugin, IndependentPlugin):
ba407d
             "/run/blkid/blkid.tab",
ba407d
             "/proc/partitions",
ba407d
             "/proc/diskstats",
ba407d
-            "/sys/block/*/queue/"
ba407d
+            "/sys/block/*/queue/",
ba407d
+            "/sys/block/sd*/device/state",
ba407d
         ])
ba407d
 
ba407d
         cmds = [
ba407d
-- 
ba407d
2.26.3
ba407d
ba407d
ba407d
From c6e0fe5cebd0d9581950db75fa2d234713b7e15a Mon Sep 17 00:00:00 2001
ba407d
From: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
ba407d
Date: Mon, 26 Apr 2021 23:09:19 +0530
ba407d
Subject: [PATCH 2/3] [snapper]:Ptach to update snapper plugin to collect
ba407d
 snapper info
ba407d
ba407d
This patch is to Introduce snapper plugin to collect
ba407d
/usr/lib/snapper/ information to check executable
ba407d
permission for installation-helper command
ba407d
ba407d
Resolves: #2504
ba407d
ba407d
Signed-off-by: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
ba407d
---
ba407d
 sos/report/plugins/snapper.py | 27 +++++++++++++++++++++++++++
ba407d
 1 file changed, 27 insertions(+)
ba407d
 create mode 100644 sos/report/plugins/snapper.py
ba407d
ba407d
diff --git a/sos/report/plugins/snapper.py b/sos/report/plugins/snapper.py
ba407d
new file mode 100644
ba407d
index 00000000..9ef5fec2
ba407d
--- /dev/null
ba407d
+++ b/sos/report/plugins/snapper.py
ba407d
@@ -0,0 +1,27 @@
ba407d
+# This file is part of the sos project: https://github.com/sosreport/sos
ba407d
+#
ba407d
+# This copyrighted material is made available to anyone wishing to use,
ba407d
+# modify, copy, or redistribute it subject to the terms and conditions of
ba407d
+# version 2 of the GNU General Public License.
ba407d
+#
ba407d
+# See the LICENSE file in the source distribution for further information.
ba407d
+
ba407d
+from sos.report.plugins import Plugin, IndependentPlugin
ba407d
+
ba407d
+
ba407d
+class Snapper(Plugin, IndependentPlugin):
ba407d
+
ba407d
+    short_desc = 'System snapper'
ba407d
+
ba407d
+    plugin_name = 'snapper'
ba407d
+    commands = ("snapper",)
ba407d
+
ba407d
+    def setup(self):
ba407d
+
ba407d
+        self.add_cmd_output([
ba407d
+            "ls -la /usr/lib/snapper/",
ba407d
+            "snapper --version",
ba407d
+            "snapper list"
ba407d
+        ])
ba407d
+
ba407d
+# vim: set et ts=4 sw=4 :
ba407d
-- 
ba407d
2.26.3
ba407d
ba407d
ba407d
From 61ff5ce165e654a02fe80b9de5ec8e49ed808ec9 Mon Sep 17 00:00:00 2001
ba407d
From: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
ba407d
Date: Mon, 19 Apr 2021 17:49:08 +0530
ba407d
Subject: [PATCH 3/3] [kernel]:Patch to update kernel plugin to collect debug
ba407d
 info
ba407d
ba407d
This patch is to update kernel plugin to collect
ba407d
page allocation failure info
ba407d
ba407d
Resolves: #2504
ba407d
ba407d
Signed-off-by: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
ba407d
---
ba407d
 sos/report/plugins/kernel.py | 2 ++
ba407d
 1 file changed, 2 insertions(+)
ba407d
ba407d
diff --git a/sos/report/plugins/kernel.py b/sos/report/plugins/kernel.py
ba407d
index dd7b6939..9d53ca03 100644
ba407d
--- a/sos/report/plugins/kernel.py
ba407d
+++ b/sos/report/plugins/kernel.py
ba407d
@@ -107,6 +107,8 @@ class Kernel(Plugin, IndependentPlugin):
ba407d
             "/var/log/dmesg",
ba407d
             "/sys/fs/pstore",
ba407d
             "/sys/kernel/debug/dynamic_debug/control",
ba407d
+            "/sys/kernel/debug/extfrag/unusable_index",
ba407d
+            "/sys/kernel/debug/extfrag/extfrag_index",
ba407d
             clocksource_path + "available_clocksource",
ba407d
             clocksource_path + "current_clocksource"
ba407d
         ])
ba407d
-- 
ba407d
2.26.3
ba407d