Re: [PATCH 1/2] perf map: synthesize maps only for thread group leader

From: Jiri Olsa
Date: Tue Aug 07 2018 - 08:43:40 EST


On Tue, Aug 07, 2018 at 12:09:01PM +0300, Konstantin Khlebnikov wrote:
> Threads share map_groups, all map events are merged into it.
>
> Thus we could send mmaps only for thread group leader.
> Otherwise it took ages to attach and record something from
> processes with many vmas and threads.
>
> Thread group leader could be already dead,
> but it seems perf cannot handle this case anyway.

nice, could mention in the changelog that we actualy
synthesize the group leader (if we found one) for the
thread even if it's not present in the thread_map,
so the process maps are always in data

Acked-by: Jiri Olsa <jolsa@xxxxxxxxxx>

thanks,
jirka