From: Markus Oberrauter <oberrauter@funatics.de>
To: xen-devel@lists.xensource.com
Subject: clock_gettime monotonic & realtime swapped?
Date: Fri, 28 May 2010 17:20:47 +0200 [thread overview]
Message-ID: <4BFFDF4F.6020609@funatics.de> (raw)
Hi all,
we are currently having a lot of problems with our virtualized server (
time jumps 73 minutes backwards ).
I tried to find out how virtualization affects the clock of the client,
so I´ve downloaded the current xen source ( xen-4.0.0 ) and searched all
files for "clock".
I don´t think that this will be the cause of our problems here, but I
found an interesting switch - case statement in extras \ mini-os \ lib \
sys.c.
int clock_gettime(clockid_t clk_id, struct timespec *tp)
{
...
case CLOCK_MONOTONIC:
gettimeofday(&tv, NULL);
break;
case CLOCK_REALTIME:
uint64_t nsec = monotonic_clock();
break;
...
}
I had expected that CLOCK_MONOTONIC returns monotonic_clock and
CLOCK_REALTIME returns gettimeofday().
I hope this was the right place to post this information.
Greetings,
Markus Oberrauter
reply other threads:[~2010-05-28 15:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4BFFDF4F.6020609@funatics.de \
--to=oberrauter@funatics.de \
--cc=xen-devel@lists.xensource.com \
/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.