From: "Benoît Canet" <benoit.canet@nodalink.com>
To: qemu-devel@nongnu.org
Cc: kwolf@redhat.com, armbru@redhat.com, stefanha@redhat.com,
"Benoît Canet" <benoit.canet@nodalink.com>
Subject: [Qemu-devel] [PATCH 0/2] Add the infrastructure that will be used to compute I/O accouting averages
Date: Fri, 5 Sep 2014 16:21:36 +0200 [thread overview]
Message-ID: <1409926898-1737-1-git-send-email-benoit.canet@nodalink.com> (raw)
Tiny module of code to maintain and compute timed average on a given period.
It comes with unit tests so we are sure the code will not bitrot while waiting
for the accouting code to use it.
Best regards
Benoît
Benoît 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
--
2.1.0
next reply other threads:[~2014-09-05 14:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-05 14:21 Benoît Canet [this message]
2014-09-05 14:21 ` [Qemu-devel] [PATCH 1/2] timers: Move NANOSECONDS_PER_SECONDS to timer.h for future reuse Benoît Canet
2014-09-05 14:31 ` Peter Maydell
2014-09-05 14:53 ` Benoît Canet
2014-09-05 14:21 ` [Qemu-devel] [PATCH 2/2] util: Add an utility infrastructure used to compute an average on a time slice Benoît Canet
2014-09-05 14:55 ` Eric Blake
2014-09-05 15:26 ` Benoît Canet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1409926898-1737-1-git-send-email-benoit.canet@nodalink.com \
--to=benoit.canet@nodalink.com \
--cc=armbru@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).