diff options
author | Guo Ren <guoren@linux.alibaba.com> | 2020-05-13 09:15:25 +0200 |
---|---|---|
committer | Guo Ren <guoren@linux.alibaba.com> | 2020-05-13 11:55:06 +0200 |
commit | 18c07d23da5a48525b2955aa269b8bb108c19300 (patch) | |
tree | 450a798836c2658ff1a2b7fce73bbc5bd59df9af /arch/csky/kernel/Makefile | |
parent | csky: Fixup perf callchain unwind (diff) | |
download | linux-18c07d23da5a48525b2955aa269b8bb108c19300.tar.xz linux-18c07d23da5a48525b2955aa269b8bb108c19300.zip |
csky: Fixup calltrace panic
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>
Diffstat (limited to 'arch/csky/kernel/Makefile')
-rw-r--r-- | arch/csky/kernel/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/csky/kernel/Makefile b/arch/csky/kernel/Makefile index fd6d9dc8b7f3..37f37c0e934a 100644 --- a/arch/csky/kernel/Makefile +++ b/arch/csky/kernel/Makefile @@ -3,7 +3,7 @@ extra-y := head.o vmlinux.lds obj-y += entry.o atomic.o signal.o traps.o irq.o time.o vdso.o obj-y += power.o syscall.o syscall_table.o setup.o -obj-y += process.o cpu-probe.o ptrace.o dumpstack.o +obj-y += process.o cpu-probe.o ptrace.o stacktrace.o obj-y += probes/ obj-$(CONFIG_MODULES) += module.o |