aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2013-04-22 18:46:34 +0100
committerBryn M. Reeves <bmr@redhat.com>2013-04-22 18:46:34 +0100
commitdc551c9aa92a815f6cbe7dc8819cc5532c8bf68f (patch)
tree5c6bd72e7acd59103f17272b1fb80d15e08758a6
parent2b3807aef2894c4ccbc9d6815c1f00dbec3b4a06 (diff)
downloadsos-dc551c9aa92a815f6cbe7dc8819cc5532c8bf68f.tar.gz
Clean up /proc data collection in kernel plug-in
Reorder the list of collected files so that all *info appear together to avoid duplication and other errors creeping in. Get rid of /proc/ksyms (2.4) and replace with /proc/kallsyms. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/kernel.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/sos/plugins/kernel.py b/sos/plugins/kernel.py
index eb15ee43..8c50da2d 100644
--- a/sos/plugins/kernel.py
+++ b/sos/plugins/kernel.py
@@ -39,9 +39,10 @@ class kernel(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
"/sys/module/*/initstate",
"/sys/module/*/refcnt",
"/sys/module/*/taint",
- "/proc/filesystems",
- "/proc/ksyms",
+ "/proc/kallsyms",
+ "/proc/buddyinfo",
"/proc/slabinfo",
+ "/proc/zoneinfo",
"/lib/modules/%s/modules.dep" % self.policy().kernel_version(),
"/etc/conf.modules",
"/etc/modules.conf",
@@ -52,9 +53,7 @@ class kernel(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
"/lib/sysctl.d",
"/proc/cmdline",
"/proc/driver",
- "/proc/zoneinfo",
"/proc/sys/kernel/tainted",
- "/proc/buddyinfo",
"/proc/softirqs",
"/proc/timer*",
"/proc/lock*"])