Merge tag 'mm-hotfixes-stable-2023-05-03-16-27' of git://git.kernel.org/pub/scm/linux...
[linux-block.git] / include / linux / fprobe.h
index 1c2bde0ead73697dec4cf3a21b94b5255dee4bba..47fefc7f363bf35539367ac29add3d31d6ba6dac 100644 (file)
@@ -13,6 +13,8 @@
  * @nmissed: The counter for missing events.
  * @flags: The status flag.
  * @rethook: The rethook data structure. (internal data)
+ * @entry_data_size: The private data storage size.
+ * @nr_maxactive: The max number of active functions.
  * @entry_handler: The callback function for function entry.
  * @exit_handler: The callback function for function exit.
  */
@@ -29,9 +31,13 @@ struct fprobe {
        unsigned long           nmissed;
        unsigned int            flags;
        struct rethook          *rethook;
+       size_t                  entry_data_size;
+       int                     nr_maxactive;
 
-       void (*entry_handler)(struct fprobe *fp, unsigned long entry_ip, struct pt_regs *regs);
-       void (*exit_handler)(struct fprobe *fp, unsigned long entry_ip, struct pt_regs *regs);
+       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);
 };
 
 /* This fprobe is soft-disabled. */