projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb9928b
)
riscv, perf: Add arch specific perf_arch_bpf_user_pt_regs
author
Björn Töpel
<bjorn.topel@gmail.com>
Mon, 16 Dec 2019 09:13:43 +0000
(10:13 +0100)
committer
Daniel Borkmann
<daniel@iogearbox.net>
Thu, 19 Dec 2019 15:03:31 +0000
(16:03 +0100)
RISC-V was missing a proper perf_arch_bpf_user_pt_regs macro for
CONFIG_PERF_EVENT builds.
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-10-bjorn.topel@gmail.com
arch/riscv/include/asm/perf_event.h
patch
|
blob
|
history
diff --git
a/arch/riscv/include/asm/perf_event.h
b/arch/riscv/include/asm/perf_event.h
index
aefbfaa
..
0234048
100644
(file)
--- a/
arch/riscv/include/asm/perf_event.h
+++ b/
arch/riscv/include/asm/perf_event.h
@@
-82,4
+82,8
@@
struct riscv_pmu {
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 */