summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/perf_regs.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm64/kernel/perf_regs.c')
-rw-r--r--arch/arm64/kernel/perf_regs.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm64/kernel/perf_regs.c b/arch/arm64/kernel/perf_regs.c
index 6762ad70558..3f62b35fb6f 100644
--- a/arch/arm64/kernel/perf_regs.c
+++ b/arch/arm64/kernel/perf_regs.c
@@ -50,3 +50,11 @@ u64 perf_reg_abi(struct task_struct *task)
else
return PERF_SAMPLE_REGS_ABI_64;
}
+
+void perf_get_regs_user(struct perf_regs *regs_user,
+ struct pt_regs *regs,
+ struct pt_regs *regs_user_copy)
+{
+ regs_user->regs = task_pt_regs(current);
+ regs_user->abi = perf_reg_abi(current);
+}