By default (if -g is not specified), of_max is zero. Don't print histogram overflow instances in that case. Signed-off-by: Bhavesh Davda <bhavesh@xxxxxxxxxx> --- src/cyclictest/cyclictest.c | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c index b27f7dc..74c56a6 100644 --- a/src/cyclictest/cyclictest.c +++ b/src/cyclictest/cyclictest.c @@ -1476,14 +1476,16 @@ static void print_hist(struct thread_param *par[], int nthreads) printf(" %05lu", alloverflows); printf("\n"); - printf("# Histogram Overflow: time (sec), thread\n"); - for (i = 0; i < nthreads; i++) { - for (j = 0; j < par[i]->stats->num_outliers; j++) { - struct timespec diff; - diff.tv_sec = par[i]->stats->outliers[j].tv_sec - test_start.tv_sec; - diff.tv_nsec = par[i]->stats->outliers[j].tv_nsec - test_start.tv_nsec; - tsnorm2(&diff); - printf("%ld.%09ld %d\n", diff.tv_sec, diff.tv_nsec, i); + if (of_max > 0) { + printf("# Histogram Overflow: time (sec), thread\n"); + for (i = 0; i < nthreads; i++) { + for (j = 0; j < par[i]->stats->num_outliers; j++) { + struct timespec diff; + diff.tv_sec = par[i]->stats->outliers[j].tv_sec - test_start.tv_sec; + diff.tv_nsec = par[i]->stats->outliers[j].tv_nsec - test_start.tv_nsec; + tsnorm2(&diff); + printf("%ld.%09ld %d\n", diff.tv_sec, diff.tv_nsec, i); + } } } } -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html