[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110717173103.GB29355@somewhere>
Date: Sun, 17 Jul 2011 19:31:06 +0200
From: Frederic Weisbecker <fweisbec@...il.com>
To: David Ahern <dsahern@...il.com>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Arnaldo Carvalho de Melo <acme@...hat.com>,
Ingo Molnar <mingo@...e.hu>
Cc: linux-perf-users@...r.kernel.org, linux-kernel@...r.kernel.org,
paulus@...ba.org, tglx@...utronix.de
Subject: Re: [PATCH] perf script: fix display of IP address for non-callchain
path
On Mon, May 30, 2011 at 09:16:27AM -0600, David Ahern wrote:
> Non-callchain path is using al.addr which prints as:
> openssl 14564 17672.003587: 7862d _x86_64_AES_encrypt_compact
>
> This should be sample->ip to print as:
> openssl 14564 17672.003587: 3f7867862d _x86_64_AES_encrypt_compact
>
> Signed-off-by: David Ahern <dsahern@...il.com>
Acked-by: Frederic Weisbecker <fweisbec@...il.com>
> ---
> tools/perf/util/session.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c
> index e6cf0e2..360d8c4 100644
> --- a/tools/perf/util/session.c
> +++ b/tools/perf/util/session.c
> @@ -1247,7 +1247,7 @@ void perf_session__print_ip(union perf_event *event,
> }
>
> } else {
> - printf("%16" PRIx64, al.addr);
> + printf("%16" PRIx64, sample->ip);
> if (print_sym) {
> if (al.sym && al.sym->name)
> symname = al.sym->name;
> --
> 1.7.5.2
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists