Lines Matching refs:asp
83 void __dump_stats(__u64 stamp, int all, struct d_info *dip, struct stats_t *asp) in __dump_stats() argument
144 if (asp) { in __dump_stats()
147 asp->n += 1.0; in __dump_stats()
149 asp->rqm_s[i] += ((double)sp->rqm[i] / dt); in __dump_stats()
150 asp->ios_s[i] += ((double)sp->ios[i] / dt); in __dump_stats()
151 asp->sec_s[i] += ((double)sp->sec[i] / dt); in __dump_stats()
153 asp->avgrq_sz += avgrq_sz; in __dump_stats()
154 asp->avgqu_sz += (double)sp->tot_qusz / dt; in __dump_stats()
155 asp->await += await; in __dump_stats()
156 asp->svctm += svctm; in __dump_stats()
157 asp->p_util += p_util; in __dump_stats()
161 static void __dump_stats_t(__u64 stamp, struct stats_t *asp, int all) in __dump_stats_t() argument
163 if (asp->n < 2.0) return; // What's the point? in __dump_stats_t()
166 fprintf(iostat_ofp, "%8.2lf ", asp->rqm_s[0]); in __dump_stats_t()
167 fprintf(iostat_ofp, "%8.2lf ", asp->rqm_s[1]); in __dump_stats_t()
168 fprintf(iostat_ofp, "%7.2lf ", asp->ios_s[0]); in __dump_stats_t()
169 fprintf(iostat_ofp, "%7.2lf ", asp->ios_s[1]); in __dump_stats_t()
170 fprintf(iostat_ofp, "%9.2lf ", asp->sec_s[0]); in __dump_stats_t()
171 fprintf(iostat_ofp, "%9.2lf ", asp->sec_s[1]); in __dump_stats_t()
172 fprintf(iostat_ofp, "%9.2lf ", asp->sec_s[0] / 2.0); in __dump_stats_t()
173 fprintf(iostat_ofp, "%9.2lf ", asp->sec_s[1] / 2.0); in __dump_stats_t()
174 fprintf(iostat_ofp, "%8.2lf ", asp->avgrq_sz / asp->n); in __dump_stats_t()
175 fprintf(iostat_ofp, "%8.2lf ", asp->avgqu_sz / asp->n); in __dump_stats_t()
176 fprintf(iostat_ofp, "%7.2lf ", asp->await / asp->n); in __dump_stats_t()
177 fprintf(iostat_ofp, "%7.2lf ", asp->svctm / asp->n); in __dump_stats_t()
178 fprintf(iostat_ofp, "%6.2lf", asp->p_util / asp->n); in __dump_stats_t()