]> Git Repo - linux.git/commit
arm64: perf: don't rely on layout of pt_regs when grabbing sp or pc
authorWill Deacon <[email protected]>
Fri, 22 Aug 2014 13:25:21 +0000 (14:25 +0100)
committerWill Deacon <[email protected]>
Thu, 28 Aug 2014 19:01:50 +0000 (20:01 +0100)
commit5b75a6af11357813a7eeb4a29d0261adbbfab556
treef9b1c90258e8e5bf43308ee76eb123860e313225
parent85487edd252fa04718dcd735bc0f41213bbb9546
arm64: perf: don't rely on layout of pt_regs when grabbing sp or pc

The current perf_regs code relies on sp and pc sitting just off the end
of the pt_regs->regs array. This is ugly and fragile, so this patch
checks for these register explicitly and returns the appropriate field.

Acked-by: Jean Pihet <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
arch/arm64/kernel/perf_regs.c
This page took 0.048593 seconds and 4 git commands to generate.