Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
ts->slat_stat[j].min_val = -1UL;
ts->bw_stat[j].min_val = -1UL;
}
ts->slat_stat[j].min_val = -1UL;
ts->bw_stat[j].min_val = -1UL;
}
}
j = 0;
last_ts = -1;
idx = 0;
for_each_td(td, i) {
}
j = 0;
last_ts = -1;
idx = 0;
for_each_td(td, i) {
+ if (idx && (!td->group_reporting ||
+ (td->group_reporting && last_ts != td->groupid))) {
+ idx = 0;
+ j++;
+ }
+
+ last_ts = td->groupid;
+
ts = &threadstats[j];
idx++;
ts->members++;
ts = &threadstats[j];
idx++;
ts->members++;
+ if (ts->groupid == -1) {
/*
* These are per-group shared already
*/
/*
* These are per-group shared already
*/
ts->total_io_u[k] += td->ts.total_io_u[k];
ts->total_run_time += td->ts.total_run_time;
ts->total_io_u[k] += td->ts.total_io_u[k];
ts->total_run_time += td->ts.total_run_time;
-
- if (!td->group_reporting) {
- idx = 0;
- j++;
- continue;
- }
- if (last_ts == td->groupid)
- continue;
-
- if (last_ts != -1) {
- idx = 0;
- j++;
- }
-
- last_ts = td->groupid;
}
for (i = 0; i < nr_ts; i++) {
}
for (i = 0; i < nr_ts; i++) {