Hi @ll,

I used OProfile to sample CYCLE on AMD Opteron 2.0GHz.

opcontrol --event=CPU_CLK_UNHALTED:3001 --image=gzip.exe

The sampling result is 902,645.   The execution time of gzip.exe is 9.281s (linux time command).

Estimated execution time: sampling result * sampling interval / CPU frequency
902,645 * 3001 / 2,000,000,000 = 1.35s.  But this result is very different from 9.281s.

BTW, when I changed event count to 1,0001 the sampling result is 752,647. And changed to 10,0001, the result is 167,612.
Why does not the sampling result scale with the event count?

--
Regards,
Paul Yuan (袁鹏)