nds32/stack: Get real return address by using ftrace_graph_ret_addr
authorZong Li <zong@andestech.com>
Wed, 15 Aug 2018 03:05:40 +0000 (11:05 +0800)
committerGreentime Hu <greentime@andestech.com>
Tue, 4 Sep 2018 06:45:18 +0000 (14:45 +0800)
commit1e377ae9b04aef4dc531fa4c5f81b65d440ebcba
tree4a43286c98a7ba45a865f7a75364d651f1e9d65e
parent95cd2f7bce9aa712473bba1b5b3f4fdec148baee
nds32/stack: Get real return address by using ftrace_graph_ret_addr

Function graph tracer has modified the return address to
'return_to_handler' on stack, and provide the 'ftrace_graph_ret_addr' to
get the real return address.

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/kernel/stacktrace.c
arch/nds32/kernel/traps.c