From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56210) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z8Pe0-0000XP-Ef for qemu-devel@nongnu.org; Fri, 26 Jun 2015 05:09:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z8Pdw-0007GO-EI for qemu-devel@nongnu.org; Fri, 26 Jun 2015 05:09:56 -0400 Date: Fri, 26 Jun 2015 10:09:48 +0100 From: Stefan Hajnoczi Message-ID: <20150626090948.GB15457@stefanha-thinkpad.redhat.com> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hQiwHBbRI9kgIhsi" Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH 0/3] Add infrastructure to compute timed averages List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alberto Garcia Cc: Paolo Bonzini , qemu-devel@nongnu.org, qemu-block@nongnu.org --hQiwHBbRI9kgIhsi Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 12, 2015 at 04:01:28PM +0300, Alberto Garcia wrote: > This series adds a new module that can be used to compute the average > of a set of values in a certain period of time. This will be used by > the accounting code to obtain statistics such as the min / max / > average latency of I/O commands. >=20 > This is based on Beno=EEt's code, originally written last year. >=20 > Regards, >=20 > Berto >=20 > Alberto Garcia (3): > timer: Move NANOSECONDS_PER_SECONDS to timer.h > timer: Use a single definition of NSEC_PER_SEC for the whole codebase > util: Infrastructure for computing recent averages >=20 > hw/ppc/ppc.c | 2 - > hw/ppc/spapr_rtc.c | 3 +- > hw/timer/mc146818rtc.c | 1 - > hw/usb/hcd-ehci.c | 2 +- > include/qemu/throttle.h | 2 - > include/qemu/timed-average.h | 58 ++++++++++++ > include/qemu/timer.h | 2 + > tests/Makefile | 4 + > tests/rtl8139-test.c | 10 +-- > tests/test-throttle.c | 8 +- > tests/test-timed-average.c | 89 ++++++++++++++++++ > tests/wdt_ib700-test.c | 15 ++-- > util/Makefile.objs | 1 + > util/throttle.c | 4 +- > util/timed-average.c | 208 +++++++++++++++++++++++++++++++++++++= ++++++ > 15 files changed, 382 insertions(+), 27 deletions(-) > create mode 100644 include/qemu/timed-average.h > create mode 100644 tests/test-timed-average.c > create mode 100644 util/timed-average.c Thanks, applied patches 1 & 2 to my block tree: https://github.com/stefanha/qemu/commits/block Patch 3 is going to be unused in QEMU 2.4 for I'm holding off on merging it. Please resend it together with the accounting series so it can be merged for QEMU 2.5. Thanks, Stefan --hQiwHBbRI9kgIhsi Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVjRbcAAoJEJykq7OBq3PIo2gIAI5nLu2kCdTB/LIIU/kkulZL wkgOHmcPpQXDfsj4+s4kVBhnDuhu/z/oihyM2ed5j3uoT77yejA7oi1KV9poDyJw F7VubJG2x6TqFP9ARTR2+GYM+vE8+f2Gic6nb6yTngrRWYsQl6PBAmXbDW5HeBYl j25b4xGaGfNvvJzHw/n33FuKh9YAxs6fuVcFNteONxp5jZjhCTu3ObHa28Y+uV/H Pe2wvb0bveuco1XL7SNcwP2GtJpL2PB2X3cAYrhqsDD57MGfYIBTvCwfl77oeZs1 GaztRGEakGvqhLTFk0VnHgGb+iSyxEByECbFcosGCQhF0HDIX5HEls1bxjGtpI8= =OIGY -----END PGP SIGNATURE----- --hQiwHBbRI9kgIhsi--