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.
* Christoph Lameter (cl@linux-foundation.org) wrote:
> Steven Rostedt wrote:
>
> > The kmemtrace_mark_alloc_node itself is an inline function, which calls
> > another inline function "trace_mark" which is designed to test a
> > read_mostly variable, and will do an "unlikely" jmp if the variable is
> > set (which it is when tracing is enabled), to the actual function call.
> >
> > There should be no extra function calls when this is configured on but
> > tracing disabled. We try very hard to keep the speed of the tracer as
> > close to a non tracing kernel as possible when tracing is disabled.
>
> Makes sense. But then we have even more code bloat because of the tests that
> are inserted in all call sites of kmalloc.
>

The long-term goal is to turn the tests into NOPs, but only once we get
gcc support.

Mathieu

--
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68


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