2010-01-07 04:52:53

by Paul Mackerras

[permalink] [raw]
Subject: Counting FP multiplies on Core 2

The Intel manual tells me that event num 12H, umask 00H on Core 2
counts multiply operations executed, but says "Use IA32_PMC1 only".
Is there a way in the raw event code to specify a particular PMC, or
does the code just know that that event can only be counted on PMC1?

Paul.


2010-01-07 08:31:11

by Peter Zijlstra

[permalink] [raw]
Subject: Re: Counting FP multiplies on Core 2

On Thu, 2010-01-07 at 15:52 +1100, Paul Mackerras wrote:
> The Intel manual tells me that event num 12H, umask 00H on Core 2
> counts multiply operations executed, but says "Use IA32_PMC1 only".
> Is there a way in the raw event code to specify a particular PMC, or
> does the code just know that that event can only be counted on PMC1?

Right, this is what Stephane is trying to implement, but he's not very
fast.. maybe I should help him out.