summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/perf_regs.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/kernel/perf_regs.c')
-rw-r--r--arch/arm/kernel/perf_regs.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/kernel/perf_regs.c b/arch/arm/kernel/perf_regs.c
index 6e4379c67cbc..592dda3f21ff 100644
--- a/arch/arm/kernel/perf_regs.c
+++ b/arch/arm/kernel/perf_regs.c
@@ -28,3 +28,11 @@ u64 perf_reg_abi(struct task_struct *task)
{
return PERF_SAMPLE_REGS_ABI_32;
}
+
+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);
+}
OpenPOWER on IntegriCloud