ARM: kprobes: Fix probing of conditionally executed instructions
authorJon Medhurst <tixy@yxit.co.uk>
Wed, 6 Apr 2011 10:17:09 +0000 (11:17 +0100)
committerNicolas Pitre <nicolas.pitre@linaro.org>
Fri, 29 Apr 2011 03:40:54 +0000 (23:40 -0400)
commit073090cb701148396b1130be81f8ac84a41f196d
tree033428a02241173a7645e8f84f8382d0fb8eaab8
parentcf3cc1aa9b6d0bf1750143af65829f4368d77492
ARM: kprobes: Fix probing of conditionally executed instructions

When a kprobe is placed onto conditionally executed ARM instructions,
many of the emulation routines used to single step them produce corrupt
register results. Rather than fix all of these cases we modify the
framework which calls them to test the relevant condition flags and, if
the test fails, skip calling the emulation code.

Signed-off-by: Jon Medhurst <tixy@yxit.co.uk>
Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
arch/arm/include/asm/kprobes.h
arch/arm/kernel/kprobes-decode.c
arch/arm/kernel/kprobes.c