Re: [PATCH v2] perf map: optimize maps__fixup_overlappings()

2018-08-08 Thread Arnaldo Carvalho de Melo
Em Wed, Aug 08, 2018 at 01:03:01AM +0200, Jiri Olsa escreveu: > On Tue, Aug 07, 2018 at 05:02:37PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Tue, Aug 07, 2018 at 05:24:54PM +0300, Konstantin Khlebnikov escreveu: > > > This function splits and removes overlapping areas. > > > Maps in tree are o

Re: [PATCH v2] perf map: optimize maps__fixup_overlappings()

2018-08-07 Thread Jiri Olsa
On Tue, Aug 07, 2018 at 05:02:37PM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Aug 07, 2018 at 05:24:54PM +0300, Konstantin Khlebnikov escreveu: > > This function splits and removes overlapping areas. > > > > Maps in tree are ordered by start address thus we could find > > first overlap and s

Re: [PATCH v2] perf map: optimize maps__fixup_overlappings()

2018-08-07 Thread Arnaldo Carvalho de Melo
Em Tue, Aug 07, 2018 at 05:24:54PM +0300, Konstantin Khlebnikov escreveu: > This function splits and removes overlapping areas. > > Maps in tree are ordered by start address thus we could find > first overlap and stop if next map does not overlap. > > Signed-off-by: Konstantin Khlebnikov Jiri,

[PATCH v2] perf map: optimize maps__fixup_overlappings()

2018-08-07 Thread Konstantin Khlebnikov
This function splits and removes overlapping areas. Maps in tree are ordered by start address thus we could find first overlap and stop if next map does not overlap. Signed-off-by: Konstantin Khlebnikov --- v2: * add comments * replace map__overlap with minimal check * remove remove map__overl