diff options
author | Wang Nan <wangnan0@huawei.com> | 2015-01-05 14:29:21 +0300 |
---|---|---|
committer | Jon Medhurst <tixy@linaro.org> | 2015-01-13 19:10:06 +0300 |
commit | 6624cf651f1a14363d0385f36dc255d304ac7ebb (patch) | |
tree | 38cb38d33f5faa96e36814caa3fa63bfe322c193 /arch/arm/probes/kprobes/actions-arm.c | |
parent | 83803d97dae1eaf6850a45ef8ee179cc66e147dc (diff) | |
download | linux-6624cf651f1a14363d0385f36dc255d304ac7ebb.tar.xz |
ARM: kprobes: collects stack consumption for store instructions
This patch uses the previously introduced checker functionality on
store instructions to record their stack consumption information to
arch_probes_insn.
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/probes/kprobes/actions-arm.c b/arch/arm/probes/kprobes/actions-arm.c index fbd93a9ada75..06988ef7eeb7 100644 --- a/arch/arm/probes/kprobes/actions-arm.c +++ b/arch/arm/probes/kprobes/actions-arm.c @@ -64,6 +64,7 @@ #include "../decode-arm.h" #include "core.h" +#include "checkers.h" #if __LINUX_ARM_ARCH__ >= 6 #define BLX(reg) "blx "reg" \n\t" @@ -340,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[] = {NULL}; +const struct decode_checker *kprobes_arm_checkers[] = {arm_stack_checker, NULL}; |