Re: [PATCH v3 1/3] tracing,x86: add a TSC trace_clock

2012-10-01 Thread Steven Rostedt
On Mon, 2012-10-01 at 17:33 -0700, David Sharp wrote: > > Unfortunately this isn't enough. You need to add a stub in all > > arch/*/include/asm/ directories. That has: > > Oh really? Okay. Sorry, I really don't know the mechanics of the arch > trees. I'll work on that now, and then send you a new

Re: [PATCH v3 1/3] tracing,x86: add a TSC trace_clock

2012-10-01 Thread David Sharp
On Fri, Sep 28, 2012 at 8:15 PM, Steven Rostedt wrote: > On Thu, 2012-09-20 at 15:52 -0700, David Sharp wrote: > >> diff --git a/include/asm-generic/trace_clock.h >> b/include/asm-generic/trace_clock.h >> new file mode 100644 >> index 000..6726f1b >> --- /dev/null >> +++ b/include/asm-generic

Re: [PATCH v3 1/3] tracing,x86: add a TSC trace_clock

2012-09-28 Thread Steven Rostedt
On Thu, 2012-09-20 at 15:52 -0700, David Sharp wrote: > diff --git a/include/asm-generic/trace_clock.h > b/include/asm-generic/trace_clock.h > new file mode 100644 > index 000..6726f1b > --- /dev/null > +++ b/include/asm-generic/trace_clock.h > @@ -0,0 +1,16 @@ > +#ifndef _ASM_GENERIC_TRACE_C

[PATCH v3 1/3] tracing,x86: add a TSC trace_clock

2012-09-20 Thread David Sharp
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 time base as the kernel and events can be unambiguously inter