tracing/slab: Move kmalloc tracepoint out of inline code
authorSteven Rostedt <srostedt@redhat.com>
Wed, 24 Nov 2010 21:23:34 +0000 (16:23 -0500)
committerPekka Enberg <penberg@kernel.org>
Sun, 28 Nov 2010 19:16:28 +0000 (21:16 +0200)
The tracepoint for kmalloc is in the slab inlined code which causes
every instance of kmalloc to have the tracepoint.

This patch moves the tracepoint out of the inline code to the
slab C file, which removes a large number of inlined trace
points.

  objdump -dr vmlinux.slab| grep 'jmpq.*<trace_kmalloc' |wc -l
213
  objdump -dr vmlinux.slab.patched| grep 'jmpq.*<trace_kmalloc' |wc -l
1

This also has a nice impact on size.

   text    data     bss     dec     hex filename
7023060 2121564 2482432 11627056  b16a30 vmlinux.slab
6970579 2109772 2482432 11562783  b06f1f vmlinux.slab.patched

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Pekka Enberg <penberg@kernel.org>

No differences found