X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=gfio.h;h=c0427687dfc17c7af5435cfa2db8a0f5b92c0592;hp=dd4ee3d8833f2c4745b31f15104941ef4893dfec;hb=d31e26d0a575f91db96bda4d76b36fe38996d5f8;hpb=b98ab718031a25ecfd3fa64df3f9992baa83b5ac diff --git a/gfio.h b/gfio.h index dd4ee3d8..c0427687 100644 --- a/gfio.h +++ b/gfio.h @@ -3,9 +3,11 @@ #include +#include "gcompat.h" #include "stat.h" #include "thread_options.h" #include "ghelpers.h" +#include "graph.h" struct probe_widget { GtkWidget *hostname; @@ -37,7 +39,11 @@ struct gfio_graphs { #define DRAWING_AREA_YDIM 400 GtkWidget *drawing_area; struct graph *iops_graph; + graph_label_t read_iops; + graph_label_t write_iops; struct graph *bandwidth_graph; + graph_label_t read_bw; + graph_label_t write_bw; }; /* @@ -131,21 +137,31 @@ struct end_results { struct thread_stat ts; }; +struct gfio_client_options { + struct flist_head list; + struct thread_options o; +}; + struct gfio_client { struct gui_entry *ge; struct fio_client *client; GtkWidget *err_entry; - struct thread_options o; + uint32_t client_cpus; + uint64_t client_flags; + + struct flist_head o_list; + unsigned int o_list_nr; struct end_results *results; unsigned int nr_results; + uint32_t update_job_status; + volatile uint32_t update_job_done; + struct cmd_du_pdu *du; unsigned int nr_du; }; -#define ARRAYSIZE(x) (sizeof((x)) / (sizeof((x)[0]))) - #define GFIO_MIME "text/fio" extern void gfio_view_log(struct gui *ui);