git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kmemleak: Trace the kmalloc_large* functions in slub
[safe/jmp/linux-2.6]
/
include
/
linux
/
slub_def.h
diff --git
a/include/linux/slub_def.h
b/include/linux/slub_def.h
index
4dcbc2c
..
c1c862b
100644
(file)
--- a/
include/linux/slub_def.h
+++ b/
include/linux/slub_def.h
@@
-11,6
+11,7
@@
#include <linux/workqueue.h>
#include <linux/kobject.h>
#include <linux/kmemtrace.h>
#include <linux/workqueue.h>
#include <linux/kobject.h>
#include <linux/kmemtrace.h>
+#include <linux/kmemleak.h>
enum stat_item {
ALLOC_FASTPATH, /* Allocation from cpu slab */
enum stat_item {
ALLOC_FASTPATH, /* Allocation from cpu slab */
@@
-233,6
+234,7
@@
static __always_inline void *kmalloc_large(size_t size, gfp_t flags)
unsigned int order = get_order(size);
void *ret = (void *) __get_free_pages(flags | __GFP_COMP, order);
unsigned int order = get_order(size);
void *ret = (void *) __get_free_pages(flags | __GFP_COMP, order);
+ kmemleak_alloc(ret, size, 1, flags);
trace_kmalloc(_THIS_IP_, ret, size, PAGE_SIZE << order, flags);
return ret;
trace_kmalloc(_THIS_IP_, ret, size, PAGE_SIZE << order, flags);
return ret;