riscv, bpf: Add missing uapi header for BPF_PROG_TYPE_PERF_EVENT programs
authorBjörn Töpel <bjorn.topel@gmail.com>
Mon, 16 Dec 2019 09:13:42 +0000 (10:13 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 19 Dec 2019 15:03:31 +0000 (16:03 +0100)
commiteb9928bed003dd61a443d0ba51ae066429fbe735
treecc21056d94d0fc083bbac40ea1be996cb0d79572
parente368b64f8b0c8066115ad1da71f83f20f7bb43af
riscv, bpf: Add missing uapi header for BPF_PROG_TYPE_PERF_EVENT programs

Add missing uapi header the BPF_PROG_TYPE_PERF_EVENT programs by
exporting struct user_regs_struct instead of struct pt_regs which is
in-kernel only.

Signed-off-by: Björn Töpel <bjorn.topel@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20191216091343.23260-9-bjorn.topel@gmail.com
arch/riscv/include/uapi/asm/bpf_perf_event.h [new file with mode: 0644]
tools/include/uapi/asm/bpf_perf_event.h