aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2012-11-29 22:55:57 +0000
committerBryn M. Reeves <bmr@redhat.com>2012-11-29 22:55:57 +0000
commitb43b3458042a863627aab4ebc82d84dafae1e437 (patch)
tree849f838a3cafe9fb0857190d41ac7f153725d3f4
parent27be2a9b02bf698a87af98eb3036182e71a9c298 (diff)
downloadsos-b43b3458042a863627aab4ebc82d84dafae1e437.tar.gz
Add cpu power information to hardware module
Collect cpupower or cpufreq-info information if either is installed.
-rw-r--r--sos/plugins/hardware.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/sos/plugins/hardware.py b/sos/plugins/hardware.py
index d63fe15c..f09fc769 100644
--- a/sos/plugins/hardware.py
+++ b/sos/plugins/hardware.py
@@ -45,6 +45,12 @@ class hardware(Plugin):
self.collectExtOutput("/usr/sbin/dmidecode", root_symlink = "dmidecode")
+ if os.path.exists("/usr/bin/cpufreq-info"):
+ self.collectExtOutput("/usr/bin/cpufreq-info")
+ if os.path.exists("/usr/bin/cpupower"):
+ self.collectExtOutput("/usr/bin/cpupower info")
+ self.collectExtOutput("/usr/bin/cpupower frequency-info")
+
if self.policy().getArch().endswith("386"):
self.collectExtOutput("/usr/sbin/x86info -a")