qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] Add infrastructure to compute timed averages
@ 2015-06-12 13:01 Alberto Garcia
  2015-06-12 13:01 ` [Qemu-devel] [PATCH 1/3] timer: Move NANOSECONDS_PER_SECONDS to timer.h Alberto Garcia
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Alberto Garcia @ 2015-06-12 13:01 UTC (permalink / raw)
  To: qemu-devel; +Cc: Paolo Bonzini, Alberto Garcia, qemu-block, Stefan Hajnoczi

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.

This is based on Benoît's code, originally written last year.

Regards,

Berto

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

 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

-- 
2.1.4

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-06-26  9:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-12 13:01 [Qemu-devel] [PATCH 0/3] Add infrastructure to compute timed averages Alberto Garcia
2015-06-12 13:01 ` [Qemu-devel] [PATCH 1/3] timer: Move NANOSECONDS_PER_SECONDS to timer.h Alberto Garcia
2015-06-12 13:01 ` [Qemu-devel] [PATCH 2/3] timer: Use a single definition of NSEC_PER_SEC for the whole codebase Alberto Garcia
2015-06-12 13:01 ` [Qemu-devel] [PATCH 3/3] util: Infrastructure for computing recent averages Alberto Garcia
2015-06-26  9:09 ` [Qemu-devel] [PATCH 0/3] Add infrastructure to compute timed averages Stefan Hajnoczi
2015-06-26  9:18   ` Alberto Garcia

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).