]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: powerpc: 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)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 9 Dec 2018 22:32:12 +0000 (14:32 -0800)
commit79b2722cb671220dd52caa8bd87497e818bda9c3
tree3744afb9a958ac8ade17042d0ae511284da7f69d
parent64f4bd0f1cbc9dde448b877598b313b0922f227b
bpf: powerpc: 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: 63d5e2e5c2e6 ("powerpc: Split user/kernel definitions of struct pt_regs")
Signed-off-by: Sandipan Das <sandipan@linux.ibm.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
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]