Skip to content

(yet another) kprobes x86 code unification and boosters

Masami Hiramatsu lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6jprobe bugfix and cleanuparch/x86/kernel/kprobes_32.c arch/x86/kernel/kprobes_64.c include/asm-x86/kprobes_32.h +1 more+4 -80 replies
2/6kprobes bugfix and cleanup resume_executionarch/x86/kernel/kprobes_64.c+16 -210 replies
3/6kprobe-booster for x86-64arch/x86/kernel/kprobes_64.c include/asm-x86/kprobes_64.h+149 -30 replies
4/6return probe-booster for x86-64arch/x86/kernel/kprobes_64.c+65 -270 replies
5/6prepare kprobes code for x86 unificationarch/x86/kernel/kprobes_32.c arch/x86/kernel/kprobes_64.c arch/x86/mm/fault_32.c +3 more+447 -3470 replies
6/6kprobes code for x86 unificationarch/x86/kernel/Makefile_32 arch/x86/kernel/Makefile_64 arch/x86/kernel/kprobes.c +5 more+1145 -20120 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchAnanth N Mavinakayanahalli
1/6A-b
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [-mm][PATCH 0/6] (yet another) kprobes x86 code unification and boosters

Hello all,

I developed a series of patches which unifies kprobes code on x86
and introduces boosters on x86-64. These patches can be applied to 2.6.24-rc4-mm1.

The purpose of this patchset is unifying kprobes_[32|64].[c|h] to kprobes.[c|h] for simplifying code maintenance.

I know these patches are conflicting with Harvey's patch. We need to solve that.

kprobe-booster and kretprobe-booster were explained in:
http://marc.info/?l=linux-kernel&m=113862526017068&w=2

Currently, these patches do unification as following order.
1. Clean up and fix bugs in kprobes[1/6, 2/6].
2. Introduce kprobe-booster and kretprobe-booster for x86-64[3/6, 4/6]. (x86-32 kprobes already has same functionalities)
3. Prepare unification[5/6].
4. Unify kprobes code[6/6].

If you have any comment, please let me know.

Best Regards,

Signature · 7 lines
Masami Hiramatsu

Software Engineer
Hitachi Computer Products (America) Inc.
Software Solutions Division

e-mail: [email protected], [email protected]