Commit 34bfc10a authored by Björn Töpel's avatar Björn Töpel Committed by Daniel Borkmann

riscv, perf: Add arch specific perf_arch_bpf_user_pt_regs

RISC-V was missing a proper perf_arch_bpf_user_pt_regs macro for
CONFIG_PERF_EVENT builds.
Signed-off-by: default avatarBjörn Töpel <bjorn.topel@gmail.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20191216091343.23260-10-bjorn.topel@gmail.com
parent eb9928be
...@@ -82,4 +82,8 @@ struct riscv_pmu { ...@@ -82,4 +82,8 @@ struct riscv_pmu {
int irq; int irq;
}; };
#ifdef CONFIG_PERF_EVENTS
#define perf_arch_bpf_user_pt_regs(regs) (struct user_regs_struct *)regs
#endif
#endif /* _ASM_RISCV_PERF_EVENT_H */ #endif /* _ASM_RISCV_PERF_EVENT_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment