2016-09-23 11:35:54 UTC
when testing oprofile on an Intel Goldmont machine, I have found out
that the default event cpu_clk_unhalted returns always zero. Thus, I
checked the configuration and Intel SDM, and I think there must be a
According to the Intel SDM, table 19-24, the event is 0x3c as usual.
It has two unit masks (0x00 (core_p) and 0x01 (ref)). With this, the
event starts giving reasonable results.
The current configuration which is coded in oprofile is not even in
the SDM tale 19-24, so it is expectable that the following will give
perf stat -e cpu/event=0x00,umask=0x02/ ls
Please consider applying the attached patch.
CC'ing Andi to verify the fix.