diff options
author | Zong Li <zong@andestech.com> | 2018-08-15 10:45:59 +0800 |
---|---|---|
committer | Greentime Hu <greentime@andestech.com> | 2018-09-04 14:45:17 +0800 |
commit | a18082575c664847d36c6ca030b09ce8d93aec2f (patch) | |
tree | 96070f10fadd478d6f644d639b899d9bb9311650 /arch/nds32/kernel/Makefile | |
parent | 487913ab18c215b06611c4c91c7e905fc0960eb8 (diff) | |
download | linux-stable-a18082575c664847d36c6ca030b09ce8d93aec2f.tar.gz linux-stable-a18082575c664847d36c6ca030b09ce8d93aec2f.tar.bz2 linux-stable-a18082575c664847d36c6ca030b09ce8d93aec2f.zip |
nds32/ftrace: Support static function tracer
This patch support the static function tracer. On nds32 ABI, we need to
always push return address to stack for __builtin_return_address can
work correctly, otherwise, it will get the wrong value of $lp at leaf
function.
Signed-off-by: Zong Li <zong@andestech.com>
Acked-by: Greentime Hu <greentime@andestech.com>
Signed-off-by: Greentime Hu <greentime@andestech.com>
Diffstat (limited to 'arch/nds32/kernel/Makefile')
-rw-r--r-- | arch/nds32/kernel/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/nds32/kernel/Makefile b/arch/nds32/kernel/Makefile index 42792743e8b9..27cded39fa66 100644 --- a/arch/nds32/kernel/Makefile +++ b/arch/nds32/kernel/Makefile @@ -21,3 +21,9 @@ extra-y := head.o vmlinux.lds obj-y += vdso/ + +obj-$(CONFIG_FUNCTION_TRACER) += ftrace.o + +ifdef CONFIG_FUNCTION_TRACER +CFLAGS_REMOVE_ftrace.o = $(CC_FLAGS_FTRACE) +endif |