Vince,

On Mon, Nov 05, 2007 at 04:42:24PM -0500, Vince Weaver wrote:
> Hello
> 
> I have a Pentium M machine that is Family 6 / Model 14.  Current perfmon

This is not a Pentium M, this is a Core Duo (Yonah). Pentium M has a different
PMU.

> gives the following error when trying to do any measurements:
>    cannot configure events: invalid parameters
> 
> I've tracked this down to "pmu_version" never being set for this
> family/model combo.  Since it is never explicitly set, it is equal to 0,
> leading to the error.
> 
> This patch makes things work, although it probably is not be the right
> fix:
> 
The fix is correct given the current code base. I did a special case for Core 
Duo
to make sure we get the specific event table. I tink we could piggy-back on the
generic v1/v2 code. But I'll apply the patch for now.

Thanks.


> 
> --- libpfm-3.2-071017/lib/pfmlib_gen_ia32.c.orig      2007-11-05 
> 16:40:08.000000000 -0500
> +++ libpfm-3.2-071017/lib/pfmlib_gen_ia32.c   2007-11-05 16:40:32.000000000 
> -0500
> @@ -353,6 +353,8 @@
>                       pfm_regmask_set(&gen_ia32_impl_pmcs, i);
>                       pfm_regmask_set(&gen_ia32_impl_pmds, i);
>               }
> +             pmu_version=1;
> +
>               return PFMLIB_SUCCESS;
>       }
>       return PFMLIB_ERR_NOTSUPP;
> 
> _______________________________________________
> perfmon mailing list
> [email protected]
> http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/

-- 

-Stephane
_______________________________________________
perfmon mailing list
[email protected]
http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/

Reply via email to