4 #include <sys/socket.h>
6 #include <netinet/in.h>
15 struct flist_head list;
16 struct flist_head hash_list;
17 struct flist_head arg_list;
19 struct sockaddr_in addr;
20 struct sockaddr_in6 addr6;
21 struct sockaddr_un addr_un;
40 struct flist_head eta_list;
41 struct client_eta *eta_in_flight;
43 struct flist_head cmd_list;
48 struct client_ops *ops;
52 typedef void (*client_text_op_func)(struct fio_client *client, struct fio_net_cmd *cmd);
53 typedef void (*client_disk_util_op_func)(struct fio_client *client, struct fio_net_cmd *cmd);
54 typedef void (*client_thread_status_op)(struct fio_client *client, struct fio_net_cmd *cmd);
55 typedef void (*client_group_stats_op)(struct fio_client *client, struct fio_net_cmd *cmd);
56 typedef void (*client_eta_op)(struct jobs_eta *je);
57 typedef void (*client_probe_op)(struct fio_client *client, struct fio_net_cmd *cmd);
58 typedef void (*client_thread_status_display_op)(char *status_message, double perc);
59 typedef void (*client_quit_op)(struct fio_client *);
60 typedef void (*client_add_job_op)(struct fio_client *, struct fio_net_cmd *);
61 typedef void (*client_timed_out)(struct fio_client *);
64 client_text_op_func text_op;
65 client_disk_util_op_func disk_util;
66 client_thread_status_op thread_status;
67 client_group_stats_op group_stats;
69 client_probe_op probe;
71 client_add_job_op add_job;
72 client_timed_out timed_out;
76 extern struct client_ops fio_client_ops;
83 extern int fio_handle_client(struct fio_client *);
84 extern void fio_client_dec_jobs_eta(struct client_eta *eta, client_eta_op fn);
85 extern void fio_client_sum_jobs_eta(struct jobs_eta *dst, struct jobs_eta *je);
93 extern int fio_clients_connect(void);
94 extern int fio_clients_send_ini(const char *);
95 extern int fio_handle_clients(struct client_ops *);
96 extern int fio_client_add(struct client_ops *, const char *, void **);
97 extern struct fio_client *fio_client_add_explicit(struct client_ops *, const char *, int, int);
98 extern void fio_client_add_cmd_option(void *, const char *);
99 extern void fio_clients_terminate(void);