X-Git-Url: http://akaros.cs.berkeley.edu/gitweb/?p=akaros.git;a=blobdiff_plain;f=user%2Fbenchutil%2Fmeasure.c;h=d44ef4a193d65d0a721b8d8dd4230477c8f93477;hp=0355e8717ab56dd443d5f542e0a5f9e62043f3fd;hb=eabdd9e43d44aa9bef12210f0f9b1dfd32963142;hpb=dd7547b8fc546ca65169707fd23277b2931782a0 diff --git a/user/benchutil/measure.c b/user/benchutil/measure.c index 0355e87..d44ef4a 100644 --- a/user/benchutil/measure.c +++ b/user/benchutil/measure.c @@ -7,13 +7,14 @@ * For now, this is built into parlib. We can pull it out in the future. Many * of the larger functions are in flux. */ -#include -#include #include #include #include #include +#ifdef __ros__ +#include #include +#endif /* __ros__ */ /* Basic stats computation and printing. * @@ -69,7 +70,7 @@ void compute_stats(void **data, int nr_i, int nr_j, struct sample_stats *stats) } } if (stats->total_samples < 2) { - printf("Not enough samples (%d) for avg and var\n", + printf("Not enough samples (%llu) for avg and var\n", stats->total_samples); return; } @@ -192,7 +193,7 @@ void compute_stats(void **data, int nr_i, int nr_j, struct sample_stats *stats) if (coef_var > HI_COEF_VAR) printf("\tHigh coeff of var with serious outliers, adjusted bins\n"); /* numbers are overestimates by at most a lat bin */ - printf("50/75/90/99: %d / %d / %d / %d (-<%d)\n", stats->lat_50, + printf("50/75/90/99: %d / %d / %d / %d (-<%ld)\n", stats->lat_50, stats->lat_75, stats->lat_90, stats->lat_99, lat_bin_sz); printf("Min / Max : %llu / %llu\n", stats->min_time, stats->max_time); printf("\n");