aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhjaggars <jhjaggars@gmail.com>2012-02-23 07:30:59 -0800
committerjhjaggars <jhjaggars@gmail.com>2012-02-23 07:30:59 -0800
commit237f8a0cdfc211126d962fd5dae3790f8599b41d (patch)
treee861d513b9bee7536183d56081e32d6b9361d0e8
parent9c102d30a49d123289191e1794dc7224f00e1983 (diff)
parente4098a2030d9c23a0beebe7373725819a36492d2 (diff)
downloadsos-237f8a0cdfc211126d962fd5dae3790f8599b41d.tar.gz
Merge pull request #20 from jhjaggars/rt_kernel
adding realtime kernel plugin
-rw-r--r--sos/plugins/kernel_rt.py39
1 files changed, 39 insertions, 0 deletions
diff --git a/sos/plugins/kernel_rt.py b/sos/plugins/kernel_rt.py
new file mode 100644
index 00000000..23dad730
--- /dev/null
+++ b/sos/plugins/kernel_rt.py
@@ -0,0 +1,39 @@
+# -*- python -*-
+# -*- coding: utf-8 -*-
+
+#
+# Copyright 2012 Red Hat Inc.
+# Guy Streeter <streeter@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.
+
+from sos.plugins import Plugin, RedHatPlugin
+
+class kernel_rt(RedHatPlugin):
+ '''Information specific to the realtime kernel
+ '''
+
+ # this file exists only when the realtime kernel is booted
+ # this plugin will not be called is this file does not exist
+ files = ('/sys/kernel/realtime')
+
+ 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('/proc/cgroups')
+ self.addCopySpec('/proc/softirqs')
+ self.addCopySpec('/proc/timer*')
+ self.addCopySpec('/proc/lock*')
+ self.addCopySpec('/sys/kernel/realtime')
+ self.addCopySpec('/sys/devices/system/clocksource/clocksource0/available_clocksource')
+ self.addCopySpec('/sys/devices/system/clocksource/clocksource0/current_clocksource')
+ if self.isInstalled('tuna'):
+ self.collectExtOutput('/usr/bin/tuna -CP | /ust/bin/head -20')