From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757765AbYDJSDQ (ORCPT ); Thu, 10 Apr 2008 14:03:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754487AbYDJSDB (ORCPT ); Thu, 10 Apr 2008 14:03:01 -0400 Received: from fg-out-1718.google.com ([72.14.220.155]:36021 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754457AbYDJSDA (ORCPT ); Thu, 10 Apr 2008 14:03:00 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=byr4tyCxuCo+rc/fwqDoJuPW89chcepOJ+OTZfckftv4GEMkUZp8ToxyUK5fDsWT+tucDmTvn2gprPnd8TNBLprQJ/42i5Fof5WFpS7ENMlpkQOywTsTmxe3DIUy4KDam+W7W58guxnT4yIT2Li/11k/B7exC6Sf3U+r5f3pT2k= Message-ID: Date: Thu, 10 Apr 2008 20:02:58 +0200 From: "Bart Van Assche" To: "Jack Harvard" Subject: Re: gettimeofday() resolution in Linux? Cc: LKML In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080410150424.GD2160@csclub.uwaterloo.ca> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 10, 2008 at 7:57 PM, Jack Harvard wrote: > On Thu, Apr 10, 2008 at 6:41 PM, Bart Van Assche > wrote: > > On Thu, Apr 10, 2008 at 5:59 PM, Jack Harvard > > wrote: > > > > > Here is an example of gettimeofday results, the time rolls back sometimes. > > > > If the result of gettimeofday() rolls back, and there is no process on > > your system that sets the time (like ntpd or hwclock --hctosys) then > > this is a kernel bug. Which kernel version are you using, and which > > kernel patches have been applied to that kernel ? > > It's an embedded system with an ARM processor, uname -a give the following info: > Linux (none) 2.6.21-arm1-t2_1 #20 Thu Apr 10 15:20:46 BST 2008 armv6l unknown Where did the kernel sources come from -- from kernel.org or from an company that modified the kernel ? Most companies that offer support for Linux on embedded devices modify the kernel with e.g. hard real-time support and high resolution timers. It is easy to introduce bugs by doing so. Bart.