|
|
|
@ -67,38 +67,38 @@ thread_lock_rtm(void *pun)
|
|
|
|
|
|
|
|
|
|
for (i = 1, a = 0;; i++) {
|
|
|
|
|
s_b = rdtsc();
|
|
|
|
|
ck_rwlock_read_lock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_unlock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_lock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_unlock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_lock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_unlock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_lock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_unlock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_lock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_unlock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_lock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_unlock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_lock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_unlock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_lock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_unlock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_lock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_unlock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_lock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_unlock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_lock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_unlock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_lock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_unlock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_lock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_unlock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_lock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_unlock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_lock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_unlock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_lock_rtm(&rw.lock);
|
|
|
|
|
ck_rwlock_read_unlock_rtm(&rw.lock);
|
|
|
|
|
CK_ELIDE_LOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_UNLOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_LOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_UNLOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_LOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_UNLOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_LOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_UNLOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_LOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_UNLOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_LOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_UNLOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_LOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_UNLOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_LOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_UNLOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_LOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_UNLOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_LOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_UNLOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_LOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_UNLOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_LOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_UNLOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_LOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_UNLOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_LOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_UNLOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_LOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_UNLOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_LOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
CK_ELIDE_UNLOCK(ck_rwlock_read, &rw.lock);
|
|
|
|
|
e_b = rdtsc();
|
|
|
|
|
|
|
|
|
|
a += (e_b - s_b) >> 4;
|
|
|
|
|