diff options
author | David Ahern <dsahern@gmail.com> | 2011-05-30 11:16:27 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-07-21 04:09:28 -0400 |
commit | adc4bf9955856f8aa081ba613dbf56ffd664f0b7 (patch) | |
tree | c110522a1a45d95b3452987e141d383ffd9ac81a /tools | |
parent | eda3913bb70ecebac13adccffe1e7f96e93cee02 (diff) |
perf script: Fix display of IP address for non-callchain path
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@gmail.com>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: acme@ghostprotocols.net
Cc: peterz@infradead.org
Cc: paulus@samba.org
Link: http://lkml.kernel.org/r/1306768587-15376-1-git-send-email-dsahern@gmail.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools')
-rw-r--r-- | 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 a3c13bcd5a8d..72458d9da5b1 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c | |||
@@ -1269,7 +1269,7 @@ void perf_session__print_ip(union perf_event *event, | |||
1269 | } | 1269 | } |
1270 | 1270 | ||
1271 | } else { | 1271 | } else { |
1272 | printf("%16" PRIx64, al.addr); | 1272 | printf("%16" PRIx64, sample->ip); |
1273 | if (print_sym) { | 1273 | if (print_sym) { |
1274 | if (al.sym && al.sym->name) | 1274 | if (al.sym && al.sym->name) |
1275 | symname = al.sym->name; | 1275 | symname = al.sym->name; |