kprobes: add (un)register_jprobes for batch registration
PATCH 4/5 kprobes: add (un)register_jprobes for batch registration
Introduce unregister_/register_jprobes() for jprobe batch registration.
Signed-off-by Masami Hiramatsu <[email protected]>
---
include/linux/kprobes.h | 9 ++++++ kernel/kprobes.c | 65 +++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 65 insertions(+), 9 deletions(-)
include/linux/kprobes.h +9 -0
@@ -240,6 +240,8 @@ int setjmp_pre_handler(struct kprobe *,int longjmp_break_handler (struct kprobe *,struct pt_regs *);int register_jprobe (struct jprobe *p);void unregister_jprobe (struct jprobe *p); +int register_jprobes (struct jprobe **jps,int num); +void unregister_jprobes (struct jprobe **jps,int num);void jprobe_return (void );unsigned long arch_deref_entry_point (void *);
@@ -279,9 +281,16 @@ static inline int register_jprobe(struct {return -ENOSYS ; } +static inline int register_jprobes (struct jprobe **jps,int num) +{ +return -ENOSYS ; +}static inline void unregister_jprobe (struct jprobe *p) { } +static inline void unregister_jprobes (struct jprobe **jps,int num) +{ +}static inline void jprobe_return (void ) { }
kernel/kprobes.c +56 -9
86 lines not on this page · raw message
Signature · 7 lines
Masami Hiramatsu Software Engineer Hitachi Computer Products (America) Inc. Software Solutions Division e-mail: [email protected]