Skip to content

RFC powerpc/ftrace: Removal of stop machine (and other goodies)

Steven Rostedt linuxppc-dev lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ftrace/ppc: Have PPC skip updating with stop_machine()arch/powerpc/kernel/ftrace.c+52 -01 reply
2/3powerpc: Have patch_instruction detect faultsarch/powerpc/include/asm/code-patching.h arch/powerpc/lib/code-patching.c+12 -60 replies
3/3ftrace/ppc: Use patch_instruction instead of probe_kernel_write()arch/powerpc/kernel/ftrace.c+4 -130 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3][RFC] powerpc/ftrace: Removal of stop machine (and other goodies)

Benjamin,

You once told me on IRC that powerpc has no problem with modifying code on one CPU that may be executing on another CPU. With the tests I made on my PPC64 (2 CPUs) box, it seems to be the case.

The first patch removes stop_machine from powerpc. The other patches add some error handling if ftrace detects an update didn't occur with 'patch_instruction'.

This is just an RFC, but if it's fine, feel free to pull them into your tree.

-- Steve

Steven Rostedt (3):
ftrace/ppc: Have PPC skip updating with stop_machine()
powerpc: Have patch_instruction detect faults ftrace/ppc: Use patch_instruction instead of probe_kernel_write()

----

 arch/powerpc/include/asm/code-patching.h |    4 +-
 arch/powerpc/kernel/ftrace.c             |   69 ++++++++++++++++++++++++------
 arch/powerpc/lib/code-patching.c         |   14 ++++--
 3 files changed, 68 insertions(+), 19 deletions(-)