From 900e541e6604a92bdf268074bb41ec6b6632d4eb Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 12 Jun 2009 13:52:29 -0400 Subject: [PATCH] Print reader duration Signed-off-by: Mathieu Desnoyers --- test_mutex.c | 1 + test_perthreadlock.c | 1 + test_qsbr.c | 1 + test_rwlock.c | 1 + test_urcu.c | 1 + 5 files changed, 5 insertions(+) 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()); -- 2.34.1