]> git.baikalelectronics.ru Git - kernel.git/commit
tracing, slab: Fix no callsite ifndef CONFIG_KMEMTRACE
authorLi Zefan <lizf@cn.fujitsu.com>
Fri, 11 Dec 2009 07:45:50 +0000 (15:45 +0800)
committerIngo Molnar <mingo@elte.hu>
Fri, 11 Dec 2009 08:17:03 +0000 (09:17 +0100)
commit0bb38a5cdeb39f543657ec6fb9950343d2de6918
tree52198d56b8f0301ae553288d2ff2c4f5d5409519
parent0f24f1287a86b198c1e4bd4ce45e8565e40ff804
tracing, slab: Fix no callsite ifndef CONFIG_KMEMTRACE

For slab, if CONFIG_KMEMTRACE and CONFIG_DEBUG_SLAB are not set,
__do_kmalloc() will not track callers:

 # ./perf record -f -a -R -e kmem:kmalloc
 ^C
 # ./perf trace
 ...
          perf-2204  [000]   147.376774: kmalloc: call_site=c0529d2d ...
          perf-2204  [000]   147.400997: kmalloc: call_site=c0529d2d ...
          Xorg-1461  [001]   147.405413: kmalloc: call_site=0 ...
          Xorg-1461  [001]   147.405609: kmalloc: call_site=0 ...
       konsole-1776  [001]   147.405786: kmalloc: call_site=0 ...

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Reviewed-by: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: linux-mm@kvack.org <linux-mm@kvack.org>
Cc: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
LKML-Reference: <4B21F8AE.6020804@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
mm/slab.c