All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] perf unwind: Fix a compile error
@ 2015-06-16 11:16 Hou Pengyang
  2015-06-16 13:47 ` Arnaldo Carvalho de Melo
  2015-06-18  8:15 ` [tip:perf/core] " tip-bot for Hou Pengyang
  0 siblings, 2 replies; 5+ messages in thread
From: Hou Pengyang @ 2015-06-16 11:16 UTC (permalink / raw)
  To: namhyung, acme; +Cc: mingo, wangnan0, linux-kernel

When libunwind is on, there is a compile error as :

util/unwind-libunwind.c:363:21: error: 'dso' undeclared (first use in this function)
    dso__data_put_fd(dso);

This patch fix it.

Fixes: 4bb11d012ab248d0 ("perf tools: Add dso__data_get/put_fd()")
Signed-off-by: Hou Pengyang <houpengyang@huawei.com>
---
 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 f079b63..4c00507 100644
--- a/tools/perf/util/unwind-libunwind.c
+++ b/tools/perf/util/unwind-libunwind.c
@@ -360,7 +360,7 @@ find_proc_info(unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi,
 		unw_word_t base = is_exec ? 0 : map->start;
 
 		if (fd >= 0)
-			dso__data_put_fd(dso);
+			dso__data_put_fd(map->dso);
 
 		memset(&di, 0, sizeof(di));
 		if (dwarf_find_debug_frame(0, &di, ip, base, map->dso->name,
-- 
1.8.5.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-06-18  8:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-16 11:16 [PATCH] perf unwind: Fix a compile error Hou Pengyang
2015-06-16 13:47 ` Arnaldo Carvalho de Melo
2015-06-17 11:51   ` Wangnan (F)
2015-06-17 19:35     ` Arnaldo Carvalho de Melo
2015-06-18  8:15 ` [tip:perf/core] " tip-bot for Hou Pengyang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.