Skip to content
jc-rs
GitHub

proc-cpuinfo

--proc-cpuinfov1.0.0

Converts `/proc/cpuinfo` file to JSON

Linuxfileslurpable
$ jc-rs /proc/cpuinfo

A real pair

From the reference corpus (linux-proc/cpuinfo.json). The left pane is the input the fixture ships; the right pane is the corpus's expected JSON. CI compares jc-rs with it field by field under the published differential. Hover a value to see where it came from.

/proc/cpuinfolinux-proc
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 142
model name	: Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
stepping	: 9
cpu MHz		: 2303.998
cache size	: 4096 KB
physical id	: 0
siblings	: 1
core id		: 0
cpu cores	: 1
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 22
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc eagerfpu pni pclmulqdq monitor ssse3 cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx rdrand hypervisor lahf_lm abm 3dnowprefetch fsgsbase avx2 invpcid rdseed clflushopt md_clear flush_l1d
bogomips	: 4607.99
clflush size	: 64
cache_alignment	: 64
address sizes	: 39 bits physical, 48 bits virtual
power management:
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
[
  {
    "processor": 0,
    "vendor_id": "GenuineIntel",
    "cpu family": 6,
    "model": 142,
    "model name": "Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz",
    "stepping": 9,
    "cpu MHz": 2303.998,
    "cache size": "4096 KB",
    "physical id": 0,
    "siblings": 1,
    "core id": 0,
    "cpu cores": 1,
    "apicid": 0,
    "initial apicid": 0,
    "fpu": true,
    "fpu_exception": true,
    "cpuid level": 22,
    "wp": true,
    "flags": [
      "fpu",
      "vme",
      "de",
      "pse",
      "tsc",
      "msr",
      "pae",
      "mce",
      "cx8",
      "apic",
      "sep",
      "mtrr",
      "pge",
      "mca",
      "cmov",
      "pat",
      "pse36",
      "clflush",
      "mmx",
      "fxsr",
      "sse",
      "sse2",
      "ht",
      "syscall",
      "nx",
      "rdtscp",
      "lm",
      "constant_tsc",
      "rep_good",
      "nopl",
      "xtopology",
      "nonstop_tsc",
      "eagerfpu",
      "pni",
      "pclmulqdq",
      "monitor",
      "ssse3",
      "cx16",
      "pcid",
      "sse4_1",
      "sse4_2",
      "x2apic",
      "movbe",
      "popcnt",
      "aes",
      "xsave",
      "avx",
      "rdrand",
      "hypervisor",
      "lahf_lm",
      "abm",
      "3dnowprefetch",
      "fsgsbase",
      "avx2",
      "invpcid",
      "rdseed",
      "clflushopt",
      "md_clear",
      "flush_l1d"
    ],
    "bogomips": 4607.99,
    "clflush size": 64,
    "cache_alignment": 64,
    "address sizes": "39 bits physical, 48 bits virtual",
    "power management": null,
    "address_size_physical": 39,
    "address_size_virtual": 48,
    "cache_size_num": 4096,
    "cache_size_unit": "KB"
  }
]

Fixture coverage

2/2oracle-valid pairs match under the published structural JSON comparison

Magic syntax

jc-rs /proc/cpuinfojc-rs reads this kernel-interface file directly and dispatches it through the matching /proc parser.

Source: crates/jc-rs-parsers/src/proc/proc_cpuinfo.rs. jc-rs targets the schemas defined by the original Python tool. Fixture coverage above is the measured evidence for this parser; test the inputs your pipeline depends on. Compare