Commit aab20dd8 authored by Mark Leith's avatar Mark Leith

Bug#54726 - Inconsistent reporting between mutex and RW lock spin rounds

 - Add round counts to the output for RW s/x locks
parent 1cc7629e
...@@ -1492,14 +1492,16 @@ sync_print_wait_info( ...@@ -1492,14 +1492,16 @@ sync_print_wait_info(
fprintf(file, fprintf(file,
"Mutex spin waits %llu, rounds %llu, OS waits %llu\n" "Mutex spin waits %llu, rounds %llu, OS waits %llu\n"
"RW-shared spins %llu, OS waits %llu;" "RW-shared spins %llu, rounds %llu, OS waits %llu\n"
" RW-excl spins %llu, OS waits %llu\n", "RW-excl spins %llu, rounds %llu, OS waits %llu\n",
mutex_spin_wait_count, mutex_spin_wait_count,
mutex_spin_round_count, mutex_spin_round_count,
mutex_os_wait_count, mutex_os_wait_count,
rw_s_spin_wait_count, rw_s_spin_wait_count,
rw_s_spin_round_count,
rw_s_os_wait_count, rw_s_os_wait_count,
rw_x_spin_wait_count, rw_x_spin_wait_count,
rw_x_spin_round_count,
rw_x_os_wait_count); rw_x_os_wait_count);
fprintf(file, fprintf(file,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment