From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752898AbbI0SiM (ORCPT ); Sun, 27 Sep 2015 14:38:12 -0400 Received: from bes.se.axis.com ([195.60.68.10]:34140 "EHLO bes.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751894AbbI0SiL (ORCPT ); Sun, 27 Sep 2015 14:38:11 -0400 From: Rabin Vincent To: Arnaldo Carvalho de Melo , Ingo Molnar , Peter Zijlstra CC: , Rabin Vincent Subject: [PATCH 2/5] perf: unwind: pass symbol source to libunwind Date: Sun, 27 Sep 2015 20:37:56 +0200 Message-ID: <1443379079-29133-2-git-send-email-rabin.vincent@axis.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1443379079-29133-1-git-send-email-rabin.vincent@axis.com> References: <1443379079-29133-1-git-send-email-rabin.vincent@axis.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Even if --symfs is used to point to the debug binaries, we send in the non-debug filenames to libunwind, which leads to libunwind not finding the debug frame. Fix this. Signed-off-by: Rabin Vincent --- tools/perf/util/unwind-libunwind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/unwind-libunwind.c b/tools/perf/util/unwind-libunwind.c index ef799dc..b93bf7f 100644 --- a/tools/perf/util/unwind-libunwind.c +++ b/tools/perf/util/unwind-libunwind.c @@ -363,7 +363,7 @@ find_proc_info(unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi, dso__data_put_fd(map->dso); memset(&di, 0, sizeof(di)); - if (dwarf_find_debug_frame(0, &di, ip, base, map->dso->name, + if (dwarf_find_debug_frame(0, &di, ip, base, map->dso->symsrc_filename, map->start, map->end)) return dwarf_search_unwind_table(as, ip, &di, pi, need_unwind_info, arg); -- 1.7.10.4