Loading kernel/trace/Kconfig +2 −1 Original line number Original line Diff line number Diff line Loading @@ -267,7 +267,8 @@ config HW_BRANCH_TRACER config KMEMTRACE config KMEMTRACE bool "Trace SLAB allocations" bool "Trace SLAB allocations" select TRACING select TRACING depends on RELAY select MARKERS select RELAY help help kmemtrace provides tracing for slab allocator functions, such as kmemtrace provides tracing for slab allocator functions, such as kmalloc, kfree, kmem_cache_alloc, kmem_cache_free etc.. Collected kmalloc, kfree, kmem_cache_alloc, kmem_cache_free etc.. Collected Loading kernel/trace/kmemtrace.c +2 −0 Original line number Original line Diff line number Diff line Loading @@ -296,6 +296,7 @@ void kmemtrace_mark_alloc_node(enum kmemtrace_type_id type_id, trace_wake_up(); trace_wake_up(); } } EXPORT_SYMBOL(kmemtrace_mark_alloc_node); void kmemtrace_mark_free(enum kmemtrace_type_id type_id, void kmemtrace_mark_free(enum kmemtrace_type_id type_id, unsigned long call_site, unsigned long call_site, Loading Loading @@ -325,6 +326,7 @@ void kmemtrace_mark_free(enum kmemtrace_type_id type_id, trace_wake_up(); trace_wake_up(); } } EXPORT_SYMBOL(kmemtrace_mark_free); static struct tracer kmem_tracer __read_mostly = { static struct tracer kmem_tracer __read_mostly = { .name = "kmemtrace", .name = "kmemtrace", Loading mm/slab.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -102,7 +102,7 @@ #include <linux/cpu.h> #include <linux/cpu.h> #include <linux/sysctl.h> #include <linux/sysctl.h> #include <linux/module.h> #include <linux/module.h> #include <linux/kmemtrace.h> #include <tracing/kmemtrace.h> #include <linux/rcupdate.h> #include <linux/rcupdate.h> #include <linux/string.h> #include <linux/string.h> #include <linux/uaccess.h> #include <linux/uaccess.h> Loading Loading
kernel/trace/Kconfig +2 −1 Original line number Original line Diff line number Diff line Loading @@ -267,7 +267,8 @@ config HW_BRANCH_TRACER config KMEMTRACE config KMEMTRACE bool "Trace SLAB allocations" bool "Trace SLAB allocations" select TRACING select TRACING depends on RELAY select MARKERS select RELAY help help kmemtrace provides tracing for slab allocator functions, such as kmemtrace provides tracing for slab allocator functions, such as kmalloc, kfree, kmem_cache_alloc, kmem_cache_free etc.. Collected kmalloc, kfree, kmem_cache_alloc, kmem_cache_free etc.. Collected Loading
kernel/trace/kmemtrace.c +2 −0 Original line number Original line Diff line number Diff line Loading @@ -296,6 +296,7 @@ void kmemtrace_mark_alloc_node(enum kmemtrace_type_id type_id, trace_wake_up(); trace_wake_up(); } } EXPORT_SYMBOL(kmemtrace_mark_alloc_node); void kmemtrace_mark_free(enum kmemtrace_type_id type_id, void kmemtrace_mark_free(enum kmemtrace_type_id type_id, unsigned long call_site, unsigned long call_site, Loading Loading @@ -325,6 +326,7 @@ void kmemtrace_mark_free(enum kmemtrace_type_id type_id, trace_wake_up(); trace_wake_up(); } } EXPORT_SYMBOL(kmemtrace_mark_free); static struct tracer kmem_tracer __read_mostly = { static struct tracer kmem_tracer __read_mostly = { .name = "kmemtrace", .name = "kmemtrace", Loading
mm/slab.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -102,7 +102,7 @@ #include <linux/cpu.h> #include <linux/cpu.h> #include <linux/sysctl.h> #include <linux/sysctl.h> #include <linux/module.h> #include <linux/module.h> #include <linux/kmemtrace.h> #include <tracing/kmemtrace.h> #include <linux/rcupdate.h> #include <linux/rcupdate.h> #include <linux/string.h> #include <linux/string.h> #include <linux/uaccess.h> #include <linux/uaccess.h> Loading