We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efb44ff commit d3119bcCopy full SHA for d3119bc
arch/loongarch/include/asm/perf_event.h
@@ -7,6 +7,14 @@
7
#ifndef __LOONGARCH_PERF_EVENT_H__
8
#define __LOONGARCH_PERF_EVENT_H__
9
10
+#include <asm/ptrace.h>
11
+
12
#define perf_arch_bpf_user_pt_regs(regs) (struct user_pt_regs *)regs
13
14
+#define perf_arch_fetch_caller_regs(regs, __ip) { \
15
+ (regs)->csr_era = (__ip); \
16
+ (regs)->regs[3] = current_stack_pointer; \
17
+ (regs)->regs[22] = (unsigned long) __builtin_frame_address(0); \
18
+}
19
20
#endif /* __LOONGARCH_PERF_EVENT_H__ */
0 commit comments