perf annotate: Mark jump instructions with no offset
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 25 Apr 2012 17:16:03 +0000 (14:16 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 25 Apr 2012 17:16:03 +0000 (14:16 -0300)
commitfb29fa58e36df09c807d252247d64a221fcd5bbb
treed4a9848a2e3c07e9449e003ba7fcd6983e23ccc4
parent44d1a3edfbd65f9da6725921e2425b10477772d8
perf annotate: Mark jump instructions with no offset

I.e. jumps that go to code outside the current function, that is denoted
in objdump -dS as:

   399f877a9f: jne    399f87bcf4 <_L_lock_5154>

I.e. without the + after the name of the current function, like in:

   399f877aa5: jmp    399f877ab2 <_int_free+0x412>

The browser will use that info to avoid drawing connectors to the start
of the function, since ops.target.addr was zero.

Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-xrn35g2mlawz1ydo1p73w3q6@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate.c
tools/perf/util/annotate.h