lkml.org 
[lkml]   [2018]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 17/17] perf annotate: Handle variables in 'sub', 'or' and many other instructions
Em Tue, Apr 17, 2018 at 11:56:28AM +0900, Namhyung Kim escreveu:
> Hi,
>
> On Fri, Apr 13, 2018 at 10:39:40AM -0700, Andi Kleen wrote:
> > > What do I miss? Or where is it that I'm misinterpreting the calculations
> > > that objdump did in its output?
> >
> > The calculations are right, but these are still two different address modes.
> > You cannot just turn one silently into the other.
> >
> > I think it would be ok to use the syntax in the assembler
> >
> > symbol(%rip) with no # ...
>
> One thing I find useful is to show string constant if the address is
> in the rodata (and printable of course). Maybe something like below..
>
> lea 0x1234(%rip),%rdi # "hello world\n"
> callq printf
>
>
> Just an idea.

Send some more :-)

/me adds to the todo.annotate folder...

- Arnaldo

\
 
 \ /
  Last update: 2018-04-17 14:51    [W:0.285 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site