summaryrefslogtreecommitdiffstats
path: root/arch/csky/kernel/dumpstack.c
Commit message (Collapse)AuthorAgeFilesLines
* csky: Fixup calltrace panicGuo Ren2020-05-131-49/+0
| | | | | | | | | | | | | | | | | | | | The implementation of show_stack will panic with wrong fp: addr = *fp++; because the fp isn't checked properly. The current implementations of show_stack, wchan and stack_trace haven't been designed properly, so just deprecate them. This patch is a reference to riscv's way, all codes are modified from arm's. The patch is passed with: - cat /proc/<pid>/stack - cat /proc/<pid>/wchan - echo c > /proc/sysrq-trigger Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
* csky: Fixup dead loop in show_stackGuo Ren2019-02-131-0/+4
| | | | | | | | When STACKTRACE is enabled, we must pass fp as stack for unwind, otherwise random value in stack will casue a dead loop. Signed-off-by: Guo Ren <ren_guo@c-sky.com> Reported-by: Lu Baoquan <lu.baoquan@intellif.com>
* csky: optimize kernel panic print.Guo Ren2018-12-311-40/+19
| | | | | | | Use STACKTRACE to optimize panic print more pretty and align registers printing. Signed-off-by: Guo Ren <ren_guo@c-sky.com>
* csky: Debug and Ptrace GDBGuo Ren2018-10-261-0/+66
This patch adds arch ptrace implementation, stack dump and bug.h. Signed-off-by: Guo Ren <ren_guo@c-sky.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de>