diff options
author | Ananth N Mavinakayanahalli <ananth@in.ibm.com> | 2007-04-18 15:57:51 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-04-24 21:31:58 +1000 |
commit | e6349a958b3577da6e5c5eacda85c07f9a364cb5 (patch) | |
tree | 2d013d593c49ce13d9ce068dab70a876c3730de5 /include/asm-powerpc | |
parent | 6888199f7fe5ea496f48bb6de67b9b7f05b8071b (diff) | |
download | linux-e6349a958b3577da6e5c5eacda85c07f9a364cb5.tar.bz2 |
[POWERPC] kprobes: Eliminate sstep exception if instruction can be emulated
For cases when probes are placed on instructions that can be emulated,
don't take the single-step exception.
Signed-off-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r-- | include/asm-powerpc/kprobes.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-powerpc/kprobes.h b/include/asm-powerpc/kprobes.h index 3a5dd492588f..f850ca7020ed 100644 --- a/include/asm-powerpc/kprobes.h +++ b/include/asm-powerpc/kprobes.h @@ -87,6 +87,11 @@ extern void arch_remove_kprobe(struct kprobe *p); struct arch_specific_insn { /* copy of original instruction */ kprobe_opcode_t *insn; + /* + * Set in kprobes code, initially to 0. If the instruction can be + * eumulated, this is set to 1, if not, to -1. + */ + int boostable; }; struct prev_kprobe { |