Expand description
Filesystem helpers that are not on the per-tick hot path.
smaps_rollup is expensive (the kernel walks every VMA), so it is fetched
only when a PSS/EPSS column is visible, and always through this module so the
call site stays obvious.
Structs§
- Cgroup
Entry - A cgroup membership entry from
/proc/<pid>/cgroup. - Container
- What a cgroup path says about the process’s container membership.
- Smaps
Rollup - Memory figures from
/proc/<pid>/smaps_rollup, in bytes.
Functions§
- container_
from_ cgroup - Best-effort container detection from cgroup membership.
- container_
from_ path - Classify one cgroup path.
- in_
different_ pid_ namespace - Whether
pidlives in a different PID namespace than the caller. - parse_
cgroup - Parse
/proc/<pid>/cgroup. - parse_
smaps_ rollup - Parse
/proc/<pid>/smaps_rollup. - preferred_
path - Choose which cgroup path to display when
/proc/<pid>/cgrouplists several. - read_
smaps_ rollup - Read and parse
/proc/<pid>/smaps_rollup. - self_
pid_ namespace - The PID namespace inode of the running process, i.e. gander’s own.
- smaps_
rollup_ available - Whether
/proc/<pid>/smaps_rollupexists for this pid.