tracing: Get trace_events kernel command line working again
authorSteven Rostedt <srostedt@redhat.com>
Wed, 27 Feb 2013 21:28:06 +0000 (16:28 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 15 Mar 2013 04:34:46 +0000 (00:34 -0400)
commit772482216f170ddc62fa92a3cc3271cdd1993525
tree77b874b932c082e4de2abc73a68ba813455affbd
parent0c8916c34203734d3b05953ebace52d7c2969f16
tracing: Get trace_events kernel command line working again

With the new descriptors used to allow multiple buffers in the
tracing directory added, the kernel command line parameter
trace_events=... no longer works. This is because the top level
(global) trace array now has a list of descriptors associated
with the events and the files in the debugfs directory. But in
early bootup, when the command line is processed and the events
enabled, the trace array list of events has not been set up yet.

Without the list of events in the trace array, the setting of
events to record will fail because it would not match any events.

The solution is to set up the top level array in two stages.
The first is to just add the ftrace file descriptors that just point
to the events. This will allow events to be enabled and start tracing.
The second stage is called after the filesystem is set up, and this
stage will create the debugfs event files and directories associated
with the trace array events.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_events.c
This page took 0.02536 seconds and 5 git commands to generate.