aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2012-03-07 09:20:00 +0000
committerBryn M. Reeves <bmr@redhat.com>2012-03-19 18:47:26 +0000
commit8a4299e5f664a74ff72308d8c9090378614c59d5 (patch)
tree5a8266eb047c7068ef629c7d6e4fa7d5556c38f0
parent064806ebc028c5690e90f42b6a71fc8c709c2f9e (diff)
downloadsos-8a4299e5f664a74ff72308d8c9090378614c59d5.tar.gz
Collect additional diagnostic information for realtime systemssos-2.2-19.el6
Resolves: bz789096
-rw-r--r--sos/plugins/kernel.py5
-rw-r--r--sos/plugins/kernel_realtime.py32
2 files changed, 37 insertions, 0 deletions
diff --git a/sos/plugins/kernel.py b/sos/plugins/kernel.py
index a4d20677..ec0090d7 100644
--- a/sos/plugins/kernel.py
+++ b/sos/plugins/kernel.py
@@ -72,6 +72,11 @@ class kernel(sos.plugintools.PluginBase):
self.addCopySpec("/proc/zoneinfo")
self.addCopySpec("/proc/sys/kernel/tainted")
self.addCopySpec("/proc/buddyinfo")
+ self.addCopySpec("/proc/softirqs")
+ self.addCopySpec("/proc/timer*")
+ self.addCopySpec("/proc/lock*")
+ self.addCopySpec("/sys/devices/system/clocksource/clocksource0/available_clocksource")
+ self.addCopySpec("/sys/devices/system/clocksource/clocksource0/current_clocksource")
return
diff --git a/sos/plugins/kernel_realtime.py b/sos/plugins/kernel_realtime.py
new file mode 100644
index 00000000..58ce85d3
--- /dev/null
+++ b/sos/plugins/kernel_realtime.py
@@ -0,0 +1,32 @@
+# Copyright 2012 Red Hat Inc.
+# Guy Streeter <streeter redhat com>
+# Bryn M. Reeves <bmr@redhat.com>
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; version 2.
+#
+# This application is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+
+import sos.plugintools
+import os
+
+class kernel_realtime(sos.plugintools.PluginBase):
+ '''Information specific to the realtime kernel
+ '''
+
+ def checkenabled(self):
+ if os.path.exists('/sys/kernel/realtime'):
+ return True
+ return False
+
+ def setup(self):
+ self.addCopySpec('/etc/rtgroups')
+ self.addCopySpec('/proc/sys/kernel/sched_rt_period_us')
+ self.addCopySpec('/proc/sys/kernel/sched_rt_runtime_us')
+ self.addCopySpec('/sys/kernel/realtime')
+ if self.isInstalled('tuna'):
+ self.collectExtOutput('/usr/bin/tuna -CP')