Skip to content

RFC kprobes: Per-probe disabling support

Masami Hiramatsu lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6kprobes: cleanup aggr_kprobe related codekernel/kprobes.c+30 -300 replies
2/6kprobes: move EXPORT_SYMBOL_GPL just after function definitionskernel/kprobes.c+18 -120 replies
3/6kprobes: cleanup comment style in kprobes.hinclude/linux/kprobes.h+8 -40 replies
4/6kprobes: rename kprobe_enabled to kprobes_all_disarmedkernel/kprobes.c+17 -170 replies
5/6kprobes: Support per-kprobe disablingDocumentation/kprobes.txt include/linux/kprobes.h kernel/kprobes.c+190 -330 replies
6/6kprobes: Support kretprobe and jprobe per-probe disablingDocumentation/kprobes.txt include/linux/kprobes.h+27 -60 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAnanth N Mavinakayanahalli
SeriesA-b
1/6
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 [RFC][PATCH -mm 0/6] kprobes: Per-probe disabling support

Hi,

Currently, kprobes can disable all probes at once, but can't disable it individually (not unregister, just disable an kprobe, because unregistering needs to wait for scheduler synchronization).
These patches introduce APIs for on-the-fly per-probe disabling and re-enabling by dis-arming/re-arming its breakpoint instruction.

These patches can be applied on the latest -mm tree including my previous bugfix patch (http://lkml.org/lkml/2009/1/5/472).

You can download a test of this feature from here:
http://sources.redhat.com/bugzilla/attachment.cgi?id=3082&action=view

Thank you,

 Documentation/kprobes.txt |   38 +++++-
 include/linux/kprobes.h   |   51 +++++++-
 kernel/kprobes.c          |  281 ++++++++++++++++++++++++++++++++--------------
 3 files changed, 279 insertions(+), 91 deletions(-)
Signature · 7 lines
Masami Hiramatsu

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

e-mail: [email protected]