Skip to main content

Module linux

Module linux 

Source
Expand description

The /proc backend. Compiles on any unix because the IO layer is parameterised by a root path; only Linux has a live /proc to point it at. Linux /proc and /sys access.

Split into two layers:

  • parse — pure functions over &[u8], unit-testable against fixtures
  • scan — the IO layer, using thread-local scratch buffers

Both are configured by a root path so tests can point at a fixture tree instead of the live /proc.

Modules§

delayacct
Delay accounting via TASKSTATS generic netlink.
fsops
Filesystem helpers that are not on the per-tick hot path.
parse
Pure /proc parsers.
scan
Reading /proc and /sys.
system
The Linux sampler: turns /proc into a SystemSnapshot.

Structs§

LinuxPlatform

Functions§

cpu_count
Number of online CPUs, used to normalize CPU%.