diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/uprobes.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/uprobes.h b/include/linux/uprobes.h index 83742b91ff73..c2df6934fdc6 100644 --- a/include/linux/uprobes.h +++ b/include/linux/uprobes.h | |||
| @@ -35,8 +35,17 @@ struct inode; | |||
| 35 | # include <asm/uprobes.h> | 35 | # include <asm/uprobes.h> |
| 36 | #endif | 36 | #endif |
| 37 | 37 | ||
| 38 | enum uprobe_filter_ctx { | ||
| 39 | UPROBE_FILTER_REGISTER, | ||
| 40 | UPROBE_FILTER_UNREGISTER, | ||
| 41 | UPROBE_FILTER_MMAP, | ||
| 42 | }; | ||
| 43 | |||
| 38 | struct uprobe_consumer { | 44 | struct uprobe_consumer { |
| 39 | int (*handler)(struct uprobe_consumer *self, struct pt_regs *regs); | 45 | int (*handler)(struct uprobe_consumer *self, struct pt_regs *regs); |
| 46 | bool (*filter)(struct uprobe_consumer *self, | ||
| 47 | enum uprobe_filter_ctx ctx, | ||
| 48 | struct mm_struct *mm); | ||
| 40 | 49 | ||
| 41 | struct uprobe_consumer *next; | 50 | struct uprobe_consumer *next; |
| 42 | }; | 51 | }; |
