aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Streeter <streeter@redhat.com>2012-02-08 15:12:01 -0600
committerJesse Jaggars <jjaggars@redhat.com>2012-02-08 15:14:48 -0600
commite4098a2030d9c23a0beebe7373725819a36492d2 (patch)
tree1d274bd79ed0c48c16cb1f10dc6a2885d087562d
parent9046f1851cbcff30c1684b6a60d87ac1d0e33789 (diff)
downloadsos-e4098a2030d9c23a0beebe7373725819a36492d2.tar.gz
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')