If you want to detect data races and deadlocks at the same time, follow the three steps in Usage Model for Detecting Data Races for detecting data races, but use the collect command with the –r race,deadlock flag to run the application. The experiment will contain both race-detection and deadlock-detection data.