diff options
author | Wang Nan <wangnan0@huawei.com> | 2015-01-05 19:29:18 +0800 |
---|---|---|
committer | Jon Medhurst <tixy@linaro.org> | 2015-01-09 09:36:51 +0000 |
commit | 83803d97dae1eaf6850a45ef8ee179cc66e147dc (patch) | |
tree | e2b1124f1c7896dcadb2af471a0570b019dad551 /arch/arm/probes/uprobes | |
parent | 832607e79d7423c67ef8a3de8dfa3d25b5b0bf86 (diff) | |
download | linux-stable-83803d97dae1eaf6850a45ef8ee179cc66e147dc.tar.gz linux-stable-83803d97dae1eaf6850a45ef8ee179cc66e147dc.tar.bz2 linux-stable-83803d97dae1eaf6850a45ef8ee179cc66e147dc.zip |
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/uprobes')
-rw-r--r-- | arch/arm/probes/uprobes/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/probes/uprobes/core.c b/arch/arm/probes/uprobes/core.c index b2954f6d3abe..d1329f1ba4e4 100644 --- a/arch/arm/probes/uprobes/core.c +++ b/arch/arm/probes/uprobes/core.c @@ -88,7 +88,7 @@ int arch_uprobe_analyze_insn(struct arch_uprobe *auprobe, struct mm_struct *mm, auprobe->ixol[1] = __opcode_to_mem_arm(UPROBE_SS_ARM_INSN); ret = arm_probes_decode_insn(insn, &auprobe->asi, false, - uprobes_probes_actions); + uprobes_probes_actions, NULL); switch (ret) { case INSN_REJECTED: return -EINVAL; |