aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kprobes.h
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
commit26b31c1908e02a316edfba08080373342e662c14 (patch)
treed9140d82ccc9ed3faa2062549d0e7471da9c9b29 /include/linux/kprobes.h
parent4a296e07c3a410c09b9155da4c2fa84a07964f38 (diff)
kprobes: add (un)register_jprobes for batch registration
Introduce unregister_/register_jprobes() for jprobe 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/kprobes.h')
-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 94c855a236ae..1036631ff4fa 100644
--- a/include/linux/kprobes.h
+++ b/include/linux/kprobes.h
@@ -240,6 +240,8 @@ int setjmp_pre_handler(struct kprobe *, struct pt_regs *);
240int longjmp_break_handler(struct kprobe *, struct pt_regs *); 240int longjmp_break_handler(struct kprobe *, struct pt_regs *);
241int register_jprobe(struct jprobe *p); 241int register_jprobe(struct jprobe *p);
242void unregister_jprobe(struct jprobe *p); 242void unregister_jprobe(struct jprobe *p);
243int register_jprobes(struct jprobe **jps, int num);
244void unregister_jprobes(struct jprobe **jps, int num);
243void jprobe_return(void); 245void jprobe_return(void);
244unsigned long arch_deref_entry_point(void *); 246unsigned long arch_deref_entry_point(void *);
245 247
@@ -279,9 +281,16 @@ static inline int register_jprobe(struct jprobe *p)
279{ 281{
280 return -ENOSYS; 282 return -ENOSYS;
281} 283}
284static inline int register_jprobes(struct jprobe **jps, int num)
285{
286 return -ENOSYS;
287}
282static inline void unregister_jprobe(struct jprobe *p) 288static inline void unregister_jprobe(struct jprobe *p)
283{ 289{
284} 290}
291static inline void unregister_jprobes(struct jprobe **jps, int num)
292{
293}
285static inline void jprobe_return(void) 294static inline void jprobe_return(void)
286{ 295{
287} 296}