Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1946043AbbFSVPZ (ORCPT ); Fri, 19 Jun 2015 17:15:25 -0400 Received: from mail.kernel.org ([198.145.29.136]:52931 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932991AbbFSVOg (ORCPT ); Fri, 19 Jun 2015 17:14:36 -0400 Date: Fri, 19 Jun 2015 18:14:31 -0300 From: Arnaldo Carvalho de Melo To: Yannick Brosseau Cc: Jeff Epler , mingo@redhat.com, paulus@samba.org, a.p.zijlstra@chello.nl, jolsa@kernel.org, ak@linux.intel.com, linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH] perf report: Fix sort__sym_cmp to also compare end of symbol Message-ID: <20150619211431.GC28405@kernel.org> References: <1434584470-17771-1-git-send-email-scientist@fb.com> <20150617235343.GB84349@unpythonic.net> <5582090E.5060209@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5582090E.5060209@fb.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 766 Lines: 19 Em Wed, Jun 17, 2015 at 04:55:58PM -0700, Yannick Brosseau escreveu: > On 06/17/2015 04:53 PM, Jeff Epler wrote: > > On Wed, Jun 17, 2015 at 04:41:10PM -0700, Yannick Brosseau wrote: > >> When using a map file from a JIT, due to memory reuse, we can > >> obtain multiple symbols with the same start address but a different > >> length. > > Is there some reason it's impossible for the reused memory to have the > > same length / end address? > > > It's possible that they are the same, and in that case the function > returns 0. > The patch is adding the handling of the case where they are different. Looks sensible, applied. - Arnaldo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in Please read the FAQ at http://www.tux.org/lkml/