Maynard Johnson | 30 Jul 2012 17:28
Picon
Favicon

Duplicated unit mask values without "extra" field are not working

Hi, Andi,
Maybe this is user error since I don't normally deal much with unit masks.  But on this Sandybridge system I'm
working on (mentioned in an earlier posting today), I can't get certain events/unit mask combinations to
work.  For example:

	'ophelp --extra-mask uops_issued:2000000:stall_cycles'
correctly returns '25165824'.  But

	'ophelp --extra-mask uops_issued:2000000:any'
or
	'ophelp --extra-mask uops_issued:2000000:0x1'
returns:
	Named unit masks not allowed for events without 'extra:' values.
	Please specify the numerical value for the unit mask. See 'opcontrol' man page for more info.

I've found that if I hack the "any" value for uops_issued in i386/sandybridge/unit_masks with some bogus
"extra" field, then 'ophelp --extra-mask uops_issued:2000000:any' returns without a failure. Of
course that's not a proper fix.  Is this a bug or luser error?

Thanks.
-Maynard

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

Gmane