Re: [PATCH 1/2] Add trace events to mmap and brk

From: KOSAKI Motohiro
Date: Sun Jul 11 2010 - 21:58:13 EST


> 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.





--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/