From: John Stultz <john.stultz@linaro.org>
To: David Ahern <dsahern@gmail.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
Steven Rostedt <rostedt@goodmis.org>
Subject: Re: [PATCH] timekeeping: Add tracepoints for xtime changes - v2
Date: Mon, 01 Apr 2013 15:16:10 -0700 [thread overview]
Message-ID: <515A072A.3080307@linaro.org> (raw)
In-Reply-To: <515A0317.1070800@gmail.com>
On 04/01/2013 02:58 PM, David Ahern wrote:
> On 4/1/13 12:55 PM, John Stultz wrote:
>
>> This all looks reasonable. Though do we need to be more explicit in what
>> we're tracing here? ie: CLOCK_REALTIME timestamps?
>
> The tracepoints don't care about the what and the tp names follow the
> convention of trace_<function_name> so you know where it is triggering.
>
>>
>> I'd someday eventually like to rework the timekeeping core to be mostly
>> ktime_t based, building time in a more logical method up from
>> CLOCK_MONOTONIC rather then using CLOCK_REALTIME as our base and
>> subtracting time from that. I'm just worried about what sort of
>> constraints these tracepoints may put on a larger rework in the future.
>
> Understood. And my comment above is not going to help -- ie., telling
> perf specific tracepoints which include function names. Should I
> consolidate this into a single trace_tod_update() that gets invoked in
> various places? The locations can move without affecting perf. I just
> want the tod update; where it happens should not matter.
>
I guess what I'm getting at is: What ABI are we creating here? Can
these tracepoints come and go without any consequence? Or would changing
them in the future cause application breakage?
I'm somewhat worried even trace_tod_update() is maybe too vague (again
not that the name specifically is critical, but that the semantics we're
specifying are clear). In other words, I think you're wanting a
tracepoint at any time CLOCK_REALTIME is updated by anything other then
the normal progression of time? Is that right?
You may want to also include the leapsecond modification in the tracing
as well.
thanks
-john
next prev parent reply other threads:[~2013-04-01 22:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-19 16:27 [PATCH] timekeeping: Add tracepoints for xtime changes - v2 David Ahern
2013-03-26 13:44 ` David Ahern
[not found] ` <CANcMJZCJK_8r6y0MbhhgyTkk=7dMOFZO-KkeVy4MLE5PZxEZqg@mail.gmail.com>
2013-04-01 21:58 ` David Ahern
2013-04-01 22:16 ` John Stultz [this message]
2013-04-01 22:47 ` David Ahern
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=515A072A.3080307@linaro.org \
--to=john.stultz@linaro.org \
--cc=dsahern@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox