Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187871
b: refs/heads/master
c: 283740c
h: refs/heads/master
i:
  187869: 275794c
  187867: c485543
  187863: 6c241be
  187855: b0a7f06
  187839: aa22dd8
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Mar 13, 2010
1 parent 4cd1379 commit f5ebde9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ea14eb714041d40fcc5180b5a586034503650149
refs/heads/master: 283740c619d211e34572cc93c8cdba92ccbdb9cc
8 changes: 4 additions & 4 deletions trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -840,10 +840,10 @@ void unregister_tracer(struct tracer *type)
mutex_unlock(&trace_types_lock);
}

static void __tracing_reset(struct trace_array *tr, int cpu)
static void __tracing_reset(struct ring_buffer *buffer, int cpu)
{
ftrace_disable_cpu();
ring_buffer_reset_cpu(tr->buffer, cpu);
ring_buffer_reset_cpu(buffer, cpu);
ftrace_enable_cpu();
}

Expand All @@ -855,7 +855,7 @@ void tracing_reset(struct trace_array *tr, int cpu)

/* Make sure all commits have finished */
synchronize_sched();
__tracing_reset(tr, cpu);
__tracing_reset(buffer, cpu);

ring_buffer_record_enable(buffer);
}
Expand All @@ -873,7 +873,7 @@ void tracing_reset_online_cpus(struct trace_array *tr)
tr->time_start = ftrace_now(tr->cpu);

for_each_online_cpu(cpu)
__tracing_reset(tr, cpu);
__tracing_reset(buffer, cpu);

ring_buffer_record_enable(buffer);
}
Expand Down

0 comments on commit f5ebde9

Please sign in to comment.