]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/ftrace: Use generic ftrace_modify_all_code()
authorTorsten Duwe <duwe@lst.de>
Thu, 3 Mar 2016 04:26:57 +0000 (15:26 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 7 Mar 2016 03:53:54 +0000 (14:53 +1100)
commit0444ff71e1dda25e5e471ff1edb3b3683e8f8250
tree6b307fef54e3df30a33e9a21813e7783bb3e3c40
parent0ab4119c006bc1ceed9c6bc67bb83227a871811f
powerpc/ftrace: Use generic ftrace_modify_all_code()

Convert powerpc's arch_ftrace_update_code() from its own version to use
the generic default functionality (without stop_machine -- our
instructions are properly aligned and the replacements atomic).

With this we gain error checking and the much-needed function_trace_op
handling.

Reviewed-by: Balbir Singh <bsingharora@gmail.com>
Reviewed-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Signed-off-by: Torsten Duwe <duwe@suse.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/ftrace.c