]> Git Repo - linux.git/commit
mm/sl[ao]b: always track caller in kmalloc_(node_)track_caller()
authorJoonsoo Kim <[email protected]>
Thu, 9 Oct 2014 22:26:02 +0000 (15:26 -0700)
committerLinus Torvalds <[email protected]>
Fri, 10 Oct 2014 02:25:50 +0000 (22:25 -0400)
commit61f47105a2c9c60e950ca808b7560f776f9bfa31
tree10bbc7fb213285e1e673073eedf21a1991a22ea1
parent07f361b2bee38896df8be17d8c3f8af3f3610606
mm/sl[ao]b: always track caller in kmalloc_(node_)track_caller()

Now, we track caller if tracing or slab debugging is enabled.  If they are
disabled, we could save one argument passing overhead by calling
__kmalloc(_node)().  But, I think that it would be marginal.  Furthermore,
default slab allocator, SLUB, doesn't use this technique so I think that
it's okay to change this situation.

After this change, we can turn on/off CONFIG_DEBUG_SLAB without full
kernel build and remove some complicated '#if' defintion.  It looks more
benefitial to me.

Signed-off-by: Joonsoo Kim <[email protected]>
Acked-by: Christoph Lameter <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Zhang Yanfei <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/slab.h
mm/slab.c
mm/slob.c
This page took 0.05576 seconds and 4 git commands to generate.