projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup test usage printout
[userspace-rcu.git]
/
tests
/
test_urcu_hash_unique.c
diff --git
a/tests/test_urcu_hash_unique.c
b/tests/test_urcu_hash_unique.c
index 610f479080e257e3460651a15281f53e33e4ba07..b36d782791a9686ae992fc6cfb3fe52fe7c3a3de 100644
(file)
--- a/
tests/test_urcu_hash_unique.c
+++ b/
tests/test_urcu_hash_unique.c
@@
-64,7
+64,8
@@
void *test_hash_unique_thr_reader(void *_count)
unsigned long long *count = _count;
printf_verbose("thread_begin %s, thread id : %lx, tid %lu\n",
unsigned long long *count = _count;
printf_verbose("thread_begin %s, thread id : %lx, tid %lu\n",
- "reader", pthread_self(), (unsigned long)gettid());
+ "reader", (unsigned long) pthread_self(),
+ (unsigned long) gettid());
set_affinity();
set_affinity();
@@
-95,7
+96,7
@@
void *test_hash_unique_thr_reader(void *_count)
}
rcu_read_unlock();
}
rcu_read_unlock();
- debug_yield_read();
+
rcu_
debug_yield_read();
if (caa_unlikely(rduration))
loop_sleep(rduration);
URCU_TLS(nr_reads)++;
if (caa_unlikely(rduration))
loop_sleep(rduration);
URCU_TLS(nr_reads)++;
@@
-109,7
+110,8
@@
void *test_hash_unique_thr_reader(void *_count)
*count = URCU_TLS(nr_reads);
printf_verbose("thread_end %s, thread id : %lx, tid %lu\n",
*count = URCU_TLS(nr_reads);
printf_verbose("thread_end %s, thread id : %lx, tid %lu\n",
- "reader", pthread_self(), (unsigned long)gettid());
+ "reader", (unsigned long) pthread_self(),
+ (unsigned long) gettid());
printf_verbose("readid : %lx, lookupfail %lu, lookupok %lu\n",
pthread_self(), URCU_TLS(lookup_fail),
URCU_TLS(lookup_ok));
printf_verbose("readid : %lx, lookupfail %lu, lookupok %lu\n",
pthread_self(), URCU_TLS(lookup_fail),
URCU_TLS(lookup_ok));
@@
-127,7
+129,8
@@
void *test_hash_unique_thr_writer(void *_count)
int loc_add_unique;
printf_verbose("thread_begin %s, thread id : %lx, tid %lu\n",
int loc_add_unique;
printf_verbose("thread_begin %s, thread id : %lx, tid %lu\n",
- "writer", pthread_self(), (unsigned long)gettid());
+ "writer", (unsigned long) pthread_self(),
+ (unsigned long) gettid());
set_affinity();
set_affinity();
@@
-221,9
+224,10
@@
void *test_hash_unique_thr_writer(void *_count)
rcu_unregister_thread();
printf_verbose("thread_end %s, thread id : %lx, tid %lu\n",
rcu_unregister_thread();
printf_verbose("thread_end %s, thread id : %lx, tid %lu\n",
- "writer", pthread_self(), (unsigned long)gettid());
+ "writer", (unsigned long) pthread_self(),
+ (unsigned long) gettid());
printf_verbose("info id %lx: nr_add %lu, nr_addexist %lu, nr_del %lu, "
printf_verbose("info id %lx: nr_add %lu, nr_addexist %lu, nr_del %lu, "
- "nr_delnoent %lu\n", pthread_self(), URCU_TLS(nr_add),
+ "nr_delnoent %lu\n",
(unsigned long)
pthread_self(), URCU_TLS(nr_add),
URCU_TLS(nr_addexist), URCU_TLS(nr_del),
URCU_TLS(nr_delnoent));
count->update_ops = URCU_TLS(nr_writes);
URCU_TLS(nr_addexist), URCU_TLS(nr_del),
URCU_TLS(nr_delnoent));
count->update_ops = URCU_TLS(nr_writes);
This page took
0.026545 seconds
and
4
git commands to generate.