From: Will Deacon Date: Fri, 22 Aug 2014 13:25:21 +0000 (+0100) Subject: arm64: perf: don't rely on layout of pt_regs when grabbing sp or pc X-Git-Tag: fixes-v3.17-rc4~33^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b75a6af11357813a7eeb4a29d0261adbbfab556;p=pandora-kernel.git 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 Signed-off-by: Will Deacon --- Reading git-diff-tree failed