MACRO_INSTS double definition on Nehalems

Michael Petlan <[email protected]>
Newsgroups gmane.linux.oprofile
Organization Red Hat
Message-ID <1445875020.12960.174.camel@Rudolf-RHEL-7>
Hi,

it seems that the event mentioned in the subject is defined twice
in the events file 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

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




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