1
0
forked from rpms/sos
sos/sos-bz789096-kernel_realtime.patch
Bryn M. Reeves 13178ca5fa Update sos to 2.2-29
This synchronises sos in master to the current upstream sos-2.2 branch and
includes all patches from RHEL6 not already present.
2012-06-22 12:16:21 +01:00

52 lines
2.2 KiB
Diff

diff -up sos-2.2/sos/plugins/kernel.py.orig sos-2.2/sos/plugins/kernel.py
--- sos-2.2/sos/plugins/kernel.py.orig 2012-03-06 11:22:54.880323589 +0000
+++ sos-2.2/sos/plugins/kernel.py 2012-03-06 11:23:17.034324094 +0000
@@ -71,6 +71,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 -up sos-2.2/sos/plugins/kernel_realtime.py.orig sos-2.2/sos/plugins/kernel_realtime.py
--- sos-2.2/sos/plugins/kernel_realtime.py.orig 2012-03-06 11:23:54.319324945 +0000
+++ sos-2.2/sos/plugins/kernel_realtime.py 2012-03-06 11:23:17.034324094 +0000
@@ -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')