[PATCH v3 4/4] KGDB: make kgdb_breakpoint() as noinline
Vijay Kilari
vijay.kilari at gmail.com
Tue Oct 29 01:12:37 EDT 2013
Hi Jason,
Can you please consider this patch?.
On Fri, Oct 25, 2013 at 9:10 PM, Will Deacon <will.deacon at arm.com> wrote:
> On Fri, Oct 18, 2013 at 12:07:49PM +0100, vijay.kilari at gmail.com wrote:
>> From: Vijaya Kumar K <Vijaya.Kumar at caviumnetworks.com>
>>
>> The function kgdb_breakpoint() sets up break point at
>> compile time by calling arch_kgdb_breakpoint();
>> Though this call is surrounded by wmb() barrier,
>> the compile can still re-order the break point,
>> because this scheduling barrier is not a code motion
>> barrier in gcc.
>>
>> Making kgdb_breakpoint() as noinline solves this problem
>> of code reording around break point instruction and also
>> avoids problem of being called as inline function from
>> other places
>>
>> More details about discussion on this can be found here
>> http://comments.gmane.org/gmane.linux.ports.arm.kernel/269732
>>
>> Signed-off-by: Vijaya Kumar K <Vijaya.Kumar at caviumnetworks.com>
>
> Acked-by: Will Deacon <will.deacon at arm.com>
>
> I guess this goes via Jason's tree?
>
> Will
More information about the linux-arm-kernel
mailing list