ARM: optprobes: execute instruction during restoring if possible.
authorWang Nan <wangnan0@huawei.com>
Mon, 5 Jan 2015 11:34:47 +0000 (19:34 +0800)
committerJon Medhurst <tixy@linaro.org>
Wed, 14 Jan 2015 12:24:52 +0000 (12:24 +0000)
This patch removes software emulation or simulation for most of probed
instructions. If the instruction doesn't use PC relative addressing,
it will be translated into following instructions in the restore code
in code template:

 ldmia {r0 - r14}  // restore all instruction except PC
 <instruction>     // direct execute the probed instruction
 b next_insn       // branch to next instruction.

Signed-off-by: Wang Nan <wangnan0@huawei.com>
Reviewed-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
arch/arm/include/asm/kprobes.h
arch/arm/include/asm/probes.h
arch/arm/probes/kprobes/opt-arm.c

Simple merge
Simple merge
Simple merge