Commit 5df71b39 authored by Denys Vlasenko's avatar Denys Vlasenko Committed by Ingo Molnar

perf/x86/64: Do report user_regs->cx while we are in syscall, in get_regs_user()

Yes, it is true that cx contains return address.
It's not clear why we trash it.
Stop doing that.
Signed-off-by: default avatarDenys Vlasenko <dvlasenk@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1428671219-29341-2-git-send-email-dvlasenk@redhat.comSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent aa21df04
...@@ -177,8 +177,6 @@ void perf_get_regs_user(struct perf_regs *regs_user, ...@@ -177,8 +177,6 @@ void perf_get_regs_user(struct perf_regs *regs_user,
* than just blindly copying user_regs. * than just blindly copying user_regs.
*/ */
regs_user->abi = PERF_SAMPLE_REGS_ABI_64; regs_user->abi = PERF_SAMPLE_REGS_ABI_64;
/* usually contains return address (same as ->ip) */
regs_user_copy->cx = -1;
} else { } else {
/* We're probably in an interrupt or exception. */ /* We're probably in an interrupt or exception. */
regs_user->abi = user_64bit_mode(user_regs) ? regs_user->abi = user_64bit_mode(user_regs) ?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment