ä 2009å12æ11æ 14:01, Pekka Enberg åé:Pekka Enberg wrote:Li Zefan wrote:Maybe use CONFIG_TRACING instead of CONFIG_KMEMTRACE here like in theAlways define kmem_trace_alloc_{,node}_notrace(), otherwiseDid you check how much this will make kernel text bigger because of
perf-kmem will show wrong stats ifndef CONFIG_KMEMTRACE,
because a kmalloc() memory allocation may be traced by
both trace_kmalloc() and trace_kmem_cache_alloc().
Signed-off-by: Li Zefan <lizf@xxxxxxxxxxxxxx>
the inlining happening in kmem_cache_alloc_notrace()?
other patch?
Wouldn't removing CONFIG_KMEMTRACE make the code cleaner?
Anyway, if CONFIG_TRACING is not enabled, all the trace_xxx()
will be turned into no-op.