[Spice-devel] [PATCH 0/4] Improvements for statistic code

Frediano Ziglio fziglio at redhat.com
Wed Dec 2 03:43:06 PST 2015


This is my updated patchset for statistic functions.

First two patches are just fixes. Second is quite important
as make compression statistics work again.

Third is a way to reduce preprocessor usage and reduce the
need to compile with different options to get statistics
right.
Fourth is a test for third patch.

Frediano Ziglio (4):
  stat: fix portability problem in stat_time_t declaration
  stat: fix stat_into_t initialization
  stat: use a better design for statistic functions
  stat: add test for statistic functions

 server/dcc.c             | 31 +++++++-----------
 server/display-channel.c | 47 ++++++++++-----------------
 server/display-channel.h |  4 +--
 server/stat.h            | 56 ++++++++++++++++++++------------
 server/tests/.gitignore  |  5 +++
 server/tests/Makefile.am | 35 ++++++++++++++++++++
 server/tests/stat-main.c | 49 ++++++++++++++++++++++++++++
 server/tests/stat-test.c | 83 ++++++++++++++++++++++++++++++++++++++++++++++++
 8 files changed, 237 insertions(+), 73 deletions(-)
 create mode 100644 server/tests/stat-main.c
 create mode 100644 server/tests/stat-test.c

-- 
2.4.3



More information about the Spice-devel mailing list