]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5224f56970e42e02a988e347ae609fc983da7ed7
treee2b1124f1c7896dcadb2af471a0570b019dad551
parent070ea9fbb040e72d868dd3462d8e4a8680dab809
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