diff options
author | Wang Nan <wangnan0@huawei.com> | 2015-01-05 14:29:18 +0300 |
---|---|---|
committer | Jon Medhurst <tixy@linaro.org> | 2015-01-09 12:36:51 +0300 |
commit | 83803d97dae1eaf6850a45ef8ee179cc66e147dc (patch) | |
tree | e2b1124f1c7896dcadb2af471a0570b019dad551 /arch/arm/probes/kprobes/actions-thumb.c | |
parent | 832607e79d7423c67ef8a3de8dfa3d25b5b0bf86 (diff) | |
download | linux-83803d97dae1eaf6850a45ef8ee179cc66e147dc.tar.xz |
ARM: kprobes: introduces checker
This patch introdces 'checker' to decoding phase, and calls checkers
when instruction decoding. This allows further decoding for specific
instructions. This patch introduces a stub call of checkers in kprobe
arch_prepare_kprobe() as an example and for further expansion.
Signed-off-by: Wang Nan <wangnan0@huawei.com>
Reviewed-by: Jon Medhurst <tixy@linaro.org>
Reviewed-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Diffstat (limited to 'arch/arm/probes/kprobes/actions-thumb.c')
-rw-r--r-- | arch/arm/probes/kprobes/actions-thumb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/probes/kprobes/actions-thumb.c b/arch/arm/probes/kprobes/actions-thumb.c index 6c4e60b62826..2796121fe90e 100644 --- a/arch/arm/probes/kprobes/actions-thumb.c +++ b/arch/arm/probes/kprobes/actions-thumb.c @@ -664,3 +664,6 @@ const union decode_action kprobes_t32_actions[NUM_PROBES_T32_ACTIONS] = { [PROBES_T32_MUL_ADD_LONG] = { .handler = t32_emulate_rdlo12rdhi8rn16rm0_noflags}, }; + +const struct decode_checker *kprobes_t32_checkers[] = {NULL}; +const struct decode_checker *kprobes_t16_checkers[] = {NULL}; |