Re: [PATCH] tracing: Define kmem_trace_alloc_notrace unconditionally

From: Li Zefan
Date: Thu Dec 10 2009 - 22:38:51 EST


Li Zefan wrote:
> Always define kmem_trace_alloc_{,node}_notrace(), otherwise
> 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>
> ---
> include/linux/slab_def.h | 24 ++----------------------
> include/linux/slub_def.h | 27 +++------------------------
> mm/slab.c | 4 ----
> mm/slub.c | 4 ----
> 4 files changed, 5 insertions(+), 54 deletions(-)
>

Sorry, please ignore this patch. I'll send a v2 soon..

--
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/