Re: [PATCH 1/3] tracing,x86: add a TSC trace_clock; reset buffer on clock change

2012-09-12 Thread David Sharp
On Tue, Sep 11, 2012 at 8:48 PM, Steven Rostedt wrote: > On Tue, 2012-09-11 at 19:41 -0700, David Sharp wrote: >> diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c >> index 5c38c81..dc1f1fa 100644 >> --- a/kernel/trace/trace.c >> +++ b/kernel/trace/trace.c >> @@ -480,6 +480,9 @@ static stru

Re: [PATCH 1/3] tracing,x86: add a TSC trace_clock; reset buffer on clock change

2012-09-11 Thread Steven Rostedt
On Tue, 2012-09-11 at 19:41 -0700, David Sharp wrote: > In order to promote interoperability between userspace tracers and ftrace, > add a trace_clock that reports raw TSC values which will then be recorded > in the ring buffer. Userspace tracers that also record TSCs are then on > exactly the same