diff options
author | Wang Nan | 2015-01-05 12:29:44 +0100 |
---|---|---|
committer | Jon Medhurst | 2015-01-13 17:10:48 +0100 |
commit | 28a1899db30a9325498aef114055506286dc8010 (patch) | |
tree | 23b8e1b05c9b198d94329e089f792a0094aa0a6b /arch/arm/include/asm/probes.h | |
parent | ARM: kprobes: Fix unreliable MRS instruction tests (diff) | |
download | kernel-qcow2-linux-28a1899db30a9325498aef114055506286dc8010.tar.gz kernel-qcow2-linux-28a1899db30a9325498aef114055506286dc8010.tar.xz kernel-qcow2-linux-28a1899db30a9325498aef114055506286dc8010.zip |
ARM: kprobes: check register usage for probed instruction.
This patch utilizes the previously introduced checker to check
register usage for probed ARM instruction and saves it in a mask.
A further patch will use such information to avoid simulation or
emulation.
Signed-off-by: Wang Nan <wangnan0@huawei.com>
Reviewed-by: Jon Medhurst <tixy@linaro.org>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Diffstat (limited to 'arch/arm/include/asm/probes.h')
-rw-r--r-- | arch/arm/include/asm/probes.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/include/asm/probes.h b/arch/arm/include/asm/probes.h index cd9e81588d83..b668e60f759c 100644 --- a/arch/arm/include/asm/probes.h +++ b/arch/arm/include/asm/probes.h @@ -41,6 +41,7 @@ struct arch_probes_insn { probes_insn_singlestep_t *insn_singlestep; probes_insn_fn_t *insn_fn; int stack_space; + unsigned long register_usage_flags; }; #endif /* __ASSEMBLY__ */ |