aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorEduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>2008-08-10 13:14:03 -0400
committerPekka Enberg <penberg@cs.helsinki.fi>2008-12-29 08:34:01 -0500
commitb9ce08c01020eb28bfbfa6faf1c740281c5f418e (patch)
treeb42bbda9a44a9e62d952816482b340bc4b70870b /init
parent35995a4d815586bc968a857f7235707940a2f755 (diff)
kmemtrace: Core implementation.
kmemtrace provides tracing for slab allocator functions, such as kmalloc, kfree, kmem_cache_alloc, kmem_cache_free etc.. Collected data is then fed to the userspace application in order to analyse allocation hotspots, internal fragmentation and so on, making it possible to see how well an allocator performs, as well as debug and profile kernel code. Signed-off-by: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro> Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Diffstat (limited to 'init')
-rw-r--r--init/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/init/main.c b/init/main.c
index 7e117a231af1..be1fe2242a55 100644
--- a/init/main.c
+++ b/init/main.c
@@ -69,6 +69,7 @@
69#include <asm/setup.h> 69#include <asm/setup.h>
70#include <asm/sections.h> 70#include <asm/sections.h>
71#include <asm/cacheflush.h> 71#include <asm/cacheflush.h>
72#include <linux/kmemtrace.h>
72 73
73#ifdef CONFIG_X86_LOCAL_APIC 74#ifdef CONFIG_X86_LOCAL_APIC
74#include <asm/smp.h> 75#include <asm/smp.h>
@@ -653,6 +654,7 @@ asmlinkage void __init start_kernel(void)
653 enable_debug_pagealloc(); 654 enable_debug_pagealloc();
654 cpu_hotplug_init(); 655 cpu_hotplug_init();
655 kmem_cache_init(); 656 kmem_cache_init();
657 kmemtrace_init();
656 debug_objects_mem_init(); 658 debug_objects_mem_init();
657 idr_init_cache(); 659 idr_init_cache();
658 setup_per_cpu_pageset(); 660 setup_per_cpu_pageset();