diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2009-06-30 22:47:05 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-07-01 09:44:24 -0400 |
commit | 020e5f85cb087a40572c8b8b2dd06292a14fa212 (patch) | |
tree | d1bd09885693dd9d5e9db995cb0f7f58aa0e1bb8 /kernel/trace/trace.c | |
parent | c5cb5a2d8d7dc872cf1504091ad0e59fe5ff7cb5 (diff) |
tracing/events: Add trace_event boot option
We already have ftrace= boot option, and this adds a similar
boot option for trace events, so allow trace events to be
enabled at boot, for boot debugging purpose.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <4A4ACE29.3010407@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r-- | kernel/trace/trace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 3aa0a0dfdfa8..bdb3afc8b306 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -49,7 +49,7 @@ unsigned long __read_mostly tracing_thresh; | |||
49 | * On boot up, the ring buffer is set to the minimum size, so that | 49 | * On boot up, the ring buffer is set to the minimum size, so that |
50 | * we do not waste memory on systems that are not using tracing. | 50 | * we do not waste memory on systems that are not using tracing. |
51 | */ | 51 | */ |
52 | static int ring_buffer_expanded; | 52 | int ring_buffer_expanded; |
53 | 53 | ||
54 | /* | 54 | /* |
55 | * We need to change this state when a selftest is running. | 55 | * We need to change this state when a selftest is running. |
@@ -63,7 +63,7 @@ static bool __read_mostly tracing_selftest_running; | |||
63 | /* | 63 | /* |
64 | * If a tracer is running, we do not want to run SELFTEST. | 64 | * If a tracer is running, we do not want to run SELFTEST. |
65 | */ | 65 | */ |
66 | static bool __read_mostly tracing_selftest_disabled; | 66 | bool __read_mostly tracing_selftest_disabled; |
67 | 67 | ||
68 | /* For tracers that don't implement custom flags */ | 68 | /* For tracers that don't implement custom flags */ |
69 | static struct tracer_opt dummy_tracer_opt[] = { | 69 | static struct tracer_opt dummy_tracer_opt[] = { |