Skip to content

kprobes: treewide: Clean up kprobe code

Masami Hiramatsu bpf linux-ia64 lkml 3 versions – In review

Get series with b4
b4 am 162748615977.59465.13262421617578791515.stgit@devnote2

Versions newest first · linked by author and title

  1. v3 Latest6 patches 1 replyIn review
  2. v26 patches 1 replySuperseded
  3. v16 patches 2 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6kprobes: treewide: Cleanup the error messages for kprobesarch/arm/probes/kprobes/core.c arch/arm64/kernel/probes/kprobes.c arch/csky/kernel/probes/kprobes.c +4 more+41 -400 replies
2/6kprobes: Fix coding style issuesinclude/linux/kprobes.h kernel/kprobes.c+145 -1310 replies
3/6kprobes: Use IS_ENABLED() instead of kprobes_built_in()include/linux/kprobes.h+1 -130 replies
4/6kprobes: Add assertions for required lockkernel/kprobes.c+12 -70 replies
5/6kprobes: treewide: Use 'kprobe_opcode_t *' for the code address in get_optimized_kprobe()arch/arm/probes/kprobes/opt-arm.c arch/powerpc/kernel/optprobes.c arch/x86/kernel/kprobes/opt.c +2 more+16 -150 replies
6/6kprobes: Use bool type for functions which returns boolean valueinclude/linux/kprobes.h kernel/kprobes.c kernel/trace/trace_kprobe.c+18 -180 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH -tip v3 0/6] kprobes: treewide: Clean up kprobe code

Hi,

Here is the 3rd series of patches to cleanup the kprobes code. Previous version is here.

https://lore.kernel.org/bpf/162598881438.1222130.11530594038964049135.stgit@devnote2/

This version is rebased on the latest tip/master and Punit's cleanup series;

https://lore.kernel.org/linux-csky/[email protected]/

Just fixed some conflicts, basically no change.

I pushed his series and this series as the 'kprobes/cleanup' branch on my tree. So you can pull the series (and Punit's series too) from the branch below.

git://git.kernel.org/pub/scm/linux/kernel/git/mhiramat/linux.git kprobes/cleanup

Thank you,

---

Masami Hiramatsu (6):
kprobes: treewide: Cleanup the error messages for kprobes
kprobes: Fix coding style issues
kprobes: Use IS_ENABLED() instead of kprobes_built_in()
kprobes: Add assertions for required lock
kprobes: treewide: Use 'kprobe_opcode_t *' for the code address in get_optimized_kprobe()
kprobes: Use bool type for functions which returns boolean value

 arch/arm/probes/kprobes/core.c     |    4 
 arch/arm/probes/kprobes/opt-arm.c  |    7 -
 arch/arm64/kernel/probes/kprobes.c |    5 -
 arch/csky/kernel/probes/kprobes.c  |   10 +
 arch/mips/kernel/kprobes.c         |   11 +
 arch/powerpc/kernel/optprobes.c    |    6 -
 arch/riscv/kernel/probes/kprobes.c |   11 +
 arch/s390/kernel/kprobes.c         |    4 
 arch/x86/kernel/kprobes/opt.c      |    6 -
 include/linux/kprobes.h            |   64 +++----
 kernel/kprobes.c                   |  313 +++++++++++++++++++-----------------
 kernel/trace/trace_kprobe.c        |    2 
 12 files changed, 226 insertions(+), 217 deletions(-)

--
Masami Hiramatsu (Linaro) <[email protected]>