From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55066) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtaDg-0000k7-Is for qemu-devel@nongnu.org; Wed, 26 Nov 2014 05:53:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XtaDa-0004J4-FS for qemu-devel@nongnu.org; Wed, 26 Nov 2014 05:53:12 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50860) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtaDa-0004In-7Z for qemu-devel@nongnu.org; Wed, 26 Nov 2014 05:53:06 -0500 Message-ID: <5475B102.6060904@redhat.com> Date: Wed, 26 Nov 2014 11:52:50 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <20141126103841.7772.11864.stgit@PASHA-ISP> <20141126104038.7772.79661.stgit@PASHA-ISP> In-Reply-To: <20141126104038.7772.79661.stgit@PASHA-ISP> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC PATCH v5 20/31] replay: recording and replaying clock ticks List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pavel Dovgalyuk , qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, peter.crosthwaite@xilinx.com, alex.bennee@linaro.org, mark.burton@greensocs.com, real@ispras.ru, batuzovk@ispras.ru, maria.klimushenkova@ispras.ru, afaerber@suse.de, fred.konrad@greensocs.com On 26/11/2014 11:40, Pavel Dovgalyuk wrote: > +/* real time host monotonic timer implementation */ > +static inline int64_t get_clock_realtime_impl(void) > { > struct timeval tv; > > @@ -708,6 +709,12 @@ static inline int64_t get_clock_realtime(void) > return tv.tv_sec * 1000000000LL + (tv.tv_usec * 1000); > } > > +/* real time host monotonic timer interface */ > +static inline int64_t get_clock_realtime(void) > +{ > + return REPLAY_CLOCK(REPLAY_CLOCK_HOST, get_clock_realtime_impl()); > +} > + Any reason to do this instead of using REPLAY_CLOCK in qemu_get_clock, like you do for QEMU_CLOCK_VIRTUAL_RT? Paolo