X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=server.h;h=5c720d46285166107fbad514b9e6b53d7f8b4961;hb=c78997bf625ffcca49c18e11ab0f5448b26d7452;hp=c17c3bb571ae05839e4160656009d87ad29b6365;hpb=68cebb4b496f2d25a399070bee11294364781a25;p=fio.git diff --git a/server.h b/server.h index c17c3bb5..5c720d46 100644 --- a/server.h +++ b/server.h @@ -12,6 +12,17 @@ #define FIO_NET_PORT 8765 +struct sk_out { + unsigned int refs; /* frees sk_out when it drops to zero. + * protected by below ->lock */ + + int sk; /* socket fd to talk to client */ + struct fio_mutex lock; /* protects ref and below list */ + struct flist_head list; /* list of pending transmit work */ + struct fio_mutex wait; /* wake backend when items added to list */ + struct fio_mutex xmit; /* held while sending data */ +}; + /* * On-wire encoding is little endian */ @@ -38,7 +49,7 @@ struct fio_net_cmd_reply { }; enum { - FIO_SERVER_VER = 55, + FIO_SERVER_VER = 61, FIO_SERVER_MAX_FRAGMENT_PDU = 1024, FIO_SERVER_MAX_CMD_MB = 2048, @@ -183,6 +194,7 @@ struct cmd_iolog_pdu { uint32_t log_type; uint32_t compressed; uint32_t log_offset; + uint32_t log_hist_coarseness; uint8_t name[FIO_NET_NAME_MAX]; struct io_sample samples[0]; };