5 * Use for maintaining statistics
10 unsigned long samples;
17 * A single data sample
27 * Dynamically growing data sample log
30 unsigned long nr_samples;
31 unsigned long max_samples;
32 struct io_sample *log;
42 * When logging io actions, this matches a single sent io_u
46 struct rb_node rb_node;
47 struct flist_head list;
49 struct flist_head trim_list;
52 struct fio_file *file;
54 unsigned long long offset;
60 unsigned int file_action;
74 extern int __must_check read_iolog_get(struct thread_data *, struct io_u *);
75 extern void log_io_u(struct thread_data *, struct io_u *);
76 extern void log_file(struct thread_data *, struct fio_file *, enum file_log_act);
77 extern int __must_check init_iolog(struct thread_data *td);
78 extern void log_io_piece(struct thread_data *, struct io_u *);
79 extern void queue_io_piece(struct thread_data *, struct io_piece *);
80 extern void prune_io_piece_log(struct thread_data *);
81 extern void write_iolog_close(struct thread_data *);
86 extern void add_lat_sample(struct thread_data *, enum fio_ddir, unsigned long,
88 extern void add_clat_sample(struct thread_data *, enum fio_ddir, unsigned long,
90 extern void add_slat_sample(struct thread_data *, enum fio_ddir, unsigned long,
92 extern void add_bw_sample(struct thread_data *, enum fio_ddir, unsigned int,
94 extern void show_run_stats(void);
95 extern void init_disk_util(struct thread_data *);
96 extern void update_rusage_stat(struct thread_data *);
97 extern void update_io_ticks(void);
98 extern void setup_log(struct io_log **);
99 extern void finish_log(struct thread_data *, struct io_log *, const char *);
100 extern void finish_log_named(struct thread_data *, struct io_log *, const char *, const char *);
101 extern void __finish_log(struct io_log *, const char *);
102 extern struct io_log *agg_io_log[2];
103 extern int write_bw_log;
104 extern void add_agg_sample(unsigned long, enum fio_ddir, unsigned int);
106 static inline void init_ipo(struct io_piece *ipo)
108 memset(ipo, 0, sizeof(*ipo));
109 INIT_FLIST_HEAD(&ipo->trim_list);