]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
nds32/ftrace: Support static function tracer
authorZong Li <zong@andestech.com>
Wed, 15 Aug 2018 02:45:59 +0000 (10:45 +0800)
committerGreentime Hu <greentime@andestech.com>
Tue, 4 Sep 2018 06:45:17 +0000 (14:45 +0800)
commita18082575c664847d36c6ca030b09ce8d93aec2f
tree96070f10fadd478d6f644d639b899d9bb9311650
parent487913ab18c215b06611c4c91c7e905fc0960eb8
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>
arch/nds32/Kconfig
arch/nds32/Makefile
arch/nds32/include/asm/ftrace.h [new file with mode: 0644]
arch/nds32/kernel/Makefile
arch/nds32/kernel/ftrace.c [new file with mode: 0644]