Re: [PATCH 1/4] perf map: fix overlapped map handling

2019-09-29 Thread Jiri Olsa
On Sat, Sep 28, 2019 at 01:39:00AM +, Steve MacLean wrote: SNIP > Before: > > perf script --show-mmap-events 2>&1 | grep -e MMAP -e unknown |\ >grep libcoreclr.so | head -n 4 > dotnet 1907 373352.698780: PERF_RECORD_MMAP2 1907/1907: \ > [0x7fe615726000(0x768000) @ 0 08:0

[PATCH 1/4] perf map: fix overlapped map handling

2019-09-27 Thread Steve MacLean
Whenever an mmap/mmap2 event occurs, the map tree must be updated to add a new entry. If a new map overlaps a previous map, the overlapped section of the previous map is effectively unmapped, but the non-overlapping sections are still valid. maps__fixup_overlappings() is responsible for creating a