perf annotate: Generalize handling of 'ret' instructions
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Fri, 24 Jun 2016 11:53:58 +0000 (17:23 +0530)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 27 Jun 2016 17:25:05 +0000 (14:25 -0300)
commit6ef9492915b09816c75bb41e7e37b2e507d2f70f
tree7dc66188a6168c9bcd799febdbe6ea9d7f923ba5
parent9f776ba11c8be311a5c23777bc9f3b96498cc6cc
perf annotate: Generalize handling of 'ret' instructions

Introduce helper to detect 'ret' instructions and use the same in the TUI.
A helper is needed since some architectures such as powerpc have more
than one return instruction.

Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Anton Blanchard <anton@ozlabs.org>
Cc: Daniel Axtens <dja@axtens.net>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Link: http://lkml.kernel.org/r/1466769240-12376-5-git-send-email-ravi.bangoria@linux.vnet.ibm.com
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