summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorBjörn Töpel <bjorn.topel@gmail.com>2019-12-16 12:13:42 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2019-12-19 18:03:31 +0300
commiteb9928bed003dd61a443d0ba51ae066429fbe735 (patch)
treecc21056d94d0fc083bbac40ea1be996cb0d79572 /arch
parente368b64f8b0c8066115ad1da71f83f20f7bb43af (diff)
downloadlinux-eb9928bed003dd61a443d0ba51ae066429fbe735.tar.xz
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
Diffstat (limited to 'arch')
-rw-r--r--arch/riscv/include/uapi/asm/bpf_perf_event.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/riscv/include/uapi/asm/bpf_perf_event.h b/arch/riscv/include/uapi/asm/bpf_perf_event.h
new file mode 100644
index 000000000000..6cb1c2823288
--- /dev/null
+++ b/arch/riscv/include/uapi/asm/bpf_perf_event.h
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
+#ifndef _UAPI__ASM_BPF_PERF_EVENT_H__
+#define _UAPI__ASM_BPF_PERF_EVENT_H__
+
+#include <asm/ptrace.h>
+
+typedef struct user_regs_struct bpf_user_pt_regs_t;
+
+#endif /* _UAPI__ASM_BPF_PERF_EVENT_H__ */