Re: [PATCH v3 3/4] ftrace: add tracepoint for hrtimer

From: Peter Zijlstra
Date: Thu Jul 23 2009 - 06:06:43 EST


On Thu, 2009-07-23 at 18:01 +0800, Xiao Guangrong wrote:
>
> Peter Zijlstra wrote:
>
> > OK, so what you want to measure is the time of the actual callback
> > happening (hrtimer_entry) vs that where you would have expected it to
> > happen (hrtimer_start + delay), right?
> >
>
> Yes
>
> > So what's wrong with printing the expected expiration time in the
> > hrtimer_start tracepoint in the cheap clock units?
> >
>
> Is "cheap clock units" means jiffies time?

Nah, something like cpu_clock() which is monotonic per-cpu and should
have high resolution where available.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/