commit | 5b75a6af11357813a7eeb4a29d0261adbbfab556 | [log] [tgz] |
---|---|---|
author | Will Deacon <will.deacon@arm.com> | Fri Aug 22 14:25:21 2014 +0100 |
committer | Will Deacon <will.deacon@arm.com> | Thu Aug 28 20:01:50 2014 +0100 |
tree | f9b1c90258e8e5bf43308ee76eb123860e313225 | |
parent | 85487edd252fa04718dcd735bc0f41213bbb9546 [diff] |
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 <jean.pihet@linaro.org> Signed-off-by: Will Deacon <will.deacon@arm.com>