ARM: kprobes: introduces checker
authorWang Nan <wangnan0@huawei.com>
Mon, 5 Jan 2015 11:29:18 +0000 (19:29 +0800)
committerJon Medhurst <tixy@linaro.org>
Fri, 9 Jan 2015 09:36:51 +0000 (09:36 +0000)
commit83803d97dae1eaf6850a45ef8ee179cc66e147dc
treee2b1124f1c7896dcadb2af471a0570b019dad551
parent832607e79d7423c67ef8a3de8dfa3d25b5b0bf86
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>
arch/arm/probes/decode-arm.c
arch/arm/probes/decode-arm.h
arch/arm/probes/decode-thumb.c
arch/arm/probes/decode-thumb.h
arch/arm/probes/decode.c
arch/arm/probes/decode.h
arch/arm/probes/kprobes/actions-arm.c
arch/arm/probes/kprobes/actions-thumb.c
arch/arm/probes/kprobes/core.c
arch/arm/probes/kprobes/core.h
arch/arm/probes/uprobes/core.c