]> asedeno.scripts.mit.edu Git - linux.git/commit
tracing: Have event_trace_init() called by trace_init_tracefs()
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 8 May 2018 19:09:27 +0000 (15:09 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 29 May 2018 12:28:29 +0000 (08:28 -0400)
commit58b9254757e026102a68cb44a0a15ba63787d0c0
tree94f14616bfb87bc8b3a50f562fb7344893785a47
parent3c96529c0739959e2aa235d44e47f5c68c1e40de
tracing: Have event_trace_init() called by trace_init_tracefs()

Instead of having both trace_init_tracefs() and event_trace_init() be called
by fs_initcall() routines, have event_trace_init() called directly by
trace_init_tracefs(). This will guarantee order of how the events are
created with respect to the rest of the ftrace infrastructure. This is
needed to be able to assoctiate event files with ftrace internal events,
such as the trace_marker.

Reviewed-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace.c
kernel/trace/trace.h
kernel/trace/trace_events.c