perf probe: Use dwarf_getcfi_elf() instead of dwarf_getcfi()
authorNamhyung Kim <namhyung@kernel.org>
Mon, 7 Apr 2014 07:05:48 +0000 (16:05 +0900)
committerJiri Olsa <jolsa@redhat.com>
Mon, 14 Apr 2014 10:55:40 +0000 (12:55 +0200)
commit03d89412981a7681971bc77edba1669595763030
treea153fb1cde9350da10ccf844e292aa9300421478
parent182c228ebcf1ac67a44e62236d8f7a8a9a3c5699
perf probe: Use dwarf_getcfi_elf() instead of dwarf_getcfi()

The dwarf_getcfi() only checks .debug_frame section for CFI, but as
most binaries only have .eh_frame it'd return NULL and it makes
some variables inaccessible.

Using dwarf_getcfi_elf (along with dwarf_getelf()) allows to show and
add probe to more variables.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Link: http://lkml.kernel.org/r/1396854348-9296-1-git-send-email-namhyung@kernel.org
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
tools/perf/util/probe-finder.c