4 * Copyright (C) 2008 Steven Noonan <steven@uplinklabs.net>
8 #include <linux/module.h>
10 #include <linux/debugfs.h>
11 #include <linux/ftrace.h>
15 static struct trace_array *ctx_trace;
17 static void start_nop_trace(struct trace_array *tr)
22 static void stop_nop_trace(struct trace_array *tr)
27 static void nop_trace_init(struct trace_array *tr)
32 for_each_online_cpu(cpu)
33 tracing_reset(tr, cpu);
38 static void nop_trace_reset(struct trace_array *tr)
43 struct tracer nop_trace __read_mostly =
46 .init = nop_trace_init,
47 .reset = nop_trace_reset,
48 #ifdef CONFIG_FTRACE_SELFTEST
49 .selftest = trace_selftest_startup_nop,