4 #include <sys/socket.h>
6 #include <netinet/in.h>
14 struct flist_head list;
15 struct flist_head hash_list;
16 struct flist_head arg_list;
18 struct sockaddr_in addr;
19 struct sockaddr_in6 addr6;
20 struct sockaddr_un addr_un;
38 struct flist_head eta_list;
39 struct client_eta *eta_in_flight;
41 struct flist_head cmd_list;
47 typedef void (*client_text_op_func)(struct fio_client *client,
48 FILE *f, __u16 pdu_len, const char *buf);
50 typedef void (*client_disk_util_op_func)(struct fio_client *client, struct fio_net_cmd *cmd);
52 typedef void (*client_thread_status_op)(struct fio_net_cmd *cmd);
54 typedef void (*client_group_stats_op)(struct fio_net_cmd *cmd);
56 typedef void (*client_eta_op)(struct fio_client *client, struct fio_net_cmd *cmd);
58 typedef void (*client_probe_op)(struct fio_client *client, struct fio_net_cmd *cmd);
60 typedef void (*client_thread_status_display_op)(char *status_message, double perc);
63 client_text_op_func text_op;
64 client_disk_util_op_func disk_util;
65 client_thread_status_op thread_status;
66 client_group_stats_op group_stats;
68 client_probe_op probe;
71 extern struct client_ops fio_client_ops;
78 extern int fio_handle_client(struct fio_client *, struct client_ops *ops);
79 extern void fio_client_dec_jobs_eta(struct client_eta *eta, void (*fn)(struct jobs_eta *));
80 extern void fio_client_sum_jobs_eta(struct jobs_eta *dst, struct jobs_eta *je);
81 extern void fio_client_convert_jobs_eta(struct jobs_eta *je);