diff options
author | Steven Rostedt <srostedt@redhat.com> | 2012-05-11 13:29:49 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-03-15 00:34:42 -0400 |
commit | 2b6080f28c7cc3efc8625ab71495aae89aeb63a0 (patch) | |
tree | f3fe3b8a7ce99dda0da01f097255cae596083c88 /kernel/trace/trace_irqsoff.c | |
parent | ae3b5093ad6004b52e2825f3db1ad8200a2724d8 (diff) |
tracing: Encapsulate global_trace and remove dependencies on global vars
The global_trace variable in kernel/trace/trace.c has been kept 'static' and
local to that file so that it would not be used too much outside of that
file. This has paid off, even though there were lots of changes to make
the trace_array structure more generic (not depending on global_trace).
Removal of a lot of direct usages of global_trace is needed to be able to
create more trace_arrays such that we can add multiple buffers.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_irqsoff.c')
-rw-r--r-- | kernel/trace/trace_irqsoff.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/trace/trace_irqsoff.c b/kernel/trace/trace_irqsoff.c index 443b25b43b4f..b3cf6bf308ef 100644 --- a/kernel/trace/trace_irqsoff.c +++ b/kernel/trace/trace_irqsoff.c | |||
@@ -561,8 +561,8 @@ static void __irqsoff_tracer_init(struct trace_array *tr) | |||
561 | save_flags = trace_flags; | 561 | save_flags = trace_flags; |
562 | 562 | ||
563 | /* non overwrite screws up the latency tracers */ | 563 | /* non overwrite screws up the latency tracers */ |
564 | set_tracer_flag(TRACE_ITER_OVERWRITE, 1); | 564 | set_tracer_flag(tr, TRACE_ITER_OVERWRITE, 1); |
565 | set_tracer_flag(TRACE_ITER_LATENCY_FMT, 1); | 565 | set_tracer_flag(tr, TRACE_ITER_LATENCY_FMT, 1); |
566 | 566 | ||
567 | tracing_max_latency = 0; | 567 | tracing_max_latency = 0; |
568 | irqsoff_trace = tr; | 568 | irqsoff_trace = tr; |
@@ -581,8 +581,8 @@ static void irqsoff_tracer_reset(struct trace_array *tr) | |||
581 | 581 | ||
582 | stop_irqsoff_tracer(tr, is_graph()); | 582 | stop_irqsoff_tracer(tr, is_graph()); |
583 | 583 | ||
584 | set_tracer_flag(TRACE_ITER_LATENCY_FMT, lat_flag); | 584 | set_tracer_flag(tr, TRACE_ITER_LATENCY_FMT, lat_flag); |
585 | set_tracer_flag(TRACE_ITER_OVERWRITE, overwrite_flag); | 585 | set_tracer_flag(tr, TRACE_ITER_OVERWRITE, overwrite_flag); |
586 | } | 586 | } |
587 | 587 | ||
588 | static void irqsoff_tracer_start(struct trace_array *tr) | 588 | static void irqsoff_tracer_start(struct trace_array *tr) |