mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-19 00:17:51 +02:00
updated schema
This commit is contained in:
@ -42,12 +42,10 @@ option.
|
|||||||
"cache size": string,
|
"cache size": string,
|
||||||
"cache_size_num": integer,
|
"cache_size_num": integer,
|
||||||
"cache_size_unit": string,
|
"cache_size_unit": string,
|
||||||
"flags": string,
|
"flags": [
|
||||||
"flag_list": [
|
|
||||||
string
|
string
|
||||||
],
|
],
|
||||||
"bugs": string,
|
"bugs": [
|
||||||
"bug_list": [
|
|
||||||
string
|
string
|
||||||
],
|
],
|
||||||
"bogomips": float,
|
"bogomips": float,
|
||||||
@ -78,8 +76,6 @@ Examples:
|
|||||||
"fpu_exception": true,
|
"fpu_exception": true,
|
||||||
"cpuid level": 22,
|
"cpuid level": 22,
|
||||||
"wp": true,
|
"wp": true,
|
||||||
"flags": "fpu vme de pse tsc msr pae mce cx8 apic sep mtrr ...",
|
|
||||||
"bugs": "cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass ...",
|
|
||||||
"bogomips": 4800.0,
|
"bogomips": 4800.0,
|
||||||
"clflush size": 64,
|
"clflush size": 64,
|
||||||
"cache_alignment": 64,
|
"cache_alignment": 64,
|
||||||
@ -89,7 +85,7 @@ Examples:
|
|||||||
"address_size_virtual": 48,
|
"address_size_virtual": 48,
|
||||||
"cache_size_num": 6144,
|
"cache_size_num": 6144,
|
||||||
"cache_size_unit": "KB",
|
"cache_size_unit": "KB",
|
||||||
"flag_list": [
|
"flags": [
|
||||||
"fpu",
|
"fpu",
|
||||||
"vme",
|
"vme",
|
||||||
"de",
|
"de",
|
||||||
@ -173,7 +169,7 @@ Examples:
|
|||||||
"flush_l1d",
|
"flush_l1d",
|
||||||
"arch_capabilities"
|
"arch_capabilities"
|
||||||
],
|
],
|
||||||
"bug_list": [
|
"bugs": [
|
||||||
"cpu_meltdown",
|
"cpu_meltdown",
|
||||||
"spectre_v1",
|
"spectre_v1",
|
||||||
"spectre_v2",
|
"spectre_v2",
|
||||||
@ -283,12 +279,10 @@ def _process(proc_data: List[Dict]) -> List[Dict]:
|
|||||||
entry['cache_size_unit'] = unit
|
entry['cache_size_unit'] = unit
|
||||||
|
|
||||||
if 'flags' in entry:
|
if 'flags' in entry:
|
||||||
flag_list = entry['flags'].split()
|
entry['flags'] = entry['flags'].split()
|
||||||
entry['flag_list'] = flag_list
|
|
||||||
|
|
||||||
if 'bugs' in entry:
|
if 'bugs' in entry:
|
||||||
bug_list = entry['bugs'].split()
|
entry['bugs'] = entry['bugs'].split()
|
||||||
entry['bug_list'] = bug_list
|
|
||||||
|
|
||||||
return proc_data
|
return proc_data
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user