From 03bd7a41583472d8f9fd29159fe8a2e2db78f099 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Sat, 30 Jan 2016 15:10:42 -0500 Subject: [PATCH] regressions/ck_epoch: Change formatting. --- .../ck_epoch/validate/ck_epoch_synchronize.c | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/regressions/ck_epoch/validate/ck_epoch_synchronize.c b/regressions/ck_epoch/validate/ck_epoch_synchronize.c index e01e64f..a03a4f7 100644 --- a/regressions/ck_epoch/validate/ck_epoch_synchronize.c +++ b/regressions/ck_epoch/validate/ck_epoch_synchronize.c @@ -179,11 +179,6 @@ write_thread(void *unused CK_CC_UNUSED) while (ck_pr_load_uint(&readers) == 0) ck_pr_stall(); - if (tid == 0) { - fprintf(stderr, "\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b[W] %2.2f: %c", - (double)j / ITERATE_S, animate[i % strlen(animate)]); - } - for (i = 0; i < PAIRS_S; i++) { ck_epoch_begin(&record, NULL); s = ck_stack_pop_upmc(&stack); @@ -193,17 +188,15 @@ write_thread(void *unused CK_CC_UNUSED) if (i & 1) { ck_epoch_synchronize(&record); ck_epoch_reclaim(&record); + ck_epoch_call(&record, &e->epoch_entry, destructor); } else { ck_epoch_barrier(&record); + destructor(&e->epoch_entry); } - if (i & 1) { - ck_epoch_call(&record, &e->epoch_entry, destructor); - } else { - if (tid == 0 && i % 8192) - fprintf(stderr, "\b%c", animate[i % strlen(animate)]); - - destructor(&e->epoch_entry); + if (tid == 0 && (i % 16384) == 0) { + fprintf(stderr, "[W] %2.2f: %c\n", + (double)j / ITERATE_S, animate[i % strlen(animate)]); } } } @@ -211,7 +204,7 @@ write_thread(void *unused CK_CC_UNUSED) ck_epoch_synchronize(&record); if (tid == 0) { - fprintf(stderr, "\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b[W] Peak: %u (%2.2f%%)\n Reclamations: %lu\n\n", + fprintf(stderr, "[W] Peak: %u (%2.2f%%)\n Reclamations: %lu\n\n", record.n_peak, (double)record.n_peak / ((double)PAIRS_S * ITERATE_S) * 100, record.n_dispatch);