mm, slob: Add support for kmalloc_track_caller()
authorEzequiel Garcia <elezegarcia@gmail.com>
Sat, 8 Sep 2012 20:47:53 +0000 (17:47 -0300)
committerPekka Enberg <penberg@kernel.org>
Tue, 25 Sep 2012 07:14:18 +0000 (10:14 +0300)
commitf3f741019595f1e73564d985f5fe8abcbb98c769
tree6a46da5eb60a8bd2bf6bdaf5804e40367b91048f
parentff4fcd01ec86d98d15d2fd96f22f19bb1d341b88
mm, slob: Add support for kmalloc_track_caller()

Currently slob falls back to regular kmalloc for this case.
With this patch kmalloc_track_caller() is correctly implemented,
thus tracing the specified caller.

This is important to trace accurately allocations performed by
krealloc, kstrdup, kmemdup, etc.

Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
include/linux/slab.h
mm/slob.c