diff options
author | David A. Long <dave.long@linaro.org> | 2014-03-07 20:23:04 +0400 |
---|---|---|
committer | David A. Long <dave.long@linaro.org> | 2014-03-19 00:39:40 +0400 |
commit | c7edc9e326d53ca5ef9bed82de0740c6b107d55b (patch) | |
tree | 262d901b5e4d61930d5bc8ff68b9ddd807e3f956 /arch/arm/include/asm/ptrace.h | |
parent | b4cd605ca92d9a8a2f71355cb45dd943ebcb0c97 (diff) | |
download | linux-c7edc9e326d53ca5ef9bed82de0740c6b107d55b.tar.xz |
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/include/asm/ptrace.h')
-rw-r--r-- | arch/arm/include/asm/ptrace.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/include/asm/ptrace.h b/arch/arm/include/asm/ptrace.h index 04c99f36ff7f..ee688b0a13c3 100644 --- a/arch/arm/include/asm/ptrace.h +++ b/arch/arm/include/asm/ptrace.h @@ -80,6 +80,12 @@ static inline long regs_return_value(struct pt_regs *regs) #define instruction_pointer(regs) (regs)->ARM_pc +static inline void instruction_pointer_set(struct pt_regs *regs, + unsigned long val) +{ + instruction_pointer(regs) = val; +} + #ifdef CONFIG_SMP extern unsigned long profile_pc(struct pt_regs *regs); #else |