The easiest way to collect the data is to run the following command in the mttest directory:
% make hwcperf
The hwcperf target of the Makefile launches a collect command and records an experiment.
The experiment is named test.1.er by default and contains clock-profiling data and hardware counter profiling data for the default counters for your system. In this chapter's example, the counters are: inst (instructions), cycles (cycles), and dcm (data-cache-misses). If Performance Analyzer does not define a default set of hardware counters for your system, the collect command fails. In that case, edit the HWC_OPT definition in your Makefile to specify counters that are supported in your system.