Home | History | Annotate | Download | only in btt

Lines Matching refs:asp

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