We use two different ones, depending on gz or not...
Signed-off-by: Jens Axboe <axboe@fb.com>
l = calloc(1, sizeof(*l));
l->nr_samples = 0;
- l->max_samples = 1024;
+ l->max_samples = DEF_LOG_ENTRIES;
l->log_type = p->log_type;
l->log_offset = p->log_offset;
l->log_gz = p->log_gz;
data->nr_samples = log->nr_samples;
log->nr_samples = 0;
- log->max_samples = 128;
+ log->max_samples = DEF_LOG_ENTRIES;
log->log = malloc(log->max_samples * log_entry_sz(log));
if (!wait)
IO_LOG_TYPE_IOPS,
};
+#define DEF_LOG_ENTRIES 1024
+
/*
* Dynamically growing data sample log
*/