Searched refs:rsip (Results 1 – 1 of 1) sorted by relevance
/external/blktrace/btt/ |
D | rstats.c | 54 static int init_rsip(struct rstat *rsip, struct d_info *dip) in init_rsip() argument 58 rsip->base_sec = -1; in init_rsip() 59 rsip->ios = rsip->nblks = 0; in init_rsip() 60 if (do_open(&rsip->files[0], nm, "iops_fp") || in init_rsip() 61 do_open(&rsip->files[1], nm, "mbps_fp")) in init_rsip() 64 list_add_tail(&rsip->head, &rstats); in init_rsip() 68 static void rstat_emit(struct rstat *rsip, double cur) in rstat_emit() argument 75 fprintf(rsip->files[0].fp, "%lld %llu\n", rsip->base_sec, rsip->ios); in rstat_emit() 80 mbps = ((double)rsip->nblks * 512.0) / (1024.0 * 1024.0); in rstat_emit() 81 fprintf(rsip->files[1].fp, "%lld %lf\n", rsip->base_sec, mbps); in rstat_emit() [all …]
|