steadystate: get rid of ->ss_pct and encode this information in ->state via __FIO_SS_PCT
[fio.git] / steadystate.h
index 43670c12b0bb50394431b5d3bacdb4a2d1b80989..a23c45ba9efff266891eaecbe5c050d888e471e1 100644 (file)
@@ -5,7 +5,7 @@
 
 extern void steadystate_check(void);
 extern void steadystate_setup(void);
-extern void td_steadystate_init(struct thread_data *);
+extern int td_steadystate_init(struct thread_data *);
 
 extern bool steadystate_enabled;
 
@@ -16,7 +16,6 @@ struct steadystate_data {
        double limit;
        unsigned long long dur;
        unsigned long long ramp_time;
-       bool pct;
 
        unsigned int state;
 
@@ -46,7 +45,8 @@ enum {
        __FIO_SS_SLOPE          = 4,
        __FIO_SS_ATTAINED       = 8,
        __FIO_SS_RAMP_OVER      = 16,
-       __FIO_SS_LAST           = 32,
+       __FIO_SS_DATA           = 32,
+       __FIO_SS_PCT            = 64,
 
        FIO_SS_IOPS             = __FIO_SS_IOPS,
        FIO_SS_IOPS_SLOPE       = __FIO_SS_IOPS | __FIO_SS_SLOPE,