diff options
| author | Masami Hiramatsu <mhiramat@redhat.com> | 2008-04-28 05:14:29 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 11:58:32 -0400 |
| commit | 4a296e07c3a410c09b9155da4c2fa84a07964f38 (patch) | |
| tree | d6070555a2ddf026a7c8534689b425c0e931dcfe /include/linux | |
| parent | 9861668f747895608cea425f8457989d8dd2edf2 (diff) | |
kprobes: add (un)register_kretprobes for batch registration
Introduce unregister_/register_kretprobes() for kretprobe batch registration.
Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Jim Keniston <jkenisto@us.ibm.com>
Cc: Prasanna S Panchamukhi <prasanna@in.ibm.com>
Cc: Shaohua Li <shaohua.li@intel.com>
Cc: David Miller <davem@davemloft.net>
Cc: "Frank Ch. Eigler" <fche@redhat.com>
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 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/kprobes.h b/include/linux/kprobes.h index 2ba7df645a84..94c855a236ae 100644 --- a/include/linux/kprobes.h +++ b/include/linux/kprobes.h | |||
| @@ -245,6 +245,8 @@ unsigned long arch_deref_entry_point(void *); | |||
| 245 | 245 | ||
| 246 | int register_kretprobe(struct kretprobe *rp); | 246 | int register_kretprobe(struct kretprobe *rp); |
| 247 | void unregister_kretprobe(struct kretprobe *rp); | 247 | void unregister_kretprobe(struct kretprobe *rp); |
| 248 | int register_kretprobes(struct kretprobe **rps, int num); | ||
| 249 | void unregister_kretprobes(struct kretprobe **rps, int num); | ||
| 248 | 250 | ||
| 249 | void kprobe_flush_task(struct task_struct *tk); | 251 | void kprobe_flush_task(struct task_struct *tk); |
| 250 | void recycle_rp_inst(struct kretprobe_instance *ri, struct hlist_head *head); | 252 | void recycle_rp_inst(struct kretprobe_instance *ri, struct hlist_head *head); |
| @@ -287,9 +289,16 @@ static inline int register_kretprobe(struct kretprobe *rp) | |||
| 287 | { | 289 | { |
| 288 | return -ENOSYS; | 290 | return -ENOSYS; |
| 289 | } | 291 | } |
| 292 | static inline int register_kretprobes(struct kretprobe **rps, int num) | ||
| 293 | { | ||
| 294 | return -ENOSYS; | ||
| 295 | } | ||
| 290 | static inline void unregister_kretprobe(struct kretprobe *rp) | 296 | static inline void unregister_kretprobe(struct kretprobe *rp) |
| 291 | { | 297 | { |
| 292 | } | 298 | } |
| 299 | static inline void unregister_kretprobes(struct kretprobe **rps, int num) | ||
| 300 | { | ||
| 301 | } | ||
| 293 | static inline void kprobe_flush_task(struct task_struct *tk) | 302 | static inline void kprobe_flush_task(struct task_struct *tk) |
| 294 | { | 303 | { |
| 295 | } | 304 | } |
