Re: Intel Goldmont default event
William Cohen <[email protected]>
| Newsgroups | gmane.linux.oprofile |
|---|---|
| Message-ID | <[email protected]> |
On 09/23/2016 01:10 PM, Andi Kleen wrote: > On Fri, Sep 23, 2016 at 01:35:54PM +0200, Michael Petlan wrote: >> Hi all, >> >> 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 >> mistake. >> >> 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 >> zero value: >> >> perf stat -e cpu/event=0x00,umask=0x02/ ls >> >> Please consider applying the attached patch. > > Looks good. Thanks for fixing. > > -Andi > > ------------------------------------------------------------------------------ > _______________________________________________ > oprofile-list mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/oprofile-list > Thanks Michael and Andi, The patch for the goldmont default event has been applied to the upstream oprofile. -Will ------------------------------------------------------------------------------