[PATCH 18/51] ARM: kprobes: Extend arch_specific_insn to add pointer to emulated instruction
Nicolas Pitre
nico at fluxnic.net
Mon Jul 11 15:19:31 EDT 2011
On Sat, 9 Jul 2011, Tixy wrote:
> --- a/arch/arm/kernel/kprobes.c
> +++ b/arch/arm/kernel/kprobes.c
> @@ -51,6 +51,7 @@ int __kprobes arch_prepare_kprobe(struct kprobe *p)
> kprobe_opcode_t insn;
> kprobe_opcode_t tmp_insn[MAX_INSN_SIZE];
> unsigned long addr = (unsigned long)p->addr;
> + bool thumb;
> kprobe_decode_insn_t *decode_insn;
> int is;
>
> @@ -58,6 +59,7 @@ int __kprobes arch_prepare_kprobe(struct kprobe *p)
> return -EINVAL;
>
> #ifdef CONFIG_THUMB2_KERNEL
> + thumb = 1;
When using a bool variable, you might want to assign it with "true" or
"false" rather than "1" and "0".
Nicolas
More information about the linux-arm-kernel
mailing list