[COMMON] arm64: traps: Add to print callstack in last information
authorChangki Kim <changki.kim@samsung.com>
Wed, 30 May 2018 05:30:44 +0000 (14:30 +0900)
committerjungi.lee <jungilsi.lee@samsung.com>
Tue, 17 Jul 2018 11:13:23 +0000 (20:13 +0900)
Change-Id: I6e20a80adc72e4d11e912605d1559dbc331dd3b0
Signed-off-by: Changki Kim <changki.kim@samsung.com>
arch/arm64/kernel/traps.c

index e0e663d97514177f66b20ad48683ebd57da932ec..5a8aa647154dba323cf1efaff33118426c1d5a1c 100644 (file)
@@ -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)