Re: [RFC PATCH v2] ftrace: support very early function tracing
From: Peter Zijlstra
Date: Wed Nov 08 2017 - 03:11:15 EST
On Tue, Nov 07, 2017 at 09:17:06PM -0500, Steven Rostedt wrote:
> > +#ifdef CONFIG_X86_TSC
> > + entry->clock = rdtsc();
> > +#else
> > + entry->clock = trace_clock_local();
> > +#endif
> > +#ifdef CONFIG_X86_TSC
> > + cpu_khz = native_calibrate_cpu();
> > +#endif
> > +#ifdef CONFIG_X86_TSC
> > + ns = cycles_to_ns(entry->clock, cpu_khz);
> > +#else
> > + ns = entry->clock;
> > +#endif
Yeah, no, not going to happen...