diff options
| author | Masami Hiramatsu <mhiramat@redhat.com> | 2009-04-06 22:01:02 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-07 11:31:08 -0400 |
| commit | 8f9b15286a8ea49e997e845d02d357ed33ebd090 (patch) | |
| tree | e6d2905679a938a92982ff48994f1623c6a87031 /include/linux | |
| parent | de5bd88d5a5cce3cacea904d3503e5ebdb3852a2 (diff) | |
kprobes: support kretprobe and jprobe per-probe disabling
Add disable/enable_kretprobe() and disable/enable_jprobe().
Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Acked-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/kprobes.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/kprobes.h b/include/linux/kprobes.h index 1071cfddddc9..bcd9c07848be 100644 --- a/include/linux/kprobes.h +++ b/include/linux/kprobes.h | |||
| @@ -371,4 +371,21 @@ static inline int enable_kprobe(struct kprobe *kp) | |||
| 371 | return -ENOSYS; | 371 | return -ENOSYS; |
| 372 | } | 372 | } |
| 373 | #endif /* CONFIG_KPROBES */ | 373 | #endif /* CONFIG_KPROBES */ |
| 374 | static inline int disable_kretprobe(struct kretprobe *rp) | ||
| 375 | { | ||
| 376 | return disable_kprobe(&rp->kp); | ||
| 377 | } | ||
| 378 | static inline int enable_kretprobe(struct kretprobe *rp) | ||
| 379 | { | ||
| 380 | return enable_kprobe(&rp->kp); | ||
| 381 | } | ||
| 382 | static inline int disable_jprobe(struct jprobe *jp) | ||
| 383 | { | ||
| 384 | return disable_kprobe(&jp->kp); | ||
| 385 | } | ||
| 386 | static inline int enable_jprobe(struct jprobe *jp) | ||
| 387 | { | ||
| 388 | return enable_kprobe(&jp->kp); | ||
| 389 | } | ||
| 390 | |||
| 374 | #endif /* _LINUX_KPROBES_H */ | 391 | #endif /* _LINUX_KPROBES_H */ |
