Before starting, make sure that this directory is available as tools/valgrind (in the wine source tree, a symlink is fine) You'll also want valgrind installed ...