diff options
author | Guo Ren <guoren@linux.alibaba.com> | 2020-05-13 15:15:25 +0800 |
---|---|---|
committer | Guo Ren <guoren@linux.alibaba.com> | 2020-05-13 17:55:06 +0800 |
commit | 18c07d23da5a48525b2955aa269b8bb108c19300 (patch) | |
tree | 450a798836c2658ff1a2b7fce73bbc5bd59df9af /arch/csky/Makefile | |
parent | 229a0ddee1108a3f82a873e6cbbe35c92c540444 (diff) | |
download | linux-18c07d23da5a48525b2955aa269b8bb108c19300.tar.bz2 |
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/Makefile')
-rw-r--r-- | arch/csky/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/csky/Makefile b/arch/csky/Makefile index fb1bbbd91954..37f593a4bf53 100644 --- a/arch/csky/Makefile +++ b/arch/csky/Makefile @@ -47,7 +47,7 @@ ifeq ($(CSKYABI),abiv2) KBUILD_CFLAGS += -mno-stack-size endif -ifdef CONFIG_STACKTRACE +ifdef CONFIG_FRAME_POINTER KBUILD_CFLAGS += -mbacktrace endif |