From fbddec5aa61bca3ab41bf670fc2404c8f82204e7 Mon Sep 17 00:00:00 2001 From: Changki Kim Date: Wed, 30 May 2018 14:30:44 +0900 Subject: [PATCH] [COMMON] arm64: traps: Add to print callstack in last information Change-Id: I6e20a80adc72e4d11e912605d1559dbc331dd3b0 Signed-off-by: Changki Kim --- arch/arm64/kernel/traps.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/kernel/traps.c b/arch/arm64/kernel/traps.c index e0e663d97514..5a8aa647154d 100644 --- a/arch/arm64/kernel/traps.c +++ b/arch/arm64/kernel/traps.c @@ -179,6 +179,7 @@ void dump_backtrace(struct pt_regs *regs, struct task_struct *tsk) /* skip until specified stack frame */ if (!skip) { dump_backtrace_entry(frame.pc); + dbg_snapshot_save_log(raw_smp_processor_id(), frame.pc); } else if (frame.fp == regs->regs[29]) { skip = 0; /* @@ -189,6 +190,7 @@ void dump_backtrace(struct pt_regs *regs, struct task_struct *tsk) * instead. */ dump_backtrace_entry(regs->pc); + dbg_snapshot_save_log(raw_smp_processor_id(), regs->pc); } ret = unwind_frame(tsk, &frame); if (ret < 0) -- 2.20.1