powerpc/ftrace: Use patch_instruction instead of probe_kernel_write()
authorSteven Rostedt <srostedt@redhat.com>
Thu, 26 Apr 2012 08:31:19 +0000 (08:31 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 3 Jul 2012 04:14:39 +0000 (14:14 +1000)
commit65b8c7226eb74a7db1a618d69d5cb0cb5f13e99d
tree72b4b1f749c2bccb9b3ceda3f3b8279d38738ee5
parentb6e3796834faefe4b6e9a2aedfe12665cd51fbc5
powerpc/ftrace: Use patch_instruction instead of probe_kernel_write()

The patch_instruction() interface is made to modify kernel text. It is
safer to use that then the probe_kernel_write() when modifying kernel
code.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/ftrace.c