Re: [PATCH 2/9] tracing: Convert some kmem events to DEFINE_EVENT

From: Pekka Enberg
Date: Thu Nov 26 2009 - 02:24:49 EST


Li Zefan kirjoitti:
Use TRACE_EVENT_TEMPLATE to remove duplicate code:

text data bss dec hex filename
333987 69800 27228 431015 693a7 mm/built-in.o.old
330030 69800 27228 427058 68432 mm/built-in.o

8 events are converted:

kmem_alloc: kmalloc, kmem_cache_alloc
kmem_alloc_node: kmalloc_node, kmem_cache_alloc_node
kmem_free: kfree, kmem_cache_free
mm_page: mm_page_alloc_zone_locked, mm_page_pcpu_drain

Signed-off-by: Li Zefan <lizf@xxxxxxxxxxxxxx>

I have no idea what TRACE_EVENT_TEMPLATE is but the space savings are convincing enough! I assume this is going into -tip?

Acked-by: Pekka Enberg <penberg@xxxxxxxxxxxxxx>
--
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/