]> git.baikalelectronics.ru Git - kernel.git/commit
sh: ftrace: Use ftrace_graph_get_ret_stack() instead of curr_ret_stack
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 7 Dec 2018 18:06:04 +0000 (13:06 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sat, 22 Dec 2018 13:21:02 +0000 (08:21 -0500)
commitaf1456c4ea458e355be0489dceb593fec2849cef
tree3d1a3e31f78f06c9b3143dff18b4d53e1878b82b
parent37e9f3502bf83b0197916b59873852a3d75c5a0b
sh: ftrace: Use ftrace_graph_get_ret_stack() instead of curr_ret_stack

The structure of the ret_stack array on the task struct is going to
change, and accessing it directly via the curr_ret_stack index will no
longer give the ret_stack entry that holds the return address. To access
that, architectures must now use ftrace_graph_get_ret_stack() to get the
associated ret_stack that matches the saved return address.

Cc: linux-sh@vger.kernel.org
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Rich Felker <dalias@libc.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
arch/sh/kernel/dumpstack.c
arch/sh/kernel/dwarf.c