All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] CLOCK_HOST_REALTIME
@ 2013-07-16 13:06 kunming yang
  2013-07-16 14:29 ` Jan Kiszka
  0 siblings, 1 reply; 2+ messages in thread
From: kunming yang @ 2013-07-16 13:06 UTC (permalink / raw)
  To: xenomai

Hello,

I failed to read host time by using do_clock_host_realtime, so I tried
clock_gettime(CLOCK_HOST_REALTIME) by executing "clocktest -C 2", but I got:

== Tested clock: 2 (<unknown>)
CPU      ToD offset [us] ToD drift [us/s]      warps max delta [us]
--- -------------------- ---------------- ---------- --------------
  0                  0.0            0.000          0            0.0
clock_gettime failed for clock id 2

Anyone knows what's the problem?

Thanks for help!

regards,

Chris

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Xenomai] CLOCK_HOST_REALTIME
  2013-07-16 13:06 [Xenomai] CLOCK_HOST_REALTIME kunming yang
@ 2013-07-16 14:29 ` Jan Kiszka
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Kiszka @ 2013-07-16 14:29 UTC (permalink / raw)
  To: kunming yang; +Cc: xenomai

On 2013-07-16 15:06, kunming yang wrote:
> Hello,
> 
> I failed to read host time by using do_clock_host_realtime, so I tried
> clock_gettime(CLOCK_HOST_REALTIME) by executing "clocktest -C 2", but I got:
> 
> == Tested clock: 2 (<unknown>)
> CPU      ToD offset [us] ToD drift [us/s]      warps max delta [us]
> --- -------------------- ---------------- ---------- --------------
>   0                  0.0            0.000          0            0.0
> clock_gettime failed for clock id 2
> 
> Anyone knows what's the problem?

As we know, the answer to all questions is 42, also to this one:

#define CLOCK_HOST_REALTIME 42

Jan

-- 
Siemens AG, Corporate Technology, CT RTC ITP SES-DE
Corporate Competence Center Embedded Linux


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-07-16 14:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-16 13:06 [Xenomai] CLOCK_HOST_REALTIME kunming yang
2013-07-16 14:29 ` Jan Kiszka

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.