aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2022-09-29 13:51:48 -0400
committerJake Hunsaker <jhunsake@redhat.com>2022-09-30 15:00:07 -0400
commit295649df0c1e28542e4d100254002192cbd99984 (patch)
treef3737d1615aa706123b8721851f11a3cbffb9b91
parent8815ed15eeb299cb191992675079a7882d0dd2be (diff)
downloadsos-295649df0c1e28542e4d100254002192cbd99984.tar.gz
[Plugin] Collect `modinfo` output for `kernel_mods` enablement trigger
For any kernel modules specified as a plugin enablement trigger via `kernel_mods`, we should automatically collect `modinfo` output for those modules, much like we do with journals for units that are specified for the `services` plugin enablement trigger. Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r--sos/report/plugins/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sos/report/plugins/__init__.py b/sos/report/plugins/__init__.py
index 0fb5dc20..b48909be 100644
--- a/sos/report/plugins/__init__.py
+++ b/sos/report/plugins/__init__.py
@@ -3304,6 +3304,8 @@ class Plugin():
if self.is_service(service):
self.add_service_status(service)
self.add_journal(service)
+ for kmod in self.kernel_mods:
+ self.add_cmd_output(f"modinfo {kmod}")
def setup(self):
"""Collect the list of files declared by the plugin. This method