Lines Matching refs:lat
291 struct io_latency *lat) in calc_latency() argument
298 if (delta > lat->max) in calc_latency()
299 lat->max = delta; in calc_latency()
300 if (!lat->min || delta < lat->min) in calc_latency()
301 lat->min = delta; in calc_latency()
302 lat->total_io++; in calc_latency()
303 lat->total_lat += delta; in calc_latency()
306 lat->deviations[i]++; in calc_latency()
429 static void print_lat(char *str, struct io_latency *lat) in print_lat() argument
431 double avg = lat->total_lat / lat->total_io; in print_lat()
435 str, lat->min, avg, lat->max); in print_lat()
438 fprintf(stderr, " %.0f < %d", lat->deviations[i], in print_lat()
440 total_counted += lat->deviations[i]; in print_lat()
442 if (total_counted && lat->total_io - total_counted) in print_lat()
443 fprintf(stderr, " < %.0f", lat->total_io - total_counted); in print_lat()
445 memset(lat, 0, sizeof(*lat)); in print_lat()
450 struct io_latency *lat = &t->io_submit_latency; in print_latency() local
451 print_lat("latency", lat); in print_latency()
456 struct io_latency *lat = &t->io_completion_latency; in print_completion_latency() local
457 print_lat("completion latency", lat); in print_completion_latency()