summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2013-11-07 04:42:48 +0100
committerSteven Rostedt <rostedt@goodmis.org>2014-02-20 18:13:10 +0100
commit607e2ea167e56db84387f3ab97e59a862e101cab (patch)
treefc464e41f7a6f26aa04684bd1f92ea5182b52646 /kernel/trace/trace.h
parenttracing: Pass trace_array to flag_changed callback (diff)
downloadlinux-607e2ea167e56db84387f3ab97e59a862e101cab.tar.xz
linux-607e2ea167e56db84387f3ab97e59a862e101cab.zip
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.h')
-rw-r--r--kernel/trace/trace.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index 36e44732c650..ea51bb2004d2 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -364,6 +364,7 @@ struct tracer {
struct tracer_flags *flags;
bool print_max;
bool enabled;
+ bool allow_instances;
#ifdef CONFIG_TRACER_MAX_TRACE
bool use_max_tr;
#endif