From: Denys Vlasenko Date: Fri, 10 Apr 2015 13:06:59 +0000 (+0200) Subject: perf/x86/64: Report regs_user->ax too in get_regs_user() X-Git-Tag: MMI-PSA29.97-13-9~10335^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3b75232d55680ca166dffa274d0587d5faf0a016;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git perf/x86/64: Report regs_user->ax too in get_regs_user() I don't see why we report e.g. orix_ax, which is not always meaningful, but don't report ax, which is meaningful. Signed-off-by: Denys Vlasenko Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Paul Mackerras Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1428671219-29341-4-git-send-email-dvlasenk@redhat.com Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/perf_regs.c b/arch/x86/kernel/perf_regs.c index 8157d3900bc2..da8cb987b973 100644 --- a/arch/x86/kernel/perf_regs.c +++ b/arch/x86/kernel/perf_regs.c @@ -135,6 +135,7 @@ void perf_get_regs_user(struct perf_regs *regs_user, * On 32-bit entry points, they are saved too except r8..r11. */ regs_user_copy->ip = user_regs->ip; + regs_user_copy->ax = user_regs->ax; regs_user_copy->cx = user_regs->cx; regs_user_copy->dx = user_regs->dx; regs_user_copy->si = user_regs->si;