Skip to main content

Module fsops

Module fsops 

Source
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§

CgroupEntry
A cgroup membership entry from /proc/<pid>/cgroup.
Container
What a cgroup path says about the process’s container membership.
SmapsRollup
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 pid lives 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>/cgroup lists 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_rollup exists for this pid.