diff options
Diffstat (limited to 'mm/util.c')
-rw-r--r-- | mm/util.c | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -4,9 +4,11 @@ | |||
4 | #include <linux/module.h> | 4 | #include <linux/module.h> |
5 | #include <linux/err.h> | 5 | #include <linux/err.h> |
6 | #include <linux/sched.h> | 6 | #include <linux/sched.h> |
7 | #include <linux/tracepoint.h> | ||
8 | #include <asm/uaccess.h> | 7 | #include <asm/uaccess.h> |
9 | 8 | ||
9 | #define CREATE_TRACE_POINTS | ||
10 | #include <trace/kmem.h> | ||
11 | |||
10 | /** | 12 | /** |
11 | * kstrdup - allocate space for and copy an existing string | 13 | * kstrdup - allocate space for and copy an existing string |
12 | * @s: the string to duplicate | 14 | * @s: the string to duplicate |
@@ -239,13 +241,6 @@ int __attribute__((weak)) get_user_pages_fast(unsigned long start, | |||
239 | EXPORT_SYMBOL_GPL(get_user_pages_fast); | 241 | EXPORT_SYMBOL_GPL(get_user_pages_fast); |
240 | 242 | ||
241 | /* Tracepoints definitions. */ | 243 | /* Tracepoints definitions. */ |
242 | DEFINE_TRACE(kmalloc); | ||
243 | DEFINE_TRACE(kmem_cache_alloc); | ||
244 | DEFINE_TRACE(kmalloc_node); | ||
245 | DEFINE_TRACE(kmem_cache_alloc_node); | ||
246 | DEFINE_TRACE(kfree); | ||
247 | DEFINE_TRACE(kmem_cache_free); | ||
248 | |||
249 | EXPORT_TRACEPOINT_SYMBOL(kmalloc); | 244 | EXPORT_TRACEPOINT_SYMBOL(kmalloc); |
250 | EXPORT_TRACEPOINT_SYMBOL(kmem_cache_alloc); | 245 | EXPORT_TRACEPOINT_SYMBOL(kmem_cache_alloc); |
251 | EXPORT_TRACEPOINT_SYMBOL(kmalloc_node); | 246 | EXPORT_TRACEPOINT_SYMBOL(kmalloc_node); |