]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
tracing/ftrace: give an entry on the config for boot tracer
authorFrédéric Weisbecker <fweisbec@gmail.com>
Tue, 23 Sep 2008 10:36:20 +0000 (11:36 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 14 Oct 2008 08:38:49 +0000 (10:38 +0200)
Bring the entry to choose the boot tracer on the kernel config.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/Kconfig
kernel/trace/Makefile

index 254328dec672f2b1f99eeac0f1cc190cbdf6117f..81a17ef6b942b09a3cc13c53e030e33f2121e78b 100644 (file)
@@ -116,6 +116,18 @@ config CONTEXT_SWITCH_TRACER
          This tracer gets called from the context switch and records
          all switching of tasks.
 
+config BOOT_TRACER
+       bool "Trace boot initcalls"
+       depends on HAVE_FTRACE
+       depends on DEBUG_KERNEL
+       select TRACING
+       help
+         This tracer helps developers to optimize boot times: it records
+         the timings of the initcalls. Its aim is to be parsed by the
+         /scripts/bootgraph.pl tool to produce pretty graphics about
+         boot inefficiencies, giving a visual representation of the
+         delays during initcalls.
+
 config STACK_TRACER
        bool "Trace max stack"
        depends on HAVE_FTRACE
index 73ba13f5a461b02fc54df5a0efbda11f490adc4d..35a07f7cfa865ab9dfe7853ad6603f824e850651 100644 (file)
@@ -22,5 +22,6 @@ obj-$(CONFIG_SCHED_TRACER) += trace_sched_wakeup.o
 obj-$(CONFIG_NOP_TRACER) += trace_nop.o
 obj-$(CONFIG_STACK_TRACER) += trace_stack.o
 obj-$(CONFIG_MMIOTRACE) += trace_mmiotrace.o
+obj-$(CONFIG_BOOT_TRACER) += trace_boot.o
 
 libftrace-y := ftrace.o