LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH][RESEND] tracing/ftrace: Make boot tracer select the sched_switch tracer
@ 2008-10-22 17:26 Frederic Weisbecker
  2008-10-27 15:47 ` Ingo Molnar
  0 siblings, 1 reply; 2+ messages in thread
From: Frederic Weisbecker @ 2008-10-22 17:26 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Linux Kernel

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>
---
diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig
index 396aea1..d09c693 100644
--- a/kernel/trace/Kconfig
+++ b/kernel/trace/Kconfig
@@ -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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH][RESEND] tracing/ftrace: Make boot tracer select the sched_switch tracer
  2008-10-22 17:26 [PATCH][RESEND] tracing/ftrace: Make boot tracer select the sched_switch tracer Frederic Weisbecker
@ 2008-10-27 15:47 ` Ingo Molnar
  0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2008-10-27 15:47 UTC (permalink / raw)
  To: Frederic Weisbecker; +Cc: Linux Kernel, Steven Rostedt


* Frederic Weisbecker <fweisbec@gmail.com> wrote:

> 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>

applied to tip/tracing/urgent, thanks!

	Ingo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-27 15:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-22 17:26 [PATCH][RESEND] tracing/ftrace: Make boot tracer select the sched_switch tracer Frederic Weisbecker
2008-10-27 15:47 ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).