Re: [Qemu-devel] [PATCH v3 3/3] util: Infrastructure for computing recent averages

2014-10-13 Thread Benoît Canet
On Mon, Oct 13, 2014 at 02:05:34PM +0200, Paolo Bonzini wrote: > Il 24/09/2014 17:21, Benoît Canet ha scritto: > > The module takes care of computing minimal and maximal > > values over the time slice duration. > > The code looks good, just two comments: > > > +/* Get the average value > > + * >

Re: [Qemu-devel] [PATCH v3 3/3] util: Infrastructure for computing recent averages

2014-10-13 Thread Paolo Bonzini
Il 24/09/2014 17:21, Benoît Canet ha scritto: > The module takes care of computing minimal and maximal > values over the time slice duration. The code looks good, just two comments: > +/* Get the average value > + * > + * @ta: the timed average structure used > + * @ret: the average value > + */

[Qemu-devel] [PATCH v3 3/3] util: Infrastructure for computing recent averages

2014-09-24 Thread Benoît Canet
The module takes care of computing minimal and maximal values over the time slice duration. Suggested-by: Paolo Bonzini Signed-off-by: Benoît Canet --- include/qemu/timed-average.h | 60 + tests/Makefile | 2 + tests/test-timed-average.c | 89 ++