Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <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-4-git-send-email-dvlasenk@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>

authored by

Denys Vlasenko and committed by
Ingo Molnar
3b75232d 32caa060

+1
+1
arch/x86/kernel/perf_regs.c
··· 135 135 * On 32-bit entry points, they are saved too except r8..r11. 136 136 */ 137 137 regs_user_copy->ip = user_regs->ip; 138 + regs_user_copy->ax = user_regs->ax; 138 139 regs_user_copy->cx = user_regs->cx; 139 140 regs_user_copy->dx = user_regs->dx; 140 141 regs_user_copy->si = user_regs->si;