aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/probes/kprobes/actions-arm.c
diff options
context:
space:
mode:
authorWang Nan <wangnan0@huawei.com>2015-01-05 19:29:44 +0800
committerJon Medhurst <tixy@linaro.org>2015-01-13 16:10:48 +0000
commit28a1899db30a9325498aef114055506286dc8010 (patch)
tree23b8e1b05c9b198d94329e089f792a0094aa0a6b /arch/arm/probes/kprobes/actions-arm.c
parentARM: kprobes: Fix unreliable MRS instruction tests (diff)
downloadlinux-dev-28a1899db30a9325498aef114055506286dc8010.tar.xz
linux-dev-28a1899db30a9325498aef114055506286dc8010.zip
ARM: kprobes: check register usage for probed instruction.
This patch utilizes the previously introduced checker to check register usage for probed ARM instruction and saves it in a mask. A further patch will use such information to avoid simulation or emulation. Signed-off-by: Wang Nan <wangnan0@huawei.com> Reviewed-by: Jon Medhurst <tixy@linaro.org> Signed-off-by: Jon Medhurst <tixy@linaro.org>
Diffstat (limited to 'arch/arm/probes/kprobes/actions-arm.c')
-rw-r--r--arch/arm/probes/kprobes/actions-arm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/probes/kprobes/actions-arm.c b/arch/arm/probes/kprobes/actions-arm.c
index 06988ef7eeb7..b9056d649607 100644
--- a/arch/arm/probes/kprobes/actions-arm.c
+++ b/arch/arm/probes/kprobes/actions-arm.c
@@ -341,4 +341,4 @@ const union decode_action kprobes_arm_actions[NUM_PROBES_ARM_ACTIONS] = {
[PROBES_LDMSTM] = {.decoder = kprobe_decode_ldmstm}
};
-const struct decode_checker *kprobes_arm_checkers[] = {arm_stack_checker, NULL};
+const struct decode_checker *kprobes_arm_checkers[] = {arm_stack_checker, arm_regs_checker, NULL};