tracing/fastboot: Enable boot tracing only during initcalls
authorFrederic Weisbecker <fweisbec@gmail.com>
Fri, 31 Oct 2008 11:57:20 +0000 (12:57 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 4 Nov 2008 16:14:02 +0000 (17:14 +0100)
commit71566a0d161edec70361b7f90f6e54af6a6d5d05
tree78d2d790ed4e20c179d2f61f2ed50ecbb6d5a451
parent7a895f53cda9d9362c30144e42c124a1ae996b9e
tracing/fastboot: Enable boot tracing only during initcalls

Impact: modify boot tracer

We used to disable the initcall tracing at a specified time (IE: end
of builtin initcalls). But we don't need it anymore. It will be
stopped when initcalls are finished.

However we want two things:

_Start this tracing only after pre-smp initcalls are finished.

_Since we are planning to trace sched_switches at the same time, we
want to enable them only during the initcall execution.

For this purpose, this patch introduce two functions to enable/disable
the sched_switch tracing during boot.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/ftrace.h
init/main.c
kernel/trace/trace_boot.c