diff options
author | Björn Töpel <bjorn.topel@gmail.com> | 2019-12-16 10:13:42 +0100 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-12-19 16:03:31 +0100 |
commit | eb9928bed003dd61a443d0ba51ae066429fbe735 (patch) | |
tree | cc21056d94d0fc083bbac40ea1be996cb0d79572 /tools/include | |
parent | e368b64f8b0c8066115ad1da71f83f20f7bb43af (diff) | |
download | linux-eb9928bed003dd61a443d0ba51ae066429fbe735.tar.bz2 |
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 'tools/include')
-rw-r--r-- | tools/include/uapi/asm/bpf_perf_event.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/include/uapi/asm/bpf_perf_event.h b/tools/include/uapi/asm/bpf_perf_event.h index 13a58531e6fa..39acc149d843 100644 --- a/tools/include/uapi/asm/bpf_perf_event.h +++ b/tools/include/uapi/asm/bpf_perf_event.h @@ -2,6 +2,8 @@ #include "../../arch/arm64/include/uapi/asm/bpf_perf_event.h" #elif defined(__s390__) #include "../../arch/s390/include/uapi/asm/bpf_perf_event.h" +#elif defined(__riscv) +#include "../../arch/riscv/include/uapi/asm/bpf_perf_event.h" #else #include <uapi/asm-generic/bpf_perf_event.h> #endif |