diff options
author | David A. Long <dave.long@linaro.org> | 2014-03-07 11:23:04 -0500 |
---|---|---|
committer | David A. Long <dave.long@linaro.org> | 2014-03-18 16:39:40 -0400 |
commit | c7edc9e326d53ca5ef9bed82de0740c6b107d55b (patch) | |
tree | 262d901b5e4d61930d5bc8ff68b9ddd807e3f956 /arch/arm/kernel/signal.c | |
parent | b4cd605ca92d9a8a2f71355cb45dd943ebcb0c97 (diff) | |
download | linux-stable-c7edc9e326d53ca5ef9bed82de0740c6b107d55b.tar.gz linux-stable-c7edc9e326d53ca5ef9bed82de0740c6b107d55b.tar.bz2 linux-stable-c7edc9e326d53ca5ef9bed82de0740c6b107d55b.zip |
ARM: add uprobes support
Using Rabin Vincent's ARM uprobes patches as a base, enable uprobes
support on ARM.
Caveats:
- Thumb is not supported
Signed-off-by: Rabin Vincent <rabin@rab.in>
Signed-off-by: David A. Long <dave.long@linaro.org>
Diffstat (limited to 'arch/arm/kernel/signal.c')
-rw-r--r-- | arch/arm/kernel/signal.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/kernel/signal.c b/arch/arm/kernel/signal.c index 04d63880037f..bd1983437205 100644 --- a/arch/arm/kernel/signal.c +++ b/arch/arm/kernel/signal.c @@ -13,6 +13,7 @@ #include <linux/personality.h> #include <linux/uaccess.h> #include <linux/tracehook.h> +#include <linux/uprobes.h> #include <asm/elf.h> #include <asm/cacheflush.h> @@ -590,6 +591,9 @@ do_work_pending(struct pt_regs *regs, unsigned int thread_flags, int syscall) return restart; } syscall = 0; + } else if (thread_flags & _TIF_UPROBE) { + clear_thread_flag(TIF_UPROBE); + uprobe_notify_resume(regs); } else { clear_thread_flag(TIF_NOTIFY_RESUME); tracehook_notify_resume(regs); |