summaryrefslogtreecommitdiff
path: root/arch/powerpc/tools
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2019-10-30 14:12:31 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2019-10-30 14:31:54 +0300
commitb9e0805abf2e92fc275ac5fbd8c1c9a92b00413d (patch)
tree6797e14f53de5e4eb9ca899d08008dfbac6ff05c /arch/powerpc/tools
parent5c74f79958682fccd82a6029c53859d1dab3b239 (diff)
downloadlinux-b9e0805abf2e92fc275ac5fbd8c1c9a92b00413d.tar.xz
powerpc: Add build-time check of ptrace PT_xx defines
As part of the uapi we export a lot of PT_xx defines for each register in struct pt_regs. These are expressed as an index from gpr[0], in units of unsigned long. Currently there's nothing tying the values of those defines to the actual layout of the struct. But we *don't* want to change the uapi defines to derive the PT_xx values based on the layout of the struct, those values are ABI and must never change. Instead we want to do the reverse, make sure that the layout of the struct never changes vs the PT_xx defines. So add build time checks of that. This probably seems paranoid, but at least once in the past someone has sent a patch that would have broken the ABI if it hadn't been spotted. Although it probably would have been detected via testing, it's preferable to just quash any issues at the source. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20191030111231.22720-1-mpe@ellerman.id.au
Diffstat (limited to 'arch/powerpc/tools')
0 files changed, 0 insertions, 0 deletions