summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/kprobes.c
diff options
context:
space:
mode:
authorDavid A. Long <dave.long@linaro.org>2014-03-05 21:40:12 -0500
committerDavid A. Long <dave.long@linaro.org>2014-03-18 16:39:39 -0400
commit602cd2609eee92d338a83e400774e97c60535ba2 (patch)
tree43a6513e831fbfccca7889d897af7b70ed27812a /arch/arm/kernel/kprobes.c
parent47e190fafde49ff8ca732fa137e39cb2b8baba8c (diff)
downloadblackbird-op-linux-602cd2609eee92d338a83e400774e97c60535ba2.tar.gz
blackbird-op-linux-602cd2609eee92d338a83e400774e97c60535ba2.zip
ARM: Add an emulate flag to the kprobes/uprobes instruction decode functions
Add an emulate flag into the instruction interpreter, primarily for uprobes support. Signed-off-by: David A. Long <dave.long@linaro.org> Acked-by: Jon Medhurst <tixy@linaro.org>
Diffstat (limited to 'arch/arm/kernel/kprobes.c')
-rw-r--r--arch/arm/kernel/kprobes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kernel/kprobes.c b/arch/arm/kernel/kprobes.c
index 468d4a980c6c..8795f9f819d5 100644
--- a/arch/arm/kernel/kprobes.c
+++ b/arch/arm/kernel/kprobes.c
@@ -89,7 +89,7 @@ int __kprobes arch_prepare_kprobe(struct kprobe *p)
p->opcode = insn;
p->ainsn.insn = tmp_insn;
- switch ((*decode_insn)(insn, &p->ainsn, actions)) {
+ switch ((*decode_insn)(insn, &p->ainsn, true, actions)) {
case INSN_REJECTED: /* not supported */
return -EINVAL;
OpenPOWER on IntegriCloud