Expand description
Raw /proc reading for process tree construction.
Only contains functions needed to build and maintain the process tree: comm (cmd name), status (ppid/user/tgid), stat (start_time), uid lookup.
Functionsยง
- parse_
proc_ entry - Parse
/proc/{pid}/statusinto a(PidNode, ProcInfo)pair. - read_
proc_ comm - Read the command name for a PID from
/proc/{pid}/comm. - read_
proc_ start_ time_ ns - Read the process start time in nanoseconds from
/proc/{pid}/stat. - uid_
to_ username - Convert a UID to a username by looking up
/etc/passwd.