diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2014-01-14 08:52:35 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2014-02-20 12:13:17 -0500 |
commit | 50512ab576e1ce29953c9259e1f36ce16f350f20 (patch) | |
tree | 1fdc504b49e2bb9be384825f7f555b5475dc073f /kernel/trace/trace.h | |
parent | 6b450d2533e2c1c71fbe7f1bdce0bb1c9f813030 (diff) | |
download | op-kernel-dev-50512ab576e1ce29953c9259e1f36ce16f350f20.zip op-kernel-dev-50512ab576e1ce29953c9259e1f36ce16f350f20.tar.gz |
tracing: Convert tracer->enabled to counter
As tracers will soon be used by instances, the tracer enabled field
needs to be converted to a counter instead of a boolean.
This counter is protected by the trace_types_lock mutex.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index ea51bb2..86915b2 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h @@ -362,8 +362,8 @@ struct tracer { u32 mask, int set); struct tracer *next; struct tracer_flags *flags; + int enabled; bool print_max; - bool enabled; bool allow_instances; #ifdef CONFIG_TRACER_MAX_TRACE bool use_max_tr; |