Received: from eggs.gnu.org ([2001:4830:134:3::10]:47890) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPuPN-0008If-DR for qemu-devel@nongnu.org; Fri, 05 Sep 2014 10:22:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPuPH-0001Cr-5T for qemu-devel@nongnu.org; Fri, 05 Sep 2014 10:22:37 -0400 Received: from lputeaux-656-01-25-125.w80-12.abo.wanadoo.fr ([80.12.84.125]:47949 helo=paradis.irqsave.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPuPG-0001Cc-VG for qemu-devel@nongnu.org; Fri, 05 Sep 2014 10:22:31 -0400 From: =?UTF-8?q?Beno=C3=AEt=20Canet?= Date: Fri, 5 Sep 2014 16:21:36 +0200 Message-Id: <1409926898-1737-1-git-send-email-benoit.canet@nodalink.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 0/2] Add the infrastructure that will be used to compute I/O accouting averages List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, armbru@redhat.com, stefanha@redhat.com, =?UTF-8?q?Beno=C3=AEt=20Canet?= Tiny module of code to maintain and compute timed average on a given peri= od. It comes with unit tests so we are sure the code will not bitrot while wa= iting for the accouting code to use it. Best regards Beno=C3=AEt Beno=C3=AEt Canet (2): timers: Move NANOSECONDS_PER_SECONDS to timer.h for future reuse util: Add an utility infrastructure used to compute an average on a time slice include/qemu/throttle.h | 2 - include/qemu/timed-average.h | 45 +++++++++++++++++++ include/qemu/timer.h | 2 + tests/Makefile | 2 + tests/test-timed-average.c | 53 ++++++++++++++++++++++ util/Makefile.objs | 1 + util/timed-average.c | 102 +++++++++++++++++++++++++++++++++++++= ++++++ 7 files changed, 205 insertions(+), 2 deletions(-) create mode 100644 include/qemu/timed-average.h create mode 100644 tests/test-timed-average.c create mode 100644 util/timed-average.c --=20 2.1.0