Re: [PATCH 2/2] time: alarmtimer: Add the trcepoints for alarmtimer

From: Thomas Gleixner
Date: Wed Sep 21 2016 - 08:39:02 EST


On Wed, 21 Sep 2016, Steven Rostedt wrote:
> On Wed, 21 Sep 2016 09:26:20 +0200 (CEST)
> Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:
> > A single u64 does not take more storage space than this and it's a single
> > store.
>
> So to use rtc_tm_to_time64()? Is the work to do the calculations of the
> conversion faster than a bunch of stores that are going to be in hot
> cache?

Look at the call site. It has already the scalar nsec value and it does a
conversion to rtc time in order to trace it.

Ditto for the other tracepoints where the conversion from scalar nsec is
done in the tracepoint itself.

Thanks,

tglx