perf annotate: Disambiguage offsets and addresses in operands
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 25 Apr 2012 11:00:23 +0000 (08:00 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 25 Apr 2012 11:00:23 +0000 (08:00 -0300)
commit44d1a3edfbd65f9da6725921e2425b10477772d8
tree127655e788cf172e26eea4e38b98303c998e0d4a
parent9481ede909e08418c9379665ee9f25335d20dd06
perf annotate: Disambiguage offsets and addresses in operands

We were using ins_ops->target for callq addresses and jump offsets,
disambiguate by having ins_ops->target.addr and ins_ops->target.offset.

For jumps we'll need both to fixup lines that don't have an offset on
the <> part.

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-3nlcmstua75u07ao7wja1rwx@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/ui/browsers/annotate.c
tools/perf/util/annotate.c
tools/perf/util/annotate.h