lkml.org 
[lkml]   [2008]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/5] kmemtrace: SLUB hooks.

On Mon, 11 Aug 2008, Christoph Lameter wrote:

> Pekka Enberg wrote:
>
> > The function call is supposed to go away when we convert kmemtrace to
> > use Mathieu's markers but I suppose even then we have a problem with
> > inlining?
>
> The function calls are overwritten with NOPs? Or how does that work?

I believe in the latest version they are just a variable test. But when
Mathieu's immediate code makes it in (which it is in linux-tip), we will
be overwriting the conditionals with nops (Mathieu, correct me if I'm
wrong here).

But the calls themselves are done in the unlikely branch. This is
important, as Mathieu stated in previous thread. The reason is that all
the stack setup for the function call is also in the unlikely branch, and
the normal fast path does not take a hit for the function call setup.

-- Steve



\
 
 \ /
  Last update: 2008-08-11 16:39    [W:0.387 / U:0.704 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site