]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
tracing/ftrace: make boot tracer select the sched_switch tracer
authorFrederic Weisbecker <fweisbec@gmail.com>
Wed, 22 Oct 2008 17:26:23 +0000 (19:26 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 27 Oct 2008 15:47:13 +0000 (16:47 +0100)
Impact: build fix

If the boot tracer is selected but not the sched_switch,
there will be a build failure:

 kernel/built-in.o: In function `boot_trace_init':
 trace_boot.c:(.text+0x5ee38): undefined reference to `sched_switch_trace'
 kernel/built-in.o: In function `disable_boot_trace':
 (.text+0x5eee1): undefined reference to `tracing_stop_cmdline_record'
 kernel/built-in.o: In function `enable_boot_trace':
 (.text+0x5ef11): undefined reference to `tracing_start_cmdline_record'

This patch fixes it.

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

index bc535cb91de9e42138b9f11438812a3ff811414b..e0cea282e0c58e8f37c7a8aedadfdfd8452ac60c 100644 (file)
@@ -123,6 +123,7 @@ config BOOT_TRACER
        bool "Trace boot initcalls"
        depends on DEBUG_KERNEL
        select TRACING
+       select CONTEXT_SWITCH_TRACER
        help
          This tracer helps developers to optimize boot times: it records
          the timings of the initcalls and traces key events and the identity