lkml.org 
[lkml]   [2010]   [Jun]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] perf lookup of ppc64 symbols
Em Fri, Jun 18, 2010 at 12:46:08AM +1000, Anton Blanchard escreveu:
>
> Hi,
>
> > Currently symbol resolution does not work for 64-bit programs
> > using perf. For this to work perf needs to lookup symbol names in
> > the OPD. This patch adds this functionality. The OPD data is
> > used to find symbol names when available.
>
> To clarify, this is an issue with 64bit architectures that use function
> descriptors (eg ppc64). The problem is that a symbol doesn't point to a text
> address, it points to a data area that contains (amongst other things) a
> pointer to the text address.
>
> We look for a section called ".opd" which is the function descriptor
> area. To create the full symbol table, when we see a symbol in the function
> descriptor section we load the first pointer and use that as the text
> address. The only tricky part here is working out which section the
> text address is in. Right now we have a loop which is sub optimal:

I'll update the comment in Eric's patch and apply this to perf/core, for
.36, we can optimize this later, correctness first :-)

- Arnaldo


\
 
 \ /
  Last update: 2010-06-17 17:19    [W:0.045 / U:0.412 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site