aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJirka Hladky <jhladky@redhat.com>2016-02-26 17:35:26 +0100
committerBryn M. Reeves <bmr@redhat.com>2016-04-25 16:53:02 +0100
commitfe3f9864c380e1bcd211368b75d9a27ad694a0a9 (patch)
tree23e6bf7ce7c03b60b5e9e535bff6d13d4dc4f225
parent70dec0664a6ab69c57b89eb8519efdf8d98f9763 (diff)
downloadsos-fe3f9864c380e1bcd211368b75d9a27ad694a0a9.tar.gz
[processor] Added cpuid command
Enhanced reporting capabilitis about CPU by adding cpuid command For details on cpuid command please see http://www.etallen.com/cpuid.html After having a discussion with author of cpuid Todd Allen <todd@etallen.com> we think that it would be best to have both human readable output of cpuid as well as hex output of cpuid in the sos report. The hex output can be converted into human readable format with cpuid -f <file>. This is usefull when version of cpuid on server where sos report has been executed is old. New version of cpuid can provide more precise infomration about the cpu. Signed-off-by: Jirka Hladky <jhladky@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/processor.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sos/plugins/processor.py b/sos/plugins/processor.py
index e69f4048..37a1b274 100644
--- a/sos/plugins/processor.py
+++ b/sos/plugins/processor.py
@@ -22,7 +22,7 @@ class Processor(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin):
plugin_name = 'processor'
profiles = ('system', 'hardware', 'memory')
files = ('/proc/cpuinfo',)
- packages = ('cpufreq-utils')
+ packages = ('cpufreq-utils', 'cpuid')
def setup(self):
self.add_copy_spec([
@@ -37,6 +37,8 @@ class Processor(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin):
"cpupower idle-info",
"cpupower frequency-info",
"cpufreq-info"
+ "cpuid",
+ "cpuid -r"
])
if '86' in self.policy().get_arch():