Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158486
b: refs/heads/master
c: 621968c
h: refs/heads/master
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Sep 4, 2009
1 parent 3f4bb83 commit f96b54a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b8de7bd168fa54d059b16d3057b2f8a32cc5bdc3
refs/heads/master: 621968cdb2563b667d6ecb484ba91ef4c3a797b3
8 changes: 8 additions & 0 deletions trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -658,12 +658,20 @@ void tracing_reset(struct trace_array *tr, int cpu)

void tracing_reset_online_cpus(struct trace_array *tr)
{
struct ring_buffer *buffer = tr->buffer;
int cpu;

ring_buffer_record_disable(buffer);

/* Make sure all commits have finished */
synchronize_sched();

tr->time_start = ftrace_now(tr->cpu);

for_each_online_cpu(cpu)
tracing_reset(tr, cpu);

ring_buffer_record_enable(buffer);
}

void tracing_reset_current(int cpu)
Expand Down

0 comments on commit f96b54a

Please sign in to comment.