aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/trace/Kconfig3
-rw-r--r--kernel/trace/kmemtrace.c2
-rw-r--r--mm/slab.c2
3 files changed, 5 insertions, 2 deletions
diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig
index 27fb74b06b3c..cc9f91e7daf4 100644
--- a/kernel/trace/Kconfig
+++ b/kernel/trace/Kconfig
@@ -267,7 +267,8 @@ config HW_BRANCH_TRACER
267config KMEMTRACE 267config KMEMTRACE
268 bool "Trace SLAB allocations" 268 bool "Trace SLAB allocations"
269 select TRACING 269 select TRACING
270 depends on RELAY 270 select MARKERS
271 select RELAY
271 help 272 help
272 kmemtrace provides tracing for slab allocator functions, such as 273 kmemtrace provides tracing for slab allocator functions, such as
273 kmalloc, kfree, kmem_cache_alloc, kmem_cache_free etc.. Collected 274 kmalloc, kfree, kmem_cache_alloc, kmem_cache_free etc.. Collected
diff --git a/kernel/trace/kmemtrace.c b/kernel/trace/kmemtrace.c
index d69cbe3c2a4b..2bfdcd326226 100644
--- a/kernel/trace/kmemtrace.c
+++ b/kernel/trace/kmemtrace.c
@@ -296,6 +296,7 @@ void kmemtrace_mark_alloc_node(enum kmemtrace_type_id type_id,
296 296
297 trace_wake_up(); 297 trace_wake_up();
298} 298}
299EXPORT_SYMBOL(kmemtrace_mark_alloc_node);
299 300
300void kmemtrace_mark_free(enum kmemtrace_type_id type_id, 301void kmemtrace_mark_free(enum kmemtrace_type_id type_id,
301 unsigned long call_site, 302 unsigned long call_site,
@@ -325,6 +326,7 @@ void kmemtrace_mark_free(enum kmemtrace_type_id type_id,
325 326
326 trace_wake_up(); 327 trace_wake_up();
327} 328}
329EXPORT_SYMBOL(kmemtrace_mark_free);
328 330
329static struct tracer kmem_tracer __read_mostly = { 331static struct tracer kmem_tracer __read_mostly = {
330 .name = "kmemtrace", 332 .name = "kmemtrace",
diff --git a/mm/slab.c b/mm/slab.c
index bcf08ea88380..7f72bb386a09 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -102,7 +102,7 @@
102#include <linux/cpu.h> 102#include <linux/cpu.h>
103#include <linux/sysctl.h> 103#include <linux/sysctl.h>
104#include <linux/module.h> 104#include <linux/module.h>
105#include <linux/kmemtrace.h> 105#include <tracing/kmemtrace.h>
106#include <linux/rcupdate.h> 106#include <linux/rcupdate.h>
107#include <linux/string.h> 107#include <linux/string.h>
108#include <linux/uaccess.h> 108#include <linux/uaccess.h>