summaryrefslogtreecommitdiff
path: root/kernel/trace/trace_nop.c
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2013-11-06 22:42:48 -0500
committerSteven Rostedt <rostedt@goodmis.org>2014-02-20 12:13:10 -0500
commit607e2ea167e56db84387f3ab97e59a862e101cab (patch)
treefc464e41f7a6f26aa04684bd1f92ea5182b52646 /kernel/trace/trace_nop.c
parentbf6065b5c7014ab30383405718c7a6b96d2cbdb2 (diff)
tracing: Set up infrastructure to allow tracers for instances
Currently the tracers (function, function_graph, irqsoff, etc) can only be used by the top level tracing directory (not for instances). This sets up the infrastructure to allow instances to be able to run a separate tracer apart from the what the top level tracing is doing. As tracers need to adapt for being used by instances, the tracers must flag if they can be used by instances or not. Currently only the 'nop' tracer can be used by all instances. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_nop.c')
-rw-r--r--kernel/trace/trace_nop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/trace/trace_nop.c b/kernel/trace/trace_nop.c
index f3984098c0d7..69a5cc94c01a 100644
--- a/kernel/trace/trace_nop.c
+++ b/kernel/trace/trace_nop.c
@@ -96,6 +96,7 @@ struct tracer nop_trace __read_mostly =
.selftest = trace_selftest_startup_nop,
#endif
.flags = &nop_flags,
- .set_flag = nop_set_flag
+ .set_flag = nop_set_flag,
+ .allow_instances = true,
};