Skip to content

Commit

Permalink
perf script: Fix display of IP address for non-callchain path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Ahern authored and Ingo Molnar committed Jul 21, 2011
1 parent eda3913 commit adc4bf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/perf/util/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,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;
Expand Down

0 comments on commit adc4bf9

Please sign in to comment.