powerpc/bpf: Fix broken uapi for BPF_PROG_TYPE_PERF_EVENT
authorSandipan Das <sandipan@linux.ibm.com>
Thu, 6 Dec 2018 09:27:01 +0000 (14:57 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 7 Dec 2018 12:19:04 +0000 (23:19 +1100)
commita6460b03f945ee216dbf42a0d9ee78d52fd470c2
tree6829bede4f649bfe25a83a515a6dbd955762679d
parente41b93a6be57e26a4a123345f826a6ac3a213551
powerpc/bpf: Fix broken uapi for BPF_PROG_TYPE_PERF_EVENT

Now that there are different variants of pt_regs for userspace and
kernel, the uapi for the BPF_PROG_TYPE_PERF_EVENT program type must be
changed by exporting the user_pt_regs structure instead of the pt_regs
structure that is in-kernel only.

Fixes: 002af9391bfb ("powerpc: Split user/kernel definitions of struct pt_regs")
Signed-off-by: Sandipan Das <sandipan@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/perf_event.h
arch/powerpc/include/uapi/asm/Kbuild
arch/powerpc/include/uapi/asm/bpf_perf_event.h [new file with mode: 0644]