Add support for Valgrind's helgrind tool (#38706)

Also fix one locking issue that helgrind found: Maintain stats->lock
while stats->reference is used.
This commit is contained in:
Mukund Sivaraman
2015-03-02 13:42:20 +05:30
parent 84f95ddb25
commit 10dd5f62f2
4 changed files with 25 additions and 7 deletions

View File

@@ -62,4 +62,6 @@ To run all the tests, just type "make test".
When running system tests, named and lwresd can be run under
Valgrind. The output from Valgrind are sent to per-process files that
can be reviewed after the test has completed. To enable this, set the
USE_VALGRIND environment variable.
USE_VALGRIND environment variable to "helgrind" to run the Helgrind
tool, or any other value to run the Memcheck tool. To use "helgrind"
effectively, build BIND with --disable-atomic.