Messages in this thread | | | From | KOSAKI Motohiro <> | Subject | Re: [PATCH 1/2] Add trace events to mmap and brk | Date | Mon, 12 Jul 2010 10:58:01 +0900 (JST) |
| |
> Hmm, thinking about it a bit more, what do you trace events give us that > the event based syscall tracer doesn't?
Yup. I think we need two tracepoint.
1) need to know userland argument. -> syscall tracer 2) need to know actual vma change. -> need to trace more low layer
As I said, if userland app have following code,
mmap(0x10000, PROT_READ|PROT_WRITE) mmap(0x10000, PROT_NONE)
second mmap implicitly unmap firt mmap region and map another region. so if we want to track munmap activity, syscall exiting point is not so good place. we need to trace per-vma activity.
btw, perf_event_mmap() already take vma argument.
| |