X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Fbenchmark%2Ftest_rwlock.c;fp=tests%2Fbenchmark%2Ftest_rwlock.c;h=827c117eb9a7c792e09274fd8169de25b2580050;hp=f95e4e172bc40f3e233cc5d67c01ca6cdccd0f6f;hb=aae4fe1d704c7e366395750b60688cab83a7d6a9;hpb=b668fcf179b334345f3a01ffbfe988191c1d2df8 diff --git a/tests/benchmark/test_rwlock.c b/tests/benchmark/test_rwlock.c index f95e4e1..827c117 100644 --- a/tests/benchmark/test_rwlock.c +++ b/tests/benchmark/test_rwlock.c @@ -202,8 +202,9 @@ void *thr_reader(void *_count) } *count = URCU_TLS(nr_reads); - printf_verbose("thread_end %s, tid %lu\n", - "reader", urcu_get_thread_id()); + + printf_verbose("thread_end %s, tid %lu, count %llu\n", + "reader", urcu_get_thread_id(), *count); return ((void*)1); } @@ -248,10 +249,10 @@ void *thr_writer(void *_count) if (caa_unlikely(wdelay)) loop_sleep(wdelay); } - - printf_verbose("thread_end %s, tid %lu\n", - "writer", urcu_get_thread_id()); *count = URCU_TLS(nr_writes); + + printf_verbose("thread_end %s, tid %lu, count %llu\n", + "writer", urcu_get_thread_id(), *count); return ((void*)2); } @@ -345,6 +346,7 @@ int main(int argc, char **argv) printf_verbose("running test for %lu seconds, %u readers, %u writers.\n", duration, nr_readers, nr_writers); printf_verbose("Writer delay : %lu loops.\n", wdelay); + printf_verbose("Writer duration : %lu loops.\n", wduration); printf_verbose("Reader duration : %lu loops.\n", rduration); printf_verbose("thread %-6s, tid %lu\n", "main", urcu_get_thread_id());