+ /*
+ * Entries already logged
+ */
+ uint64_t nr_samples;
+ uint64_t max_samples;
+ void *log;
+
+ char *filename;
+
+ struct thread_data *td;
+
+ unsigned int log_type;
+
+ /*
+ * If we fail extending the log, stop collecting more entries.
+ */
+ unsigned int disabled;
+
+ /*
+ * Log offsets
+ */
+ unsigned int log_offset;
+
+ /*
+ * Max size of log entries before a chunk is compressed
+ */
+ unsigned int log_gz;
+
+ /*
+ * Windowed average, for logging single entries average over some
+ * period of time.
+ */
+ struct io_stat avg_window[DDIR_RWDIR_CNT];
+ unsigned long avg_msec;
+ unsigned long avg_last;
+
+ pthread_mutex_t chunk_lock;
+ unsigned int chunk_seq;
+ struct flist_head chunk_list;