]> Git Repo - linux.git/commit
perf ui annotate browser: Allow toggling addr offset view
authorArnaldo Carvalho de Melo <[email protected]>
Mon, 2 Apr 2012 16:21:55 +0000 (13:21 -0300)
committerArnaldo Carvalho de Melo <[email protected]>
Sat, 7 Apr 2012 19:10:19 +0000 (16:10 -0300)
commite235f3f3bf238eb092ad2fe7c35c6d7fd5dc2aeb
tree544aabce86fcf6e39cce1e9c2227d5a03b97d9af
parent058b4cc9af574c072988a38a7a5ee93df881e5aa
perf ui annotate browser: Allow toggling addr offset view

The lines in objdump have this format:

    ffffffff8126543f:       jne    ffffffff81265494 <__list_del_entry+0x84>
<SNIP>
    ffffffff81265494:       mov    %rdi,%rcx

Since we now have objdump_line allowing tools to print the offset
independently from the rest of the line, allow toggling a view where
just offsets from the start of the function are shown:

     2f:       jne    ffffffff81265494 <__list_del_entry+0x84>
<SNIP>
     84:       mov    %rdi,%rcx

The offset view will be the default as soon as operations that deal with
offsets in a function are handled accodringly, i.e. in offset view the
above will become:

     2f:       jne    __list_del_entry+0x84
<SNIP>
     84:       mov    %rdi,%rcx

And then a follow up patch will allow navigating thru jumps, just like
we handle callq instructions.

Suggested-by: Linus Torvalds <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/ui/browsers/annotate.c
This page took 0.051502 seconds and 4 git commands to generate.