Re: [PATCH] perf probe: Use dwarf_getcfi_elf() instead of dwarf_getcfi()

2014-04-07 Thread Masami Hiramatsu
(2014/04/07 16:05), Namhyung Kim wrote: > 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

[PATCH] perf probe: Use dwarf_getcfi_elf() instead of dwarf_getcfi()

2014-04-07 Thread Namhyung Kim
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. Cc: Masami Hiramatsu Signed-off-by:

[PATCH] perf probe: Use dwarf_getcfi_elf() instead of dwarf_getcfi()

2014-04-07 Thread Namhyung Kim
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. Cc: Masami Hiramatsu

Re: [PATCH] perf probe: Use dwarf_getcfi_elf() instead of dwarf_getcfi()

2014-04-07 Thread Masami Hiramatsu
(2014/04/07 16:05), Namhyung Kim wrote: 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