diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/uprobes.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/uprobes.h b/include/linux/uprobes.h index edff2b97b864..88c3b7e8b384 100644 --- a/include/linux/uprobes.h +++ b/include/linux/uprobes.h | |||
| @@ -102,6 +102,7 @@ extern int __weak set_orig_insn(struct arch_uprobe *aup, struct mm_struct *mm, u | |||
| 102 | extern bool __weak is_swbp_insn(uprobe_opcode_t *insn); | 102 | extern bool __weak is_swbp_insn(uprobe_opcode_t *insn); |
| 103 | extern bool __weak is_trap_insn(uprobe_opcode_t *insn); | 103 | extern bool __weak is_trap_insn(uprobe_opcode_t *insn); |
| 104 | extern unsigned long __weak uprobe_get_swbp_addr(struct pt_regs *regs); | 104 | extern unsigned long __weak uprobe_get_swbp_addr(struct pt_regs *regs); |
| 105 | extern unsigned long uprobe_get_trap_addr(struct pt_regs *regs); | ||
| 105 | extern int uprobe_write_opcode(struct mm_struct *mm, unsigned long vaddr, uprobe_opcode_t); | 106 | extern int uprobe_write_opcode(struct mm_struct *mm, unsigned long vaddr, uprobe_opcode_t); |
| 106 | extern int uprobe_register(struct inode *inode, loff_t offset, struct uprobe_consumer *uc); | 107 | extern int uprobe_register(struct inode *inode, loff_t offset, struct uprobe_consumer *uc); |
| 107 | extern int uprobe_apply(struct inode *inode, loff_t offset, struct uprobe_consumer *uc, bool); | 108 | extern int uprobe_apply(struct inode *inode, loff_t offset, struct uprobe_consumer *uc, bool); |
| @@ -130,6 +131,9 @@ extern bool __weak arch_uprobe_ignore(struct arch_uprobe *aup, struct pt_regs *r | |||
| 130 | #else /* !CONFIG_UPROBES */ | 131 | #else /* !CONFIG_UPROBES */ |
| 131 | struct uprobes_state { | 132 | struct uprobes_state { |
| 132 | }; | 133 | }; |
| 134 | |||
| 135 | #define uprobe_get_trap_addr(regs) instruction_pointer(regs) | ||
| 136 | |||
| 133 | static inline int | 137 | static inline int |
| 134 | uprobe_register(struct inode *inode, loff_t offset, struct uprobe_consumer *uc) | 138 | uprobe_register(struct inode *inode, loff_t offset, struct uprobe_consumer *uc) |
| 135 | { | 139 | { |
