From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59589) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XK5vP-0005Gl-8A for qemu-devel@nongnu.org; Wed, 20 Aug 2014 09:27:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XK5vJ-0001Au-4H for qemu-devel@nongnu.org; Wed, 20 Aug 2014 09:27:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40328) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XK5vI-0001Al-Rm for qemu-devel@nongnu.org; Wed, 20 Aug 2014 09:27:33 -0400 Message-ID: <53F4A240.104@redhat.com> Date: Wed, 20 Aug 2014 15:27:28 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1408528887-22200-1-git-send-email-famz@redhat.com> <1408528887-22200-5-git-send-email-famz@redhat.com> In-Reply-To: <1408528887-22200-5-git-send-email-famz@redhat.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 4/6] stubs: Add timer.c List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng , qemu-devel@nongnu.org Cc: kwolf@redhat.com, mjt@tls.msk.ru, stefanha@redhat.com Il 20/08/2014 12:01, Fam Zheng ha scritto: > Add timer functions that are used in util/throttle.c. > > Signed-off-by: Fam Zheng > --- > stubs/Makefile.objs | 1 + > stubs/timer.c | 44 ++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 45 insertions(+) > create mode 100644 stubs/timer.c > > diff --git a/stubs/Makefile.objs b/stubs/Makefile.objs > index f5d2cdd..1d433f3 100644 > --- a/stubs/Makefile.objs > +++ b/stubs/Makefile.objs > @@ -42,3 +42,4 @@ stub-obj-y += kvm.o > stub-obj-y += qmp_pc_dimm_device_list.o > stub-obj-y += iohandler.o > stub-obj-y += openpty.o > +stub-obj-y += timer.o > diff --git a/stubs/timer.c b/stubs/timer.c > new file mode 100644 > index 0000000..17e25c9 > --- /dev/null > +++ b/stubs/timer.c > @@ -0,0 +1,44 @@ > +/* > + * timer stub functions > + * > + * Copyright Red Hat, Inc., 2014 > + * > + * Author: Fam Zheng > + * > + * This work is licensed under the terms of the GNU GPL, version 2 or > + * later. See the COPYING file in the top-level directory. > + */ > + > +#include "qemu/timer.h" > + > +void timer_del(QEMUTimer *ts) > +{ > + abort(); > +} > + > +void timer_init(QEMUTimer *ts, > + QEMUTimerList *timer_list, int scale, > + QEMUTimerCB *cb, void *opaque) > +{ > + abort(); > +} > + > +void timer_free(QEMUTimer *ts) > +{ > + abort(); > +} > + > +int64_t qemu_clock_get_ns(QEMUClockType type) > +{ > + abort(); > +} > + > +void timer_mod(QEMUTimer *ts, int64_t expire_time) > +{ > + abort(); > +} > + > +bool timer_pending(QEMUTimer *ts) > +{ > + abort(); > +} > Who uses these? The tests? Perhaps util/throttle.c can be moved to the root and added to block-obj-y. Paolo