This is present in add_bw/iops/lat_sample but absent from show_thread_status. Not certain if this is really necessary.
if (utime_since(&td->epoch, &now) >= (ss->ramp_time + 1000000L))
ss->ramp_time_over = 1;
if (utime_since(&td->epoch, &now) >= (ss->ramp_time + 1000000L))
ss->ramp_time_over = 1;
for (ddir = DDIR_READ; ddir < DDIR_RWDIR_CNT; ddir++) {
td_iops += td->io_blocks[ddir];
td_bytes += td->io_bytes[ddir];
}
for (ddir = DDIR_READ; ddir < DDIR_RWDIR_CNT; ddir++) {
td_iops += td->io_blocks[ddir];
td_bytes += td->io_bytes[ddir];
}
rate_time = mtime_since(&ss->prev_time, &now);
memcpy(&ss->prev_time, &now, sizeof(now));
rate_time = mtime_since(&ss->prev_time, &now);
memcpy(&ss->prev_time, &now, sizeof(now));