native-lib/trace: Intercept mmap and munmap#4622
native-lib/trace: Intercept mmap and munmap#4622nia-e wants to merge 1 commit intorust-lang:masterfrom
Conversation
|
Thank you for contributing to Miri! |
48dbe59 to
8ec819f
Compare
8ec819f to
d48a1cc
Compare
|
I saw the PR and it's in my queue, but it's a big one so it may take a bit until I have time to dig into this -- sorry. |
|
Realised this actually has a couple issues that need to be addressed and I could do that in this implementation relatively simply, or rewrite it to be better in every way (so we can call |
|
@rustbot author |
|
Nia gave me a crash course in various of those ideas at eurorust. I'll do the first reviews and assign to you (Ralf) once I think it's ready |
|
☔ The latest upstream changes (possibly e110b81) made this pull request unmergeable. Please resolve the merge conflicts. |
Adds support for tracing
mmaps in native code and logging that. Notably does not let us calllibc::mmap(..)on the Rust side and thenmunmapit on the native side / the other way; I have ideas for maybe doing that, but they'd be quite a bit more involved since it requires us doing some syscall shimming.