]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - tools/perf/ui/browsers/annotate.c
perf annotate: Don't try to follow jump target on PLT symbols
authorNamhyung Kim <namhyung.kim@lge.com>
Fri, 9 Nov 2012 17:27:15 +0000 (02:27 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 9 Nov 2012 19:23:21 +0000 (16:23 -0300)
commit32ae1efd9d40645601cd4e09fa83a2711dd1ad6d
treebfe73fa1fb41d7d72ce593829cf36d88518de5e5
parent2ba34aaa6db8b61cf1fa14132f885ba6bc7c9ae0
perf annotate: Don't try to follow jump target on PLT symbols

The perf annotate browser on TUI can identify a jump target for a
selected instruction.  It assumes that the jump target is within the
function but it's not the case of PLT symbols which have offset out of
the function as a target.

Since it caused a segmentation fault, do not try to follow jump target
on the PLT symbols.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1352482044-3443-5-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/ui/browsers/annotate.c