-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose /proc/<pid>/maps
parsing (and others)
#236
Comments
Hi, thanks for opening the issue. What you're proposing sounds fine to me. In fact, there is some precedent already. For example, we have The most common use case I've seen for these If you wanted to open a PR, I would be grateful! My API preference is to have something like Thanks! |
A somewhat related question: is there a reason that Also, how opposed are you to making changes that break the current API? I'm adding a |
No particular reason that the perms aren't parsed. Parsing that would be nice. Breaking changes are generally fine. Version 0.14 is the latest on crates.io, but the latest code in the master branch already has some breaking API changes, so the next release will be a 0.15 |
Great, thanks! |
A new MemoryMaps struct is added, which parses all of `maps`, `smaps`, and `smaps_rollup`. Closes eminence#236.
A new MemoryMaps struct is added, which parses all of `maps`, `smaps`, and `smaps_rollup`. Closes eminence#236.
We'd like to expose the parsing of
/proc/<pid>/maps
in the external interface to be able to use it on stored memory map information in rust-minidump. We currently parse the maps ourselves, however we are interested in using a separate crate so that we may re-use the parsing amongst multiple crates that we have. Sinceprocfs
basically already has this and much more, we figured it'd be great if we could use it instead. We also have other needs for parsing variousprocfs
information so we would likely use it in the future for those purposes, too.We're content with contributing this API exposition, however we wanted to check with the primary maintainer(s) that this is a desirable API to be added to the crate. Specifically, the
procfs
crate currently describes itself as "... an interface to the proc pseudo-filesystem on linux", and if we were to add functions which can operate on raw/storedprocfs
information, they would not technically be interfacing with the proc pseudo-filesystem at all (e.g. parsing the stored content of themaps
file doesn't involve interacting directly with any mountedprocfs
). We don't expect this would be a problem, but it's worth noting the distinction.Thanks!
The text was updated successfully, but these errors were encountered: