[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110725105004.GN28787@elte.hu>
Date: Mon, 25 Jul 2011 12:50:07 +0200
From: Ingo Molnar <mingo@...e.hu>
To: Anton Blanchard <anton@...ba.org>
Cc: Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Paul Mackerras <paulus@...ba.org>,
Arnaldo Carvalho de Melo <acme@...stprotocols.net>,
emunson@...bm.net, linux-kernel@...r.kernel.org, amodra@...il.com
Subject: Re: [PATCH] perf: Fix symbol resolution on old ppc64 ABI
* Anton Blanchard <anton@...ba.org> wrote:
> Hi Ingo,
>
> > > The synthetic symbol creation code has an issue with the old ppc64
> > > ABI. We end up with duplicate symbols of different sizes that
> > > overlap.
> > >
> > > To fix this, walk all of the symbols and remove any duplicates that
> > > are the length of a function descriptor.
> >
> > > I'd prefer not to add a ppc64 specific hack here, but I'm not sure
> > > how we can fix this in a simpler way.
> >
> > Symbol space problems are common on other architectures as well.
> >
> > We could use a heuristic: when symbols are overlapping then we could
> > throw away the one that is smaller. This would implicitly cover the
> > ppc64 case, right?
> >
> > I'd also suggest we warn somewhere that a symbol has been thrown
> > away, if verbosity is turned off. (i.e. don't warn by default.)
>
> It would cover most cases. There would be an issue with functions
> that are less than 24 bytes in length (ie 6 instructions). Tiny
> functions are probably rare enough that we can live with it.
Do such tiny functions get packed tightly, below 24 bytes? Another
sanitization pass could solve that issue, to trim partially
overlapping symbol regions, right?
Thanks,
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists