45
45
platform_to_conversion = {
46
46
("i386", "i486", "i586", "i686", "x86_64",): {
47
47
"type": "vendor_id",
48
"model": "model_name",
49
"model_number": "cpu_family",
48
"model": "model name",
49
"model_number": "cpu family",
50
50
"model_version": "model",
51
51
"model_revision": "stepping",
52
"cache": "cache_size",
52
"cache": "cache size",
55
55
("alpha", "alphaev6",): {
56
"count": "cpus_detected",
56
"count": "cpus detected",
59
"model_number": "cpu_variation",
60
"model_version": ("system_type", "system_variation",),
61
"model_revision": "cpu_revision",
62
"other": "platform_string",
63
"speed": "cycle_frequency_[Hz]"},
59
"model_number": "cpu variation",
60
"model_version": ("system type", "system variation",),
61
"model_revision": "cpu revision",
62
"other": "platform string",
63
"speed": "cycle frequency [Hz]"},
67
67
"model_version": "archrev",
68
68
"model_revision": "revision",
69
69
"other": "features",
71
71
("ppc64", "ppc",): {
72
72
"type": "platform",
165
165
key, value = line.split(":")
167
# Sanitize key and value
169
key = key.replace(" ", "_")
170
value = value.strip()
166
key, value = key.strip(), value.strip()
172
168
# Handle bogomips on sparc
173
169
if key.endswith("Bogo"):