aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_nop.c
diff options
context:
space:
mode:
authorFrédéric Weisbecker <fweisbec@gmail.com>2008-09-21 14:16:30 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-14 04:38:09 -0400
commit43a15386c4faf913f7d70a47748c266d6210cd6e (patch)
tree2af766a34661123bd520fb30b1f83fbff1e65dab /kernel/trace/trace_nop.c
parent2a3a4f669df2164288d11406d11d5e4933bf5e53 (diff)
tracing/ftrace: replace none tracer by nop tracer
Replace "none" tracer by the recently created "nop" tracer. Both are pretty similar except that nop accepts TRACE_PRINT or TRACE_SPECIAL entries. And as a consequence, changing the size of the ring buffer now requires that tracing has already been disabled. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Steven Noonan <steven@uplinklabs.net> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace_nop.c')
-rw-r--r--kernel/trace/trace_nop.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/kernel/trace/trace_nop.c b/kernel/trace/trace_nop.c
index 9fb02c17ad0c..16c9ba060bab 100644
--- a/kernel/trace/trace_nop.c
+++ b/kernel/trace/trace_nop.c
@@ -51,7 +51,7 @@ static void nop_trace_ctrl_update(struct trace_array *tr)
51 stop_nop_trace(tr); 51 stop_nop_trace(tr);
52} 52}
53 53
54static struct tracer nop_trace __read_mostly = 54struct tracer nop_trace __read_mostly =
55{ 55{
56 .name = "nop", 56 .name = "nop",
57 .init = nop_trace_init, 57 .init = nop_trace_init,
@@ -62,8 +62,3 @@ static struct tracer nop_trace __read_mostly =
62#endif 62#endif
63}; 63};
64 64
65__init static int init_nop_trace(void)
66{
67 return register_tracer(&nop_trace);
68}
69device_initcall(init_nop_trace);