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)
committerSasha Levin <sashal@kernel.org>
Tue, 30 Jun 2020 19:37:10 +0000 (15:37 -0400)
commit73f79b420bd0e2f93ee8896dca07313b8ab3eb0a
tree90a9e9c9d76c131c6263726ac69f68f61b060603
parent7a9e3e25a9d25b58d565f79e0da9ed494e9952ea
arm64: perf: Report the PC value in REGS_ABI_32 mode

commit 8dfe804a4031ca6ba3a3efb2048534249b64f3a5 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/kernel/perf_regs.c