]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7e0161ee4f6b2c22e44eeaf4bfdf6e94fc118f0e
treecc21056d94d0fc083bbac40ea1be996cb0d79572
parent7750665ddd28e4a00b66dd005989634ad7fe980e
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