]> git.baikalelectronics.ru Git - 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)
commit3ab6f803fc58128bbea124badc166cac49ac8f75
tree96070f10fadd478d6f644d639b899d9bb9311650
parent293d222228b666a2a3ea4e0454bdb43a6ea195e6
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]