All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Mauerer <wolfgang.mauerer@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: Andreas Glatz <AndreasGlatz@domain.hid>,
	Jan Kiszka <jan.kiszka@domain.hid>,
	"xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] Question about getting system time
Date: Thu, 27 May 2010 17:35:27 +0200	[thread overview]
Message-ID: <4BFE913F.8010009@domain.hid> (raw)
In-Reply-To: <4BF64A65.6090202@domain.hid>

Gilles Chanteperdrix wrote:
> Jan Kiszka wrote:
>> Gilles Chanteperdrix wrote:
>>> Jan Kiszka wrote:
>>>> Just like it seems to be the case for Steve (unless I misunderstood his
>>>> reply), it is very useful for us being able to time-stamp events in RT
>>>> context that need to be correlated with events stamped in non-RT
>>>> (including non-Xenomai) parts or even on other systems: (offline) data
>>>> fusion, logging, tracing. I even bet that this is currently the major
>>>> use case for synchronized clocks, only a smaller part already has the
>>>> need to synchronize timed activities on a common clock source. But there
>>>> is huge potential in the second part once we can provide a stable
>>>> infrastructure.
>>> I already had such issues, and I did not solve them by modifying Xenomai
>>> core.
>>>
>>>> Even a "third clock" would have to be delivered for more archs than x86,
>>>> no question. We would basically need a generic but slow syscall variant
>>>> and per-arch syscall-less optimizations (where feasible).
>>> So, you would add a syscall which would becomre useless when you have
>>> implemented synchronized clocks properly? Yet another reason for
>>> avoiding this solution.
>>>
>> Could be "CLOCK_LINUX" - ie. no need for a new syscall.
> 
> I am Ok for this solution (and now that I think about it, I wonder if we
> did not already have this discussion). Anyway, I would go for
> CLOCK_HOST_REALTIME, in case someone wants to implement
> CLOCK_HOST_MONOTONIC. The advantage is that we can return EINVAL in the
> timer_create or clock_settime calls, to indicate clearly that using this
> clock for timing services is verboten. And when/if the full
> synchronization is implemented, the ID simply becomes a #define.

okay, so let's pursue this path. Patches will follow.

Best, Wolfgang


  reply	other threads:[~2010-05-27 15:35 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-13 22:14 [Xenomai-help] Question about getting system time Abhijit Majumdar
2010-05-14  5:44 ` Gilles Chanteperdrix
2010-05-14 10:34 ` Andreas Glatz
2010-05-14 10:42   ` Gilles Chanteperdrix
2010-05-17 16:27     ` Steve Deiters
2010-05-17 16:52       ` Jan Kiszka
2010-05-17 17:05         ` Steve Deiters
2010-05-17 17:13           ` Jan Kiszka
2010-05-17 18:02             ` Josh Karch
2010-05-17 18:23               ` Jan Kiszka
2010-05-17 18:51               ` Thomas Lockhart
2010-05-17 22:48             ` Steve Deiters
2010-05-17 23:50               ` Gilles Chanteperdrix
2010-05-17 23:53               ` Gilles Chanteperdrix
2010-05-18  0:23                 ` Steve Deiters
2010-05-18  7:04                   ` Jan Kiszka
2010-05-18  7:59                     ` Gilles Chanteperdrix
2010-05-18  8:38           ` Wolfgang Mauerer
2010-05-18 10:11             ` Gilles Chanteperdrix
2010-05-18 12:11               ` Wolfgang Mauerer
2010-05-18 12:41                 ` Gilles Chanteperdrix
2010-05-18 14:58                   ` [Xenomai-core] " Wolfgang Mauerer
2010-05-18 15:07                     ` Gilles Chanteperdrix
2010-05-18 18:41                     ` Gilles Chanteperdrix
2010-05-18 20:23                       ` Wolfgang Mauerer
2010-05-18 21:19                         ` Gilles Chanteperdrix
2010-05-18 22:09                           ` Jan Kiszka
2010-05-18 22:24                             ` Gilles Chanteperdrix
2010-05-18 23:02                               ` Jan Kiszka
2010-05-19  5:49                                 ` Gilles Chanteperdrix
2010-05-19  7:11                                   ` Jan Kiszka
2010-05-21  8:55                                     ` Gilles Chanteperdrix
2010-05-27 15:35                                       ` Wolfgang Mauerer [this message]
2010-05-19 19:16                                   ` Daniele Nicolodi
2010-05-19 20:55                                     ` Gilles Chanteperdrix

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=4BFE913F.8010009@domain.hid \
    --to=wolfgang.mauerer@domain.hid \
    --cc=AndreasGlatz@domain.hid \
    --cc=gilles.chanteperdrix@xenomai.org \
    --cc=jan.kiszka@domain.hid \
    --cc=xenomai@xenomai.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.