Re: [PATCH] perf symbols: Synthesize anonymous mmap events

From: Pekka Enberg
Date: Tue Aug 30 2011 - 15:11:12 EST


On Tue, 2011-08-30 at 09:15 +1000, Anton Blanchard wrote:
> perf_event__synthesize_mmap_events does not create anonymous mmap
> events even though the kernel does. As a result an already running
> application with dynamically created code will not get profiled -
> all samples end up in the unknown bucket.
>
> This patch skips any entries with '[' in the name to avoid adding
> events for special regions (eg the vsyscall page). All other
> executable mmaps are assumed to be anonymous and an event is
> synthesized.
>
> Signed-off-by: Anton Blanchard <anton@xxxxxxxxx>

Acked-by: Pekka Enberg <penberg@xxxxxxxxxx>

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