Crates.io | rsprocmaps |
lib.rs | rsprocmaps |
version | 0.3.2 |
source | src |
created_at | 2020-07-28 03:59:42.154276 |
updated_at | 2023-08-05 02:05:09.885223 |
description | A Rust library for handling memory maps in procfs |
homepage | |
repository | https://github.com/woodruffw/procmaps.rs |
max_upload_size | |
id | 270302 |
size | 37,219 |
procmaps.rs is a (very) small Rust library with one job: parsing the memory
maps that Linux (and some other Unices) expose via /proc/<pid>/maps
with
a pleasant structure.
I wrote it before realizing that procmaps already exists. You should probably use that one instead, since it's nearly identical.
A quick sample:
let maps = rsprocmaps::from_pid(9001)?;
for map in maps {
println!("{} executable? {}", map.address_range, map.permissions.executable);
}
Full documentation is available on docs.rs.
/proc/<pid>/maps
correctly and into a clean structure/proc
maps
file format (e.g. newlines and deleted pathnames)