arm64: perf: Report the PC value in REGS_ABI_32 mode
authorJiping Ma <jiping.ma2@windriver.com>
Mon, 11 May 2020 02:52:07 +0000 (10:52 +0800)
committerWill Deacon <will@kernel.org>
Thu, 25 Jun 2020 13:47:04 +0000 (14:47 +0100)
commit8dfe804a4031ca6ba3a3efb2048534249b64f3a5
tree98f3ed69b65171b6b53fd2103e2aaa610679596c
parentcb944f02d0d8c5a5f38119242325fe26504d33d2
arm64: perf: Report the PC value in REGS_ABI_32 mode

A 32-bit perf querying the registers of a compat task using REGS_ABI_32
will receive zeroes from w15, when it expects to find the PC.

Return the PC value for register dwarf register 15 when returning register
values for a compat task to perf.

Cc: <stable@vger.kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Jiping Ma <jiping.ma2@windriver.com>
Link: https://lore.kernel.org/r/1589165527-188401-1-git-send-email-jiping.ma2@windriver.com
[will: Shuffled code and added a comment]
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/perf_regs.c