1 #ifndef FIO_STEADYSTATE_H
2 #define FIO_STEADYSTATE_H
4 extern void steadystate_check(void);
5 extern void steadystate_setup(void);
6 extern void steadystate_alloc(struct thread_data *);
7 extern bool steadystate_deviation(unsigned long, unsigned long, struct thread_data *);
8 extern bool steadystate_slope(unsigned long, unsigned long, struct thread_data *);
11 * For steady state detection
13 struct steadystate_data {
15 unsigned long long dur;
16 unsigned long long ramp_time;
17 bool (*evaluate)(unsigned long, unsigned long, struct thread_data *);
28 unsigned long *iops_data;
29 unsigned long *bw_data;
35 unsigned long long sum_y;
36 unsigned long long sum_x;
37 unsigned long long sum_x_sq;
38 unsigned long long sum_xy;
39 unsigned long long oldest_y;
41 struct timeval prev_time;
42 unsigned long long prev_iops;
43 unsigned long long prev_bytes;