Re: Intel Goldmont default event

Andi Kleen <[email protected]>
Newsgroups gmane.linux.oprofile
Message-ID <[email protected]>
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

------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.