Vince -
Have you thought about event tables for Athlon and Pentium II?
- dan

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:perfmon-
> [EMAIL PROTECTED] On Behalf Of Vince Weaver
> Sent: Monday, May 21, 2007 4:32 PM
> To: [EMAIL PROTECTED]
> Subject: [perfmon] patch to add support for 32-bit Athlon
> 
> Hello,
> 
> the following patches let me run perfmon on a 32-bit Athlon machine.
> 
> This is not the cleanest way to implement this, but it was enough to get
> things working.
> 
> Vince
> 
> --- ./linux-2.6.21/arch/x86_64/perfmon/perfmon_k8.c.orig      2007-05-21
> 10:35:06.000000000 -0400
> +++ ./linux-2.6.21/arch/x86_64/perfmon/perfmon_k8.c   2007-05-21
> 10:43:31.000000000 -0400
> @@ -307,7 +307,7 @@
>               return -1;
>       }
> 
> -     if (current_cpu_data.x86 != 15) {
> +     if ((current_cpu_data.x86 != 15) && (current_cpu_data.x86 != 6)) {
>               PFM_INFO("unsupported family=%d", current_cpu_data.x86);
>               return -1;
>       }
> 
> 
> 
> --- ./libpfm-3.2-070507/lib/pfmlib_amd64.c.orig       2007-05-21
> 12:19:12.000000000 -0400
> +++ ./libpfm-3.2-070507/lib/pfmlib_amd64.c    2007-05-21
> 12:19:57.000000000 -0400
> @@ -84,7 +84,7 @@
> 
>       family = atoi(buffer);
> 
> -     return family != 15 ? PFMLIB_ERR_NOTSUPP : PFMLIB_SUCCESS;
> +     return ((family != 15) && (family != 6)) ? PFMLIB_ERR_NOTSUPP :
> PFMLIB_SUCCESS;
>  }
> 
>  /*
> 
> _______________________________________________
> perfmon mailing list
> [email protected]
> http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/

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

Reply via email to