Client / server code for handling histograms. The server:
authorKarl Cronburg <kcronbur@redhat.com>
Wed, 24 Aug 2016 20:12:20 +0000 (16:12 -0400)
committerKarl Cronburg <kcronbur@redhat.com>
Fri, 26 Aug 2016 15:00:04 +0000 (11:00 -0400)
commit868f6f030dba742d1f7382edc8877e36b478befc
tree98d84e827f5885f7c2c96b1843fa5d4f61b979e0
parent04d6530f6ecd50520e99732b0b6bb90f71ff131a
Client / server code for handling histograms. The server:

- Deals with subtracting consecutive histograms so that client
  doesn't have to recreate linked list.
- Uses existing IOLOG command code to create packets, checking
  for IO_LOG_TYPE_HIST when necessary.

And the client:

- Reconstructs the pointers to the histogram bins from the packet
  format, namely (sample_0, hist_0, sample_1, hist_1, ...) in lieu
  of the current (sample_0, sample_1, ...) format used for the (void *)
  cur_log->samples.
- Flushes histograms to file with updated pointer calculation to get
  ith sample, disabling subtraction in hist_sum() using a null
  pointer.

This does not cover plain-text transmission mode (i.e. when zlib is
not present during fio compilation).

Signed-off-by: Karl Cronburg <kcronbur@redhat.com>
client.c
init.c
iolog.c
iolog.h
server.c
server.h