From: Changki Kim Date: Wed, 30 May 2018 05:30:44 +0000 (+0900) Subject: [COMMON] arm64: traps: Add to print callstack in last information X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fbddec5aa61bca3ab41bf670fc2404c8f82204e7;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] arm64: traps: Add to print callstack in last information Change-Id: I6e20a80adc72e4d11e912605d1559dbc331dd3b0 Signed-off-by: Changki Kim --- 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)