[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1407332208.3006.13.camel@linaro1.home>
Date: Wed, 06 Aug 2014 14:36:48 +0100
From: "Jon Medhurst (Tixy)" <tixy@...aro.org>
To: Masami Hiramatsu <masami.hiramatsu.pt@...achi.com>
Cc: Wang Nan <wangnan0@...wei.com>,
Russell King <linux@....linux.org.uk>,
Ananth N Mavinakayanahalli <ananth@...ibm.com>,
Will Deacon <will.deacon@....com>,
linux-kernel@...r.kernel.org,
Anil S Keshavamurthy <anil.s.keshavamurthy@...el.com>,
Li Zefan <lizefan@...wei.com>, davem@...emloft.net,
linux-arm-kernel@...ts.infradead.org, peifeiyue@...wei.com
Subject: Re: [RFC PATCH] kprobes: arm: enable OPTPROBES for arm 32
On Wed, 2014-08-06 at 13:44 +0900, Masami Hiramatsu wrote:
> (2014/08/05 16:28), Wang Nan wrote
[...]
> > +asm (
> > + ".global optprobe_template_entry\n"
> > + "optprobe_template_entry:\n"
> > +#ifndef CONFIG_THUMB
> > + " sub sp, sp, #80\n"
> > + " stmia sp, {r0 - r14} \n"
> > + " add r3, sp, #80\n"
> > + " str r3, [sp, #52]\n"
> > + " mrs r4, cpsr\n"
> > + " str r4, [sp, #64]\n"
> > + " mov r1, sp\n"
> > + " ldr r0, 1f\n"
> > + " ldr r2, 2f\n"
> > + " blx r2\n"
> > + " ldr r1, [sp, #64]\n"
> > + " msr cpsr_fs, r1\n"
> > + " ldmia sp, {r0 - r15}\n"
> > + ".global optprobe_template_val\n"
> > + "optprobe_template_val:\n"
> > + "1: nop\n"
> > + ".global optprobe_template_call\n"
> > + "optprobe_template_call:\n"
> > + "2: nop\n"
> > +#else /* CONFIG_THUMB */
> > +# error optprobe for thumb is not supported.
>
> Can we set CONFIG_THUMB=y without CONFIG_THUMB2_KERNEL ?
Yes, CONFIG_THUMB is for supporting userside Thumb code,
CONFIG_THUMB2_KERNEL is for building the kernel for Thumb and the
options are orthogonal. So I don't think kprobes code should be testing
CONFIG_THUMB as it doesn't deal with userside.
--
Tixy
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists