@@ -625,24 +625,30 @@ static bool show_lat(double *io_u_lat, int nr, const char **ranges,
625625
626626static void show_lat_n (double * io_u_lat_n , struct buf_output * out )
627627{
628- const char * ranges [] = { "2=" , "4=" , "10=" , "20=" , "50=" , "100=" ,
629- "250=" , "500=" , "750=" , "1000=" , };
628+ const char * ranges [] = { "2=" , "3=" , "4=" , "6=" , "8=" , "10=" ,
629+ "15=" , "20=" , "35=" , "50=" , "75=" , "100=" ,
630+ "175=" , "250=" , "375=" , "500=" ,
631+ "625=" , "750=" , "875=" , "1000=" , };
630632
631633 show_lat (io_u_lat_n , FIO_IO_U_LAT_N_NR , ranges , "nsec" , out );
632634}
633635
634636static void show_lat_u (double * io_u_lat_u , struct buf_output * out )
635637{
636- const char * ranges [] = { "2=" , "4=" , "10=" , "20=" , "50=" , "100=" ,
637- "250=" , "500=" , "750=" , "1000=" , };
638+ const char * ranges [] = { "2=" , "3=" , "4=" , "6=" , "8=" , "10=" ,
639+ "15=" , "20=" , "35=" , "50=" , "75=" , "100=" ,
640+ "175=" , "250=" , "375=" , "500=" ,
641+ "625=" , "750=" , "875=" , "1000=" , };
638642
639643 show_lat (io_u_lat_u , FIO_IO_U_LAT_U_NR , ranges , "usec" , out );
640644}
641645
642646static void show_lat_m (double * io_u_lat_m , struct buf_output * out )
643647{
644- const char * ranges [] = { "2=" , "4=" , "10=" , "20=" , "50=" , "100=" ,
645- "250=" , "500=" , "750=" , "1000=" , "2000=" ,
648+ const char * ranges [] = { "2=" , "3=" , "4=" , "6=" , "8=" , "10=" ,
649+ "15=" , "20=" , "35=" , "50=" , "75=" , "100=" ,
650+ "175=" , "250=" , "375=" , "500=" ,
651+ "625=" , "750=" , "875=" , "1000=" , "2000=" ,
646652 ">=2000=" , };
647653
648654 show_lat (io_u_lat_m , FIO_IO_U_LAT_M_NR , ranges , "msec" , out );
@@ -1620,24 +1626,30 @@ static struct json_object *show_thread_status_json(struct thread_stat *ts,
16201626 tmp = json_create_object ();
16211627 json_object_add_value_object (root , "latency_ns" , tmp );
16221628 for (i = 0 ; i < FIO_IO_U_LAT_N_NR ; i ++ ) {
1623- const char * ranges [] = { "2" , "4" , "10" , "20" , "50" , "100" ,
1624- "250" , "500" , "750" , "1000" , };
1629+ const char * ranges [] = { "2=" , "3=" , "4=" , "6=" , "8=" , "10=" ,
1630+ "15=" , "20=" , "35=" , "50=" , "75=" , "100=" ,
1631+ "175=" , "250=" , "375=" , "500=" ,
1632+ "625=" , "750=" , "875=" , "1000=" , };
16251633 json_object_add_value_float (tmp , ranges [i ], io_u_lat_n [i ]);
16261634 }
16271635 /* Microsecond latency */
16281636 tmp = json_create_object ();
16291637 json_object_add_value_object (root , "latency_us" , tmp );
16301638 for (i = 0 ; i < FIO_IO_U_LAT_U_NR ; i ++ ) {
1631- const char * ranges [] = { "2" , "4" , "10" , "20" , "50" , "100" ,
1632- "250" , "500" , "750" , "1000" , };
1639+ const char * ranges [] = { "2=" , "3=" , "4=" , "6=" , "8=" , "10=" ,
1640+ "15=" , "20=" , "35=" , "50=" , "75=" , "100=" ,
1641+ "175=" , "250=" , "375=" , "500=" ,
1642+ "625=" , "750=" , "875=" , "1000=" , };
16331643 json_object_add_value_float (tmp , ranges [i ], io_u_lat_u [i ]);
16341644 }
16351645 /* Millisecond latency */
16361646 tmp = json_create_object ();
16371647 json_object_add_value_object (root , "latency_ms" , tmp );
16381648 for (i = 0 ; i < FIO_IO_U_LAT_M_NR ; i ++ ) {
1639- const char * ranges [] = { "2" , "4" , "10" , "20" , "50" , "100" ,
1640- "250" , "500" , "750" , "1000" , "2000" ,
1649+ const char * ranges [] = { "2=" , "3=" , "4=" , "6=" , "8=" , "10=" ,
1650+ "15=" , "20=" , "35=" , "50=" , "75=" , "100=" ,
1651+ "175=" , "250=" , "375=" , "500=" ,
1652+ "625=" , "750=" , "875=" , "1000=" , "2000" ,
16411653 ">=2000" , };
16421654 json_object_add_value_float (tmp , ranges [i ], io_u_lat_m [i ]);
16431655 }
0 commit comments