1 #ifndef _US_DEF_HANDLER_H
2 #define _US_DEF_HANDLER_H
4 #include <asm/percpu.h>
8 struct uretprobe_instance;
10 DECLARE_PER_CPU(struct us_ip *, gpCurIp);
11 DECLARE_PER_CPU(struct pt_regs *, gpUserRegs);
13 unsigned long ujprobe_event_pre_handler(struct us_ip *ip,
14 struct pt_regs *regs);
15 void ujprobe_event_handler(unsigned long arg0, unsigned long arg1,
16 unsigned long arg2, unsigned long arg3,
17 unsigned long arg4, unsigned long arg5);
18 int uretprobe_event_handler(struct uretprobe_instance *p,
19 struct pt_regs *regs, struct us_ip *ip);
21 #endif /* _US_DEF_HANDLER_H */