aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJean Pihet <jean.pihet@linaro.org>2013-12-16 11:43:14 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2014-01-13 08:06:26 -0500
commitd11416e76b3e2f60ed6cfa7c532d3b6777f66527 (patch)
treed6187d56b211d5856fc5dfa6c2a0416879da010d /tools
parent4887805384751717ef62a8f41439d1d3e4268b39 (diff)
perf tools: Use the DWARF unwind info only if loaded
Use the info only if it has been found in the .debug_frame section of the ELF binary. Signed-off-by: Jean Pihet <jean.pihet@linaro.org> Acked-by: Jiri Olsa <jolsa@redhat.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Will Deacon <will.deacon@arm.com> Cc: linaro-kernel@lists.linaro.org Cc: patches@linaro.org Link: http://lkml.kernel.org/r/1387212194-8028-1-git-send-email-jean.pihet@linaro.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/util/unwind.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/util/unwind.c b/tools/perf/util/unwind.c
index 0efd5393de85..416f22bf3693 100644
--- a/tools/perf/util/unwind.c
+++ b/tools/perf/util/unwind.c
@@ -340,10 +340,10 @@ find_proc_info(unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi,
340 /* Check the .debug_frame section for unwinding info */ 340 /* Check the .debug_frame section for unwinding info */
341 if (!read_unwind_spec_debug_frame(map->dso, ui->machine, &segbase)) { 341 if (!read_unwind_spec_debug_frame(map->dso, ui->machine, &segbase)) {
342 memset(&di, 0, sizeof(di)); 342 memset(&di, 0, sizeof(di));
343 dwarf_find_debug_frame(0, &di, ip, 0, map->dso->name, 343 if (dwarf_find_debug_frame(0, &di, ip, 0, map->dso->name,
344 map->start, map->end); 344 map->start, map->end))
345 return dwarf_search_unwind_table(as, ip, &di, pi, 345 return dwarf_search_unwind_table(as, ip, &di, pi,
346 need_unwind_info, arg); 346 need_unwind_info, arg);
347 } 347 }
348#endif 348#endif
349 349