proc-pid-status
--proc-pid-statusv1.0.0Converts `/proc/<pid>/status` file to JSON
Linuxfileslurpable
$ cat input.txt | jc-rs --proc-pid-statusA real pair
From the reference corpus (linux-proc/pid_status.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_pid_statuslinux-proc
Name: systemd Umask: 0000 State: S (sleeping) Tgid: 1 Ngid: 0 Pid: 1 PPid: 0 TracerPid: 0 Uid: 0 0 0 0 Gid: 0 0 0 0 FDSize: 128 Groups: NStgid: 1 NSpid: 1 NSpgid: 1 NSsid: 1 VmPeak: 235380 kB VmSize: 169984 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 13252 kB VmRSS: 13252 kB RssAnon: 4576 kB RssFile: 8676 kB RssShmem: 0 kB VmData: 19688 kB VmStk: 1032 kB VmExe: 808 kB VmLib: 9772 kB VmPTE: 96 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/15245 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 7be3c0fe28014a03 SigIgn: 0000000000001000 SigCgt: 00000001800004ec CapInh: 0000000000000000 CapPrm: 000000ffffffffff CapEff: 000000ffffffffff CapBnd: 000000ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Speculation_Store_Bypass: thread vulnerable Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 1856 nonvoluntary_ctxt_switches: 6620
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
{ "Name": "systemd", "Umask": "0000", "State": "S", "Tgid": 1, "Ngid": 0, "Pid": 1, "PPid": 0, "TracerPid": 0, "Uid": [ 0, 0, 0, 0 ], "Gid": [ 0, 0, 0, 0 ], "FDSize": 128, "Groups": "", "NStgid": 1, "NSpid": 1, "NSpgid": 1, "NSsid": 1, "VmPeak": 235380, "VmSize": 169984, "VmLck": 0, "VmPin": 0, "VmHWM": 13252, "VmRSS": 13252, "RssAnon": 4576, "RssFile": 8676, "RssShmem": 0, "VmData": 19688, "VmStk": 1032, "VmExe": 808, "VmLib": 9772, "VmPTE": 96, "VmSwap": 0, "HugetlbPages": 0, "CoreDumping": 0, "THP_enabled": 1, "Threads": 1, "SigQ": "0/15245", "SigPnd": "0000000000000000", "ShdPnd": "0000000000000000", "SigBlk": "7be3c0fe28014a03", "SigIgn": "0000000000001000", "SigCgt": "00000001800004ec", "CapInh": "0000000000000000", "CapPrm": "000000ffffffffff", "CapEff": "000000ffffffffff", "CapBnd": "000000ffffffffff", "CapAmb": "0000000000000000", "NoNewPrivs": 0, "Seccomp": 0, "Speculation_Store_Bypass": "thread vulnerable", "Cpus_allowed": [ "ffffffff", "ffffffff", "ffffffff", "ffffffff" ], "Cpus_allowed_list": "0-127", "Mems_allowed": [ "00000000", "00000000", "00000000", "00000000", "00000000", "00000000", "00000000", "00000000", "00000000", "00000000", "00000000", "00000000", "00000000", "00000000", "00000000", "00000000", "00000000", "00000000", "00000000", "00000000", "00000000", "00000000", "00000000", "00000000", "00000000", "00000000", "00000000", "00000000", "00000000", "00000000", "00000000", "00000001" ], "Mems_allowed_list": "0", "voluntary_ctxt_switches": 1856, "nonvoluntary_ctxt_switches": 6620, "State_pretty": "sleeping", "SigQ_current": 0, "SigQ_limit": 15245 }
Fixture coverage
1/1oracle-valid pairs match under the published structural JSON comparison
Magic syntax
not availableThis parser reads a file or a string rather than a command, so there is nothing for jc-rs to run. Pipe it in.
Source: crates/jc-rs-parsers/src/proc/proc_pid_status.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