summaryrefslogtreecommitdiffstats
path: root/arch/nds32/include/asm/ftrace.h
Commit message (Collapse)AuthorAgeFilesLines
* nds32/ftrace: Support dynamic function tracerZong Li2018-09-041-0/+26
| | | | | | | | | | 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>
* nds32/ftrace: Support static function tracerZong Li2018-09-041-0/+20
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>
OpenPOWER on IntegriCloud