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

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