Re: [PATCH v6 1/6] tracing,x86: Add a TSC trace_clock

2012-10-16 Thread David Sharp
On Tue, Oct 16, 2012 at 5:53 AM, David Howells wrote: > David Sharp wrote: > >> > Please use the Kbuild infrastructure ("generic-y += ..." in >> > arch/*/include/asm/Kbuild) >> > instead of adding wrappers around the asm-generic version. >> >> mips apparently recencly got rid of arch/mips/include

Re: [PATCH v6 1/6] tracing,x86: Add a TSC trace_clock

2012-10-16 Thread David Howells
David Sharp wrote: > > Please use the Kbuild infrastructure ("generic-y += ..." in > > arch/*/include/asm/Kbuild) > > instead of adding wrappers around the asm-generic version. > > mips apparently recencly got rid of arch/mips/include/asm/Kbuild. It didn't. However, if you use patch to create

Re: [PATCH v6 1/6] tracing,x86: Add a TSC trace_clock

2012-10-15 Thread David Sharp
On Thu, Oct 11, 2012 at 10:05 PM, Geert Uytterhoeven wrote: > On Fri, Oct 12, 2012 at 1:27 AM, David Sharp wrote: >> +#include > > Please use the Kbuild infrastructure ("generic-y += ..." in > arch/*/include/asm/Kbuild) > instead of adding wrappers around the asm-generic version. mips apparentl

Re: [PATCH v6 1/6] tracing,x86: Add a TSC trace_clock

2012-10-15 Thread David Sharp
On Fri, Oct 12, 2012 at 4:41 AM, Steven Rostedt wrote: > On Fri, 2012-10-12 at 07:05 +0200, Geert Uytterhoeven wrote: >> On Fri, Oct 12, 2012 at 1:27 AM, David Sharp wrote: >> > +#include >> >> Please use the Kbuild infrastructure ("generic-y += ..." in >> arch/*/include/asm/Kbuild) >> instead o

Re: [PATCH v6 1/6] tracing,x86: Add a TSC trace_clock

2012-10-12 Thread Steven Rostedt
On Fri, 2012-10-12 at 07:05 +0200, Geert Uytterhoeven wrote: > On Fri, Oct 12, 2012 at 1:27 AM, David Sharp wrote: > > +#include > > Please use the Kbuild infrastructure ("generic-y += ..." in > arch/*/include/asm/Kbuild) > instead of adding wrappers around the asm-generic version. So that's ho

Re: [PATCH v6 1/6] tracing,x86: Add a TSC trace_clock

2012-10-11 Thread Geert Uytterhoeven
On Fri, Oct 12, 2012 at 1:27 AM, David Sharp wrote: > +#include Please use the Kbuild infrastructure ("generic-y += ..." in arch/*/include/asm/Kbuild) instead of adding wrappers around the asm-generic version. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's l

[PATCH v6 1/6] tracing,x86: Add a TSC trace_clock

2012-10-11 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