]> git.karo-electronics.de Git - karo-tx-linux.git/commit
s390/ftrace: prepare_ftrace_return() function call order
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 11 Oct 2013 06:55:57 +0000 (08:55 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 15 Oct 2013 12:45:40 +0000 (14:45 +0200)
commit9da37e77065bdf3af85659a70b8d533f040da84b
tree4a397b0e8335a436fc6c22f4516fde9a864b58ac
parentf2359fa83bd63032c4d4a899f2b6af3fc7856892
s390/ftrace: prepare_ftrace_return() function call order

Steven Rostedt noted that s390 is the only architecture which calls
ftrace_push_return_trace() before ftrace_graph_entry() and therefore has
the small advantage that trace.depth gets initialized automatically.

However this small advantage isn't worth the difference and possible subtle
breakage that may result from this.
So change s390 to have the same function call order like all other
architectures: first ftrace_graph_entry(), then ftrace_push_return_trace()

Reported-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/ftrace.c