Skip to content
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

discussion: what to do with mmap? #7

Open
wookietreiber opened this issue Apr 18, 2016 · 3 comments
Open

discussion: what to do with mmap? #7

wookietreiber opened this issue Apr 18, 2016 · 3 comments

Comments

@wookietreiber
Copy link
Owner

wookietreiber commented Apr 18, 2016

What to do with mmap?

At the mmap syscall, the analysis essentially ends. There is no more information to be gained, because there are no follow up syscalls because mmap is not implemented in terms of read / write but the kernel actually does the rest, which we can't look into with strace.

  • Should we just ignore mmap?
  • Should we print to STDERR that file has been mmaped?
@wookietreiber wookietreiber self-assigned this Apr 18, 2016
@wookietreiber wookietreiber changed the title discussion: what to do with mmap? what to do with mmap? Mar 11, 2017
@wookietreiber wookietreiber changed the title what to do with mmap? discussion: what to do with mmap? Mar 11, 2017
@wookietreiber wookietreiber modified the milestone: 0.3.0 May 28, 2017
@wookietreiber wookietreiber removed this from the 0.3.0 milestone Aug 31, 2018
@rbtcollins
Copy link

Didn't come here for this, but since I saw it :) - ftrace should be able to see IO events resulting from page faults against the mapped area; so for mmapping programs I'd suggest ftracing instead. e.g. strace isn't the appropriate tool.

@wookietreiber
Copy link
Owner Author

@rbtcollins Thanks a lot for joining the discussion and introducing ftrace to me. I will definitely take a look at this tool. It might even be worth writing an ftrace-analyzer to analyze its output or a trace-analyzer that can handle both or even other traces like ltrace.

I guess, it would be fair for strace-analyzer, with its current functionality, to just output that the file was mmaped to indicate that we can't do further analysis without having ftrace logs. This could be shown as a hint to users.

@rbtcollins
Copy link

Yes, I think calling out mmap as an event would make sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants