]> 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)
commitab78330094bc02c5961c4c4cb8b3ffc6148ec3f4
tree96070f10fadd478d6f644d639b899d9bb9311650
parent3e4d788c7f9749cfa0f4a756fc1f26dd274cbcf0
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]