Skip to contentSkip to conversation

tracing/ftrace: Make boot tracer select the sched_switch tracer

PATCH RESEND Applied Frederic Weisbecker 2 participants 2 messages Oct 22, 2008 – Oct 27, 2008 Tracing

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 tracing/ftrace: Make boot tracer select the sched_switch tracer

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.

---

kernel/trace/Kconfig +1 -0
index 396aea1..d09c693 100644
@@ -125,6 +125,7 @@ config BOOT_TRACER
 	depends on HAVE_FTRACE
 	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. Its aim is to be parsed by the
Applied
#1 lore raw
Quoted 10 lines · Frederic Weisbecker

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'

Quoted 3 lines

This patch fixes it.

applied to tip/tracing/urgent, thanks!

Ingo