From: Mathieu Desnoyers Date: Fri, 12 Jun 2009 17:52:29 +0000 (-0400) Subject: Print reader duration X-Git-Tag: v0.1~163 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=900e541e6604a92bdf268074bb41ec6b6632d4eb;p=urcu.git Print reader duration Signed-off-by: Mathieu Desnoyers --- diff --git a/test_mutex.c b/test_mutex.c index 6fd1746..82d11c5 100644 --- a/test_mutex.c +++ b/test_mutex.c @@ -276,6 +276,7 @@ int main(int argc, char **argv) printf("running test for %lu seconds, %u readers, %u writers.\n", duration, nr_readers, nr_writers); printf("Writer delay : %u us.\n", wdelay); + printf("Reader duration : %lu loops.\n", rduration); printf("thread %-6s, thread id : %lx, tid %lu\n", "main", pthread_self(), (unsigned long)gettid()); diff --git a/test_perthreadlock.c b/test_perthreadlock.c index 0fc45d9..2c95590 100644 --- a/test_perthreadlock.c +++ b/test_perthreadlock.c @@ -285,6 +285,7 @@ int main(int argc, char **argv) printf("running test for %lu seconds, %u readers, %u writers.\n", duration, nr_readers, nr_writers); printf("Writer delay : %u us.\n", wdelay); + printf("Reader duration : %lu loops.\n", rduration); printf("thread %-6s, thread id : %lx, tid %lu\n", "main", pthread_self(), (unsigned long)gettid()); diff --git a/test_qsbr.c b/test_qsbr.c index 488c904..3529443 100644 --- a/test_qsbr.c +++ b/test_qsbr.c @@ -323,6 +323,7 @@ int main(int argc, char **argv) printf("running test for %lu seconds, %u readers, %u writers.\n", duration, nr_readers, nr_writers); printf("Writer delay : %u us.\n", wdelay); + printf("Reader duration : %lu loops.\n", rduration); printf("thread %-6s, thread id : %lx, tid %lu\n", "main", pthread_self(), (unsigned long)gettid()); diff --git a/test_rwlock.c b/test_rwlock.c index a6f31e3..ec2ca6e 100644 --- a/test_rwlock.c +++ b/test_rwlock.c @@ -273,6 +273,7 @@ int main(int argc, char **argv) printf("running test for %lu seconds, %u readers, %u writers.\n", duration, nr_readers, nr_writers); printf("Writer delay : %u us.\n", wdelay); + printf("Reader duration : %lu loops.\n", rduration); printf("thread %-6s, thread id : %lx, tid %lu\n", "main", pthread_self(), (unsigned long)gettid()); if (use_affinity diff --git a/test_urcu.c b/test_urcu.c index fe46928..fb39d42 100644 --- a/test_urcu.c +++ b/test_urcu.c @@ -324,6 +324,7 @@ int main(int argc, char **argv) printf("running test for %lu seconds, %u readers, %u writers.\n", duration, nr_readers, nr_writers); printf("Writer delay : %u us.\n", wdelay); + printf("Reader duration : %lu loops.\n", rduration); printf("thread %-6s, thread id : %lx, tid %lu\n", "main", pthread_self(), (unsigned long)gettid());