Skip to content

Commit fea1d29

Browse files
committed
doc: Add documentation to pthread_mutex_perf application
Signed-off-by: Alan C. Assis <[email protected]>
1 parent 53edfb5 commit fea1d29

File tree

1 file changed

+15
-0
lines changed
  • Documentation/applications/testing/pthread_mutex_perf

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
=======
2+
Testing
3+
=======
4+
5+
The ``pthread_mutex_perf`` is a simple performance test to validate if some
6+
specific kernel modification impacted the pthread_mutex_trylock().
7+
8+
Basically the test will run a busy-wait 1000000 trying to acquire a mutex
9+
that is already locked. Then it will calculate the total time and the
10+
average time, repeating this cycle 10 times.
11+
12+
This test is not intended to confirm that pthread mutex is working, for that
13+
it is better to use ostest. Its goal is to verify impact in the kernel that
14+
could be considered a regression.
15+

0 commit comments

Comments
 (0)