[lkml]   [2018]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 17/17] perf annotate: Handle variables in 'sub', 'or' and many other instructions

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.


> > About something mildly related: what do you think about this:
> >, there is a xml file there[1] I'm thinking about
> > using, if available on the developer's HOME or some other standard place,
> > to provide help about the instructions :-)
> I don't know how well it's going to be maintained. x86 changes a lot
> and I've seen a lot of disassembler libraries etc. go stale as the
> owner cannot keep up.
> The only semi official maintained descriptions are the XED tables (but those
> don't have descriptions) or the PDFs from Intel/AMD.
> I suppose could have some hack that talks to a PDF reader and automatically
> downloads/searches the PDF.
> If unofficial is ok I would rather port some functionality
> from
> which has a lot of cool stuff.
> -Andi

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