init: disable percentiles when latency gathering is disabled
authorSitsofe Wheeler <sitsofe@yahoo.com>
Sun, 31 Dec 2017 12:42:59 +0000 (12:42 +0000)
committerSitsofe Wheeler <sitsofe@yahoo.com>
Sun, 31 Dec 2017 12:59:39 +0000 (12:59 +0000)
When disable_clat/disable_lat is set also disable the corresponding
clat_percentiles/lat_percentiles option.

Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
init.c

diff --git a/init.c b/init.c
index f7d79c1c8a210b0eb5530602b881f18178eccffb..decd3b4e051c3c3cffdd4e66fa39bb37243da5df 100644 (file)
--- a/init.c
+++ b/init.c
@@ -938,6 +938,11 @@ static int fixup_options(struct thread_data *td)
                ret = 1;
        }
 
                ret = 1;
        }
 
+       if (o->disable_lat)
+               o->lat_percentiles = 0;
+       if (o->disable_clat)
+               o->clat_percentiles = 0;
+
        /*
         * Fix these up to be nsec internally
         */
        /*
         * Fix these up to be nsec internally
         */