From: Andi Kleen Date: Thu, 13 Nov 2014 02:05:21 +0000 (-0800) Subject: perf callchain: Use al.addr to set up call chain X-Git-Tag: v3.19-rc1~160^2~2^2~9 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=5550171b2a9f8df26ff483051d060db06376b26d;p=~emulex%2Finfiniband.git perf callchain: Use al.addr to set up call chain Use the relative address, this makes get_srcline work correctly in the end. Signed-off-by: Andi Kleen Cc: Jiri Olsa Cc: Namhyung Kim Link: http://lkml.kernel.org/r/1415844328-4884-4-git-send-email-andi@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c index 84390eecab0..d97309c87bd 100644 --- a/tools/perf/util/machine.c +++ b/tools/perf/util/machine.c @@ -1406,7 +1406,7 @@ static int add_callchain_ip(struct thread *thread, } } - return callchain_cursor_append(&callchain_cursor, ip, al.map, al.sym); + return callchain_cursor_append(&callchain_cursor, al.addr, al.map, al.sym); } struct branch_info *sample__resolve_bstack(struct perf_sample *sample,