diff options
author | Andi Kleen <ak@linux.intel.com> | 2014-11-12 21:05:21 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-11-19 10:33:47 -0500 |
commit | 5550171b2a9f8df26ff483051d060db06376b26d (patch) | |
tree | 3dbe364d1dd92d383bf4e6baa507acedac316c92 /tools/perf/util/machine.c | |
parent | 37592b8afb7151994e760d1727c264329d9c13c8 (diff) |
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 <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1415844328-4884-4-git-send-email-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/machine.c')
-rw-r--r-- | tools/perf/util/machine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c index 84390eecab06..d97309c87bd6 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, | |||
1406 | } | 1406 | } |
1407 | } | 1407 | } |
1408 | 1408 | ||
1409 | return callchain_cursor_append(&callchain_cursor, ip, al.map, al.sym); | 1409 | return callchain_cursor_append(&callchain_cursor, al.addr, al.map, al.sym); |
1410 | } | 1410 | } |
1411 | 1411 | ||
1412 | struct branch_info *sample__resolve_bstack(struct perf_sample *sample, | 1412 | struct branch_info *sample__resolve_bstack(struct perf_sample *sample, |