PI Mutex Test
Add documentation about using the test suite
This tarball contains the source code for two test programs:
- classic_pi - a program that demonstrates how a PI mutex can resolve a Priority Inversion deadlock
- pi_stress - a stress test that runs groups of threads that cause Priority Inversions
To use, create a directory and untar the archive contents into that directory. Run make, which by default will build the two tests. If things don't compile, chances are your GLIBC does not support the Priority Inheritance attribute for pthread mutexes and you will need to upgrade.
Both programs have usage messages (--help) that explain their options. The classic_pi program is generally just used to show that PI mutexes work, while the pi_stress program is used to exercies the PI C library/kernel code path.
# pi_stress <options> options: --quiet - no output --verbose - lots of output --groups=<n> - set the number of inversion groups --inversions=<n> - number of inversions per group --report=<path> - output to file --fifo - use SCHED_FIFO for test threads --rr - use SCHED_RR for test threads --prompt - prompt before starting the test --debug - turn on debug prints --version - print version number on output --help - print this message