ARM: kprobes: Use conditional breakpoints for ARM probes
authorJon Medhurst <tixy@yxit.co.uk>
Thu, 16 Jun 2011 16:22:37 +0000 (17:22 +0100)
committerTixy <tixy@medhuaa1.miniserver.com>
Wed, 13 Jul 2011 17:32:42 +0000 (17:32 +0000)
commit3b26945597d5eff5d428a268c9d109338fce801e
tree846f3125796ecae7645a6ed2b96744f2a99eaba7
parent3cca6c243568d355c1ccecaaa71bf490f014d729
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>
arch/arm/kernel/kprobes.c
arch/arm/kernel/kprobes.h