fprobe: Skip exit_handler if entry_handler returns !0
[sfrench/cifs-2.6.git] / include / linux / fprobe.h
index 678f741a7b330675c6d26a9b8692746562039f5a..47fefc7f363bf35539367ac29add3d31d6ba6dac 100644 (file)
@@ -34,8 +34,8 @@ struct fprobe {
        size_t                  entry_data_size;
        int                     nr_maxactive;
 
-       void (*entry_handler)(struct fprobe *fp, unsigned long entry_ip,
-                             struct pt_regs *regs, void *entry_data);
+       int (*entry_handler)(struct fprobe *fp, unsigned long entry_ip,
+                            struct pt_regs *regs, void *entry_data);
        void (*exit_handler)(struct fprobe *fp, unsigned long entry_ip,
                             struct pt_regs *regs, void *entry_data);
 };