diff options
author | David A. Long <dave.long@linaro.org> | 2014-02-03 14:25:49 -0500 |
---|---|---|
committer | David A. Long <dave.long@linaro.org> | 2014-03-18 16:39:34 -0400 |
commit | 6fe50a28ba6e5fafb4a549dea666dd15297dd8bd (patch) | |
tree | 998f67b5bb336339c5308e000b0f8f5c9e97a44e /include | |
parent | 21254ebc9e509967317ad8c6922797e21137ad53 (diff) | |
download | linux-stable-6fe50a28ba6e5fafb4a549dea666dd15297dd8bd.tar.gz linux-stable-6fe50a28ba6e5fafb4a549dea666dd15297dd8bd.tar.bz2 linux-stable-6fe50a28ba6e5fafb4a549dea666dd15297dd8bd.zip |
uprobes: allow ignoring of probe hits
Allow arches to decided to ignore a probe hit. ARM will use this to
only call handlers if the conditions to execute a conditionally executed
instruction are satisfied.
Signed-off-by: David A. Long <dave.long@linaro.org>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/uprobes.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/uprobes.h b/include/linux/uprobes.h index e32251e00e62..edff2b97b864 100644 --- a/include/linux/uprobes.h +++ b/include/linux/uprobes.h @@ -126,6 +126,7 @@ extern bool arch_uprobe_xol_was_trapped(struct task_struct *tsk); extern int arch_uprobe_exception_notify(struct notifier_block *self, unsigned long val, void *data); extern void arch_uprobe_abort_xol(struct arch_uprobe *aup, struct pt_regs *regs); extern unsigned long arch_uretprobe_hijack_return_addr(unsigned long trampoline_vaddr, struct pt_regs *regs); +extern bool __weak arch_uprobe_ignore(struct arch_uprobe *aup, struct pt_regs *regs); #else /* !CONFIG_UPROBES */ struct uprobes_state { }; |