lkml.org 
[lkml]   [2014]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 03/10] perf, tools: Use al.addr to set up call chain
Em Wed, Nov 12, 2014 at 06:05:21PM -0800, Andi Kleen escreveu:
> From: Andi Kleen <ak@linux.intel.com>
>
> Use the relative address, this makes get_srcline work correctly
> in the end.

Applied.

> Signed-off-by: Andi Kleen <ak@linux.intel.com>
> ---
> tools/perf/util/machine.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c
> index 2e16d69..066e963 100644
> --- a/tools/perf/util/machine.c
> +++ b/tools/perf/util/machine.c
> @@ -1411,7 +1411,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,
> --
> 1.9.3


\
 
 \ /
  Last update: 2014-11-13 20:41    [W:0.579 / U:0.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site