aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@redhat.com>2008-04-28 05:14:29 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-28 11:58:32 -0400
commit4a296e07c3a410c09b9155da4c2fa84a07964f38 (patch)
treed6070555a2ddf026a7c8534689b425c0e931dcfe /include/linux
parent9861668f747895608cea425f8457989d8dd2edf2 (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.h9
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
246int register_kretprobe(struct kretprobe *rp); 246int register_kretprobe(struct kretprobe *rp);
247void unregister_kretprobe(struct kretprobe *rp); 247void unregister_kretprobe(struct kretprobe *rp);
248int register_kretprobes(struct kretprobe **rps, int num);
249void unregister_kretprobes(struct kretprobe **rps, int num);
248 250
249void kprobe_flush_task(struct task_struct *tk); 251void kprobe_flush_task(struct task_struct *tk);
250void recycle_rp_inst(struct kretprobe_instance *ri, struct hlist_head *head); 252void 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}
292static inline int register_kretprobes(struct kretprobe **rps, int num)
293{
294 return -ENOSYS;
295}
290static inline void unregister_kretprobe(struct kretprobe *rp) 296static inline void unregister_kretprobe(struct kretprobe *rp)
291{ 297{
292} 298}
299static inline void unregister_kretprobes(struct kretprobe **rps, int num)
300{
301}
293static inline void kprobe_flush_task(struct task_struct *tk) 302static inline void kprobe_flush_task(struct task_struct *tk)
294{ 303{
295} 304}