procfs

Rust library for reading the Linux procfs filesystem

OTHER License

Downloads
23.7M
Stars
367
Committers
72

Bot releases are hidden (Show)

procfs - v0.7.7

Published by eminence almost 5 years ago

New features:

  • UDP sockets and Unix sockets now have state information (#61)
  • Add Process::root(), and better documentation for related methods (#59)

Bug fixes:

  • The starttime, guest_time, and cguest_time fields have a fixed datatype (#58)
procfs - v0.7.6

Published by eminence almost 5 years ago

New features:

  • read_tcp_table and read_udp_table are now public, which can be used when your procfs mount isn't in the normal /proc location. (#57)
  • New function Process::new_with_root, which can be used to create a process from an arbitrary /proc/<pid> path (#56)
procfs - v0.7.5

Published by eminence almost 5 years ago

New features:

  • Add a mode field to FDInfo struct
  • Added a pid field to the Process struct

Fixes:

  • Better documentation to clarify the units in some of the fields that list bytes
  • Use wrap_io_error in Process::fd() to better capture the path involved in case of an IO error
procfs - v0.7.4

Published by eminence almost 5 years ago

New features:

  • None

Bug fixes:

  • Fix a documentation comment that was preventing docs.rs from building successfully
procfs - v0.7.3

Published by eminence almost 5 years ago

New features:

  • Added support for getting the unix socket table (net::unix()).
  • Implement Copy and Clone for the process::Io struct
  • Implement Copy for the Limit and LimitValue structs.
  • Add Process::stat() to get stat info
  • Add Process::statm() to get memory stat info

Other changes:

The following free functions are deprecated:

  • cpuinfo() has been replaced with CpuInfo::new()
  • cpu_pressure() has been replaced with CpuPressure::new()
  • io_pressure() has been replaced with IoPressure::new()
  • memory_pressure() has been replaced with MemoryPressure::new()
procfs -

Published by eminence almost 5 years ago

Bug fixes:

  • Remove an errant call to println! in the cpuinfo() function. Oops!
  • Changed some uid and gid types from i32 to u32
  • Don't error trying to read auxv for kernel tasks
  • Added some missing StatFlags constants

New features:

  • Support for /proc/vmstat
  • Support for /proc/pid/oom_score
  • Support for /proc/pid/mountinfo
procfs -

Published by eminence almost 5 years ago

New features:

  • Re-introduction of the process and net modules [breaking change]
  • New function limits() to return process limits (same as the ulimit command)
procfs -

Published by eminence almost 5 years ago

Bug fixes:

  • Fix two issues when running on 32-bit linux

New features:

  • A new function dev_status() to return network interface stats

Other changes:

  • If all_processes() encounters an internal error while constructing a process, it will be returned (instead of being ignored)