nds32/ftrace: Support dynamic function tracer
authorZong Li <zong@andestech.com>
Wed, 15 Aug 2018 03:00:08 +0000 (11:00 +0800)
committerGreentime Hu <greentime@andestech.com>
Tue, 4 Sep 2018 06:45:18 +0000 (14:45 +0800)
commit6b1d6d2fba37129f690ee7e9164f225c55626cac
treed343bd17356b373133cce508a63c1de3b2f1e933
parentfbf58a52ac088669dfa930e557d0303a9fbb7e17
nds32/ftrace: Support dynamic function tracer

This patch contains the implementation of dynamic function tracer.
The mcount call is composed of three instructions, so there are three
nop for enough placeholder.

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/include/asm/ftrace.h
arch/nds32/kernel/ftrace.c