diff options
author | David Sharp <dhsharp@google.com> | 2012-10-11 16:27:52 -0700 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2012-11-02 10:21:47 -0400 |
commit | 60303ed3f4b9332b9aa9bc17c68bc174e7343e2d (patch) | |
tree | 1d9a7c8001297aafda1e873884dd8bda5aaf7872 /kernel/trace/ring_buffer.c | |
parent | 60efc15ae96c7aace8060411b0d5add20e1ab21e (diff) |
tracing: Reset ring buffer when changing trace_clocks
Because the "tsc" clock isn't in nanoseconds, the ring buffer must be
reset when changing clocks so that incomparable timestamps don't end up
in the same trace.
Tested: Confirmed switching clocks resets the trace buffer.
Google-Bug-Id: 6980623
Link: http://lkml.kernel.org/r/1349998076-15495-3-git-send-email-dhsharp@google.com
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: David Sharp <dhsharp@google.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/ring_buffer.c')
0 files changed, 0 insertions, 0 deletions