diff options
author | David A. Long <dave.long@linaro.org> | 2014-03-06 18:06:43 -0500 |
---|---|---|
committer | David A. Long <dave.long@linaro.org> | 2014-03-18 16:39:36 -0400 |
commit | 3e6cd394bb10c2d65322e5f5d2ff0a9074d903a1 (patch) | |
tree | 0bbc61744e1a60d9a3a823a44ae5a7c279347eda /arch/arm/kernel/kprobes-common.c | |
parent | 87abef63ead5ac9e2c67f0c07c461eda6be16aeb (diff) | |
download | op-kernel-dev-3e6cd394bb10c2d65322e5f5d2ff0a9074d903a1.zip op-kernel-dev-3e6cd394bb10c2d65322e5f5d2ff0a9074d903a1.tar.gz |
ARM: use a function table for determining instruction interpreter action
Make the instruction interpreter call back to semantic action functions
through a function pointer array provided by the invoker. The interpreter
decodes the instructions into groups and uses the group number to index
into the supplied array. kprobes and uprobes code will each supply their
own array of functions.
Signed-off-by: David A. Long <dave.long@linaro.org>
Acked-by: Jon Medhurst <tixy@linaro.org>
Diffstat (limited to 'arch/arm/kernel/kprobes-common.c')
-rw-r--r-- | arch/arm/kernel/kprobes-common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/kernel/kprobes-common.c b/arch/arm/kernel/kprobes-common.c index f02c038..029b79c 100644 --- a/arch/arm/kernel/kprobes-common.c +++ b/arch/arm/kernel/kprobes-common.c @@ -112,7 +112,8 @@ emulate_ldm_r3_15(struct kprobe *p, struct pt_regs *regs) } enum kprobe_insn __kprobes -kprobe_decode_ldmstm(kprobe_opcode_t insn, struct arch_specific_insn *asi) +kprobe_decode_ldmstm(kprobe_opcode_t insn, struct arch_specific_insn *asi, + const struct decode_header *h) { kprobe_insn_handler_t *handler = 0; unsigned reglist = insn & 0xffff; |