From owner-freebsd-current@FreeBSD.ORG Tue Jun 14 16:38:02 2011 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 709F3106564A for ; Tue, 14 Jun 2011 16:38:02 +0000 (UTC) (envelope-from kmacybsd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 29FC48FC1B for ; Tue, 14 Jun 2011 16:38:01 +0000 (UTC) Received: by vws18 with SMTP id 18so6626910vws.13 for ; Tue, 14 Jun 2011 09:38:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=tUa4lU1KKrnr0a7ntyvfNCcnEWwaiKJOWN7jAasLjR8=; b=wz2unWNOQqtfq47a1251PDYOktSRJ6PQePtE7YvqgX+Zy0uuCoLs6Qhl16XXLPDcrG Inpjw56m1zenbqdzZCTkMUUgCGT13JmASo20TqPQPt1tyQdhQN60PV2l21UKCuMrlsd8 HbA8ZwLwjJM/ge3SIv7WISzvN1ZAHwEwVqHNY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=SLP4RaGtbHasXs1x7rK8JI93cgesA0NKewrWMmLAgv9QK8HlHumVVBsZR6x9e74N2I 8kkDCYzwCBoAX0pCu/hnAGbKjU3uSiglFO+j8Tws2ihto29yC4ugENuy8JgYjvxsHf7k CAJ4KeY7LY6fPjONAlOCPqBghp9I4Q93cDa5M= MIME-Version: 1.0 Received: by 10.52.173.111 with SMTP id bj15mr6322485vdc.122.1308067732443; Tue, 14 Jun 2011 09:08:52 -0700 (PDT) Sender: kmacybsd@gmail.com Received: by 10.52.187.74 with HTTP; Tue, 14 Jun 2011 09:08:52 -0700 (PDT) In-Reply-To: <20110614161105.GA17306@onelab2.iet.unipi.it> References: <20110614161105.GA17306@onelab2.iet.unipi.it> Date: Tue, 14 Jun 2011 18:08:52 +0200 X-Google-Sender-Auth: 9cSvZiGgx56ctcnWpma8QNECle4 Message-ID: From: "K. Macy" To: Luigi Rizzo Content-Type: text/plain; charset=ISO-8859-1 Cc: current@freebsd.org Subject: Re: fast/syscall-free gettimeofday ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jun 2011 16:38:02 -0000 http://svnweb.freebsd.org/base/head/sys/sys/imgact.h kib added rudimentary support for this in January On Tue, Jun 14, 2011 at 6:11 PM, Luigi Rizzo wrote: > there were discussions at some point on an imprecise but > fast implementations of gettimeofday() that would not require > a system call (perhaps mmapping some memory region which > is opportunistically updated). > > Does anyone remember what happened about that ? > > Otherwise, is there any place in the kernel where i can fetch > a struct timeval which is not off by more than, say 1 tick ? > > cheers > luigi > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >