Re: MACRO_INSTS double definition on Nehalems

William Cohen <[email protected]>
Newsgroups gmane.linux.oprofile
Message-ID <[email protected]>
On 10/26/2015 11:57 AM, Michael Petlan wrote:
> Hi,
> 
> it seems that the event mentioned in the subject is defined twice
> in the events file for Nehalem:

Hi,

Andi, is http://www.intel.com/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-software-developer-system-programming-manual-325384.pdf the official document that should be reference for this? Tables 19-1 and Table 19-17 look to be the table to refer to for Nehalem.

> 
> $ cat events/i386/nehalem/events | grep MACRO_INSTS
> event:0xA6 counters:0,1,2,3 um:one minimum:6000 name:MACRO_INSTS
> event:0xD0 counters:0,1,2,3 um:macro_insts minimum:6000 name:MACRO_INSTS

According to the table they are counting different events the 0xa6 event is counting the number of seculatively decoded instructions that are macro-fused.  The 0xd0 is just counting speculatively executed instructions.

It looks like westmere also suffers this same naming issue.

Maybe change the 0xa6 event in nehalem and westemere to MACRO_INSTS_FUSED.  Would that be reasonable Andi?

-Will


> 
> They both have unit_mask=0x1 and they both are in the Intel docs.
> So it is basically correct. The problem is, that the second event
> cannot be used, since the name is not unique.
> 
> 
> $ ocount -e MACRO_INSTS true
> 
> Events were actively counted for 927589 nanoseconds.
> Event counts (actual) for /usr/bin/true:
> 	Event               Count                    % time counted
> 	MACRO_INSTS         76,980                   100.00
> 
> 
> $ perf stat -e r01a6 -e r01d0 true
> 
> Performance counter stats for 'true':
>   69,536 r01a6                                                       
>  531,979 r01d0                                                       
>        0.001159483 seconds time elapsed
> 
> So it seems that ocount uses the event with ID 0xA6. How can it use
> the one with ID 0xD0? Shouldn't one of them be renamed?
> 
> Regards,
> Michael
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> oprofile-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/oprofile-list
> 


------------------------------------------------------------------------------
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.