lkml.org 
[lkml]   [2012]   [Oct]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v2] Makefile: Add option to disable gcc automatic inlining
From
On Sun, Oct 7, 2012 at 7:21 PM, Andi Kleen <andi@firstfloor.org> wrote:
> Ezequiel Garcia <elezegarcia@gmail.com> writes:
>
>> The new option is CONFIG_CC_DISABLE_AUTO_INLINE and it's
>> located at:
>> * Kernel hacking
>> * Disable gcc automatic inlining
>
> You don't state anywhere why you want that?
>

This is important -if not necessary- to trace memory allocations with
ftrace kmem
events. Allocations are traced through _RET_IP_ macro, which in turn
only works accurately if gcc don't inline.

Without this patch you will trace callsites like kstrdup, instead of the real
caller.

Perhaps I should explain this better in the commit message?

Thanks for reviewing,

Ezequiel


\
 
 \ /
  Last update: 2012-10-08 01:21    [W:0.059 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site