Re: perf MMAP2 interface and COW faults

From: Don Zickus
Date: Fri Mar 14 2014 - 09:38:23 EST


On Fri, Mar 14, 2014 at 02:24:47PM +0100, Peter Zijlstra wrote:
> On Fri, Mar 14, 2014 at 08:58:37AM -0400, Don Zickus wrote:
> > Hmmm. That will probably work for future mmap events. My problem is for
> > synthesized mmap events. We read the same protection bits from
> > /proc/<pid>/maps file, so I assume the same strategy can work for those
> > events too?
>
> Yeah, so /proc/$pid/maps doesn't contain all those bits, but it does
> have the prot read/write/exec and flags shared/private thing, which
> should be sufficient for your needs.

Great, thanks!

Cheers,
Don

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