void reset_all_stats(struct thread_data *td) { struct timeval tv; int i; reset_io_counters(td); for (i = 0; i < DDIR_RWDIR_CNT; i++) { td->io_bytes[i] = 0; td->io_blocks[i] = 0; td->io_issues[i] = 0; td->ts.total_io_u[i] = 0; td->ts.runtime[i] = 0; td->rwmix_issues = 0; } fio_gettime(&tv, NULL); memcpy(&td->epoch, &tv, sizeof(tv)); memcpy(&td->start, &tv, sizeof(tv)); lat_target_init(td); }
void lat_target_reset(struct thread_data *td) { if (!td->latency_end_run) lat_target_init(td); }