diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2012-11-29 22:55:57 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2012-11-29 22:55:57 +0000 |
commit | b43b3458042a863627aab4ebc82d84dafae1e437 (patch) | |
tree | 849f838a3cafe9fb0857190d41ac7f153725d3f4 | |
parent | 27be2a9b02bf698a87af98eb3036182e71a9c298 (diff) | |
download | sos-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.py | 6 |
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") |