trace: Move trace event enable from fs_initcall to core_initcall
authorEzequiel Garcia <elezegarcia@gmail.com>
Wed, 12 Sep 2012 14:47:57 +0000 (11:47 -0300)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 24 Sep 2012 18:13:02 +0000 (14:13 -0400)
commit8781915ad2716adcd8cd5cc52cee791fc8b00fdf
tree0d16c498542e57b9fe5d709dba9042af63c5c1d1
parent5224c3a31549f1c056039545b289e1b01ed02f12
trace: Move trace event enable from fs_initcall to core_initcall

This patch splits trace event initialization in two stages:
 * ftrace enable
 * sysfs event entry creation

This allows to capture trace events from an earlier point
by using 'trace_event' kernel parameter and is important
to trace boot-up allocations.

Note that, in order to enable events at core_initcall,
it's necessary to move init_ftrace_syscalls() from
core_initcall to early_initcall.

Link: http://lkml.kernel.org/r/1347461277-25302-1-git-send-email-elezegarcia@gmail.com
Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_events.c
kernel/trace/trace_syscalls.c