WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] clock_gettime monotonic & realtime swapped?

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] clock_gettime monotonic & realtime swapped?
From: Markus Oberrauter <oberrauter@xxxxxxxxxxx>
Date: Fri, 28 May 2010 17:20:47 +0200
Delivery-date: Fri, 28 May 2010 08:22:03 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4
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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] clock_gettime monotonic & realtime swapped?, Markus Oberrauter <=