File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 7
7
#include <linux/ftrace.h>
8
8
#include <linux/rethook.h>
9
9
10
+ struct fprobe ;
11
+
12
+ typedef int (* fprobe_entry_cb )(struct fprobe * fp , unsigned long entry_ip ,
13
+ unsigned long ret_ip , struct pt_regs * regs ,
14
+ void * entry_data );
15
+
16
+ typedef void (* fprobe_exit_cb )(struct fprobe * fp , unsigned long entry_ip ,
17
+ unsigned long ret_ip , struct pt_regs * regs ,
18
+ void * entry_data );
19
+
10
20
/**
11
21
* struct fprobe - ftrace based probe.
12
22
* @ops: The ftrace_ops.
@@ -34,12 +44,8 @@ struct fprobe {
34
44
size_t entry_data_size ;
35
45
int nr_maxactive ;
36
46
37
- int (* entry_handler )(struct fprobe * fp , unsigned long entry_ip ,
38
- unsigned long ret_ip , struct pt_regs * regs ,
39
- void * entry_data );
40
- void (* exit_handler )(struct fprobe * fp , unsigned long entry_ip ,
41
- unsigned long ret_ip , struct pt_regs * regs ,
42
- void * entry_data );
47
+ fprobe_entry_cb entry_handler ;
48
+ fprobe_exit_cb exit_handler ;
43
49
};
44
50
45
51
/* This fprobe is soft-disabled. */
You can’t perform that action at this time.
0 commit comments