Files
android_kernel_xiaomi_sm8450/arch/powerpc/kernel
Naveen N. Rao a4979a7e71 powerpc/ftrace: Pass the correct stack pointer for DYNAMIC_FTRACE_WITH_REGS
For DYNAMIC_FTRACE_WITH_REGS, we should be passing-in the original set
of registers in pt_regs, to capture the state _before_ ftrace_caller.
However, we are instead passing the stack pointer *after* allocating a
stack frame in ftrace_caller. Fix this by saving the proper value of r1
in pt_regs. Also, use SAVE_10GPRS() to simplify the code.

Fixes: 153086644f ("powerpc/ftrace: Add support for -mprofile-kernel ftrace ABI")
Cc: stable@vger.kernel.org # v4.6+
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2017-06-16 19:49:43 +10:00
..
2016-06-14 13:58:26 +10:00
2016-06-21 15:30:56 +10:00
2014-11-27 09:32:58 +11:00
2017-01-26 17:49:34 -06:00
2016-08-07 23:50:09 -04:00
2016-08-07 23:50:09 -04:00
2017-04-20 11:39:21 +10:00
2015-08-06 15:10:20 +10:00
2016-08-07 23:50:09 -04:00
2016-07-15 14:57:47 +10:00
2015-04-07 17:15:13 +10:00