/* Only print this if some high and low priority stats were collected */
if (ts->clat_high_prio_stat[ddir].samples > 0 &&
- ts->clat_prio_stat[ddir].samples > 0)
+ ts->clat_low_prio_stat[ddir].samples > 0)
{
sprintf(prio_name, "high prio (%.2f%%) %s",
100. * (double) ts->clat_high_prio_stat[ddir].samples / (double) samples,
ts->percentile_precision, prio_name, out);
sprintf(prio_name, "low prio (%.2f%%) %s",
- 100. * (double) ts->clat_prio_stat[ddir].samples / (double) samples,
+ 100. * (double) ts->clat_low_prio_stat[ddir].samples / (double) samples,
name);
- show_clat_percentiles(ts->io_u_plat_prio[ddir],
- ts->clat_prio_stat[ddir].samples,
+ show_clat_percentiles(ts->io_u_plat_low_prio[ddir],
+ ts->clat_low_prio_stat[ddir].samples,
ts->percentile_list,
ts->percentile_precision, prio_name, out);
}
const char *high, *low;
if (ts->lat_percentiles) {
- high = "lat_prio";
+ high = "lat_high_prio";
low = "lat_low_prio";
} else {
- high = "clat_prio";
+ high = "clat_high_prio";
low = "clat_low_prio";
}
json_object_add_value_object(dir_object, high, tmp_object);
tmp_object = add_ddir_lat_json(ts, ts->clat_percentiles | ts->lat_percentiles,
- &ts->clat_prio_stat[ddir], ts->io_u_plat_prio[ddir]);
+ &ts->clat_low_prio_stat[ddir], ts->io_u_plat_low_prio[ddir]);
json_object_add_value_object(dir_object, low, tmp_object);
}
if (!dst->unified_rw_rep) {
sum_stat(&dst->clat_stat[l], &src->clat_stat[l], first, false);
sum_stat(&dst->clat_high_prio_stat[l], &src->clat_high_prio_stat[l], first, false);
- sum_stat(&dst->clat_prio_stat[l], &src->clat_prio_stat[l], first, false);
+ sum_stat(&dst->clat_low_prio_stat[l], &src->clat_low_prio_stat[l], first, false);
sum_stat(&dst->slat_stat[l], &src->slat_stat[l], first, false);
sum_stat(&dst->lat_stat[l], &src->lat_stat[l], first, false);
sum_stat(&dst->bw_stat[l], &src->bw_stat[l], first, true);
} else {
sum_stat(&dst->clat_stat[0], &src->clat_stat[l], first, false);
sum_stat(&dst->clat_high_prio_stat[l], &src->clat_high_prio_stat[l], first, false);
- sum_stat(&dst->clat_prio_stat[l], &src->clat_prio_stat[l], first, false);
+ sum_stat(&dst->clat_low_prio_stat[l], &src->clat_low_prio_stat[l], first, false);
sum_stat(&dst->slat_stat[0], &src->slat_stat[l], first, false);
sum_stat(&dst->lat_stat[0], &src->lat_stat[l], first, false);
sum_stat(&dst->bw_stat[0], &src->bw_stat[l], first, true);
for (m = 0; m < FIO_IO_U_PLAT_NR; m++) {
if (!dst->unified_rw_rep) {
dst->io_u_plat_high_prio[k][m] += src->io_u_plat_high_prio[k][m];
- dst->io_u_plat_prio[k][m] += src->io_u_plat_prio[k][m];
+ dst->io_u_plat_low_prio[k][m] += src->io_u_plat_low_prio[k][m];
} else {
dst->io_u_plat_high_prio[0][m] += src->io_u_plat_high_prio[k][m];
- dst->io_u_plat_prio[0][m] += src->io_u_plat_prio[k][m];
+ dst->io_u_plat_low_prio[0][m] += src->io_u_plat_low_prio[k][m];
}
}
ts->bw_stat[j].min_val = -1UL;
ts->iops_stat[j].min_val = -1UL;
ts->clat_high_prio_stat[j].min_val = -1UL;
- ts->clat_prio_stat[j].min_val = -1UL;
+ ts->clat_low_prio_stat[j].min_val = -1UL;
}
ts->sync_stat.min_val = -1UL;
ts->groupid = -1;
for (i = 0; i < DDIR_RWDIR_CNT; i++) {
reset_io_stat(&ts->clat_high_prio_stat[i]);
- reset_io_stat(&ts->clat_prio_stat[i]);
+ reset_io_stat(&ts->clat_low_prio_stat[i]);
reset_io_stat(&ts->clat_stat[i]);
reset_io_stat(&ts->slat_stat[i]);
reset_io_stat(&ts->lat_stat[i]);
for (j = 0; j < FIO_IO_U_PLAT_NR; j++) {
ts->io_u_plat_high_prio[i][j] = 0;
- ts->io_u_plat_prio[i][j] = 0;
+ ts->io_u_plat_low_prio[i][j] = 0;
if (!i)
ts->io_u_sync_plat[j] = 0;
}
add_lat_percentile_sample_noprio(ts, nsec, ddir, lat);
if (!priority_bit)
- ts->io_u_plat_prio[ddir][idx]++;
+ ts->io_u_plat_low_prio[ddir][idx]++;
else
ts->io_u_plat_high_prio[ddir][idx]++;
}
if (priority_bit)
add_stat_sample(&ts->clat_high_prio_stat[ddir], nsec);
else
- add_stat_sample(&ts->clat_prio_stat[ddir], nsec);
+ add_stat_sample(&ts->clat_low_prio_stat[ddir], nsec);
}
if (td->clat_log)
if (priority_bit)
add_stat_sample(&ts->clat_high_prio_stat[ddir], nsec);
else
- add_stat_sample(&ts->clat_prio_stat[ddir], nsec);
+ add_stat_sample(&ts->clat_low_prio_stat[ddir], nsec);
}
if (needs_lock)