Re: [PATCH 4/5] kmemtrace: SLUB hooks.

From: Christoph Lameter
Date: Mon Aug 11 2008 - 10:39:52 EST


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.



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/