diff options
author | Jon Medhurst <tixy@yxit.co.uk> | 2011-06-16 12:22:37 -0400 |
---|---|---|
committer | Tixy <tixy@medhuaa1.miniserver.com> | 2011-07-13 13:32:42 -0400 |
commit | 3b26945597d5eff5d428a268c9d109338fce801e (patch) | |
tree | 846f3125796ecae7645a6ed2b96744f2a99eaba7 /arch/arm/kernel/kprobes.h | |
parent | 3cca6c243568d355c1ccecaaa71bf490f014d729 (diff) |
ARM: kprobes: Use conditional breakpoints for ARM probes
Now we no longer trigger probes on conditional instructions when the
condition is false, we can make use of conditional instructions as
breakpoints in ARM code to avoid taking unnecessary exceptions.
Note, we can't rely on not getting an exception when the condition check
fails, as that is Implementation Defined on newer ARM architectures. We
therefore still need to perform manual condition checks as well.
Signed-off-by: Jon Medhurst <tixy@yxit.co.uk>
Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Diffstat (limited to 'arch/arm/kernel/kprobes.h')
-rw-r--r-- | arch/arm/kernel/kprobes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kernel/kprobes.h b/arch/arm/kernel/kprobes.h index 5e2485c4cacd..e3803c65c4be 100644 --- a/arch/arm/kernel/kprobes.h +++ b/arch/arm/kernel/kprobes.h | |||
@@ -21,7 +21,7 @@ | |||
21 | * These undefined instructions must be unique and | 21 | * These undefined instructions must be unique and |
22 | * reserved solely for kprobes' use. | 22 | * reserved solely for kprobes' use. |
23 | */ | 23 | */ |
24 | #define KPROBE_ARM_BREAKPOINT_INSTRUCTION 0xe7f001f8 | 24 | #define KPROBE_ARM_BREAKPOINT_INSTRUCTION 0x07f001f8 |
25 | #define KPROBE_THUMB16_BREAKPOINT_INSTRUCTION 0xde18 | 25 | #define KPROBE_THUMB16_BREAKPOINT_INSTRUCTION 0xde18 |
26 | #define KPROBE_THUMB32_BREAKPOINT_INSTRUCTION 0xf7f0a018 | 26 | #define KPROBE_THUMB32_BREAKPOINT_INSTRUCTION 0xf7f0a018 |
27 | 27 | ||