Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339000
b: refs/heads/master
c: 60303ed
h: refs/heads/master
v: v3
  • Loading branch information
David Sharp authored and Steven Rostedt committed Nov 2, 2012
1 parent 188eb58 commit 9ad6f61
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: 60efc15ae96c7aace8060411b0d5add20e1ab21e
refs/heads/master: 60303ed3f4b9332b9aa9bc17c68bc174e7343e2d
8 changes: 8 additions & 0 deletions trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -4073,6 +4073,14 @@ static ssize_t tracing_clock_write(struct file *filp, const char __user *ubuf,
if (max_tr.buffer)
ring_buffer_set_clock(max_tr.buffer, trace_clocks[i].func);

/*
* New clock may not be consistent with the previous clock.
* Reset the buffer so that it doesn't have incomparable timestamps.
*/
tracing_reset_online_cpus(&global_trace);
if (max_tr.buffer)
tracing_reset_online_cpus(&max_tr);

mutex_unlock(&trace_types_lock);

*fpos += cnt;
Expand Down

0 comments on commit 9ad6f61

Please sign in to comment.