Skip to content
jc-rs
GitHub

proc-buddyinfo

--proc-buddyinfov1.0.0

Converts `/proc/buddyinfo` file to JSON

Linuxfileslurpable
$ jc-rs /proc/buddyinfo

A real pair

From the reference corpus (linux-proc/buddyinfo.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/buddyinfolinux-proc
Node 0, zone      DMA      0      0      0      1      1      1      1      1      0      1      3 
Node 0, zone    DMA32     78    114     82     52     38     25     13      9      3      4    629 
Node 0, zone   Normal      0     22      8     10      1      1      2     11     13      0      0 
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
[
  {
    "node": 0,
    "zone": "DMA",
    "free_chunks": [
      0,
      0,
      0,
      1,
      1,
      1,
      1,
      1,
      0,
      1,
      3
    ]
  },
  {
    "node": 0,
    "zone": "DMA32",
    "free_chunks": [
      78,
      114,
      82,
      52,
      38,
      25,
      13,
      9,
      3,
      4,
      629
    ]
  },
  {
    "node": 0,
    "zone": "Normal",
    "free_chunks": [
      0,
      22,
      8,
      10,
      1,
      1,
      2,
      11,
      13,
      0,
      0
    ]
  }
]

Fixture coverage

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

Magic syntax

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

Source: crates/jc-rs-parsers/src/proc/proc_buddyinfo.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