From: Steven Rostedt (Red Hat) Date: Tue, 25 Nov 2014 02:00:34 +0000 (-0500) Subject: ftrace/fgraph/x86: Have prepare_ftrace_return() take ip as first parameter X-Git-Tag: omap-for-v3.19/fixes-rc1~141^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a06bdbf7f9c;p=pandora-kernel.git ftrace/fgraph/x86: Have prepare_ftrace_return() take ip as first parameter The function graph helper function prepare_ftrace_return() which does the work to hijack the parent pointer has that parent pointer as its first parameter. Instead, if we make it the second parameter and have ip as the first parameter (self_addr), then it can use the %rdi from save_mcount_regs that loads it already. Link: http://lkml.kernel.org/r/alpine.DEB.2.11.1411262304010.3961@nanos Reviewed-by: Thomas Gleixner Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed