Skip to content

powerpc: Enhance error handling with patch_instruction()

Naveen N. Rao linuxppc-dev 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v13 patches 20 repliesSuperseded

Changes in v2 from the cover letter

- Change macro to use 'goto' instead of 'return'
- Rename macro to indicate use of 'goto'
- Convert more patch_instruction() uses in optprobes to use the new macro.
- Drop 1st patch, which added error checking in do_patch_instruction() since that is being covered in a separate patchset.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2powerpc/ftrace: Simplify error checking when patching instructionsarch/powerpc/kernel/trace/ftrace.c+60 -360 replies
2/2powerpc/kprobes: Check return value of patch_instruction()arch/powerpc/kernel/kprobes.c arch/powerpc/kernel/optprobes.c+89 -330 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/2] powerpc: Enhance error handling with patch_instruction()

Changes in v2:
- Change macro to use 'goto' instead of 'return'
- Rename macro to indicate use of 'goto'
- Convert more patch_instruction() uses in optprobes to use the new macro.
- Drop 1st patch, which added error checking in do_patch_instruction() since that is being covered in a separate patchset.

v1:
http://lkml.kernel.org/r/[email protected]

- Naveen

Naveen N. Rao (2):
powerpc/ftrace: Simplify error checking when patching instructions powerpc/kprobes: Check return value of patch_instruction()

 arch/powerpc/kernel/kprobes.c      |  13 +++-
 arch/powerpc/kernel/optprobes.c    | 109 +++++++++++++++++++++--------
 arch/powerpc/kernel/trace/ftrace.c |  96 +++++++++++++++----------
 3 files changed, 149 insertions(+), 69 deletions(-)

base-commit: 8299da600ad05b8aa0f15ec0f5f03bd40e37d6f0

Signature · 1 line
2.25.1