[PATCH 2/3] powerpc/perf: add 2 additional performance monitor counters for e6500 core

Scott Wood scottwood at freescale.com
Wed Jun 5 04:10:43 EST 2013


On 05/29/2013 05:12:41 PM, Lijun Pan wrote:
> diff --git a/arch/powerpc/kernel/cputable.c  
> b/arch/powerpc/kernel/cputable.c
> index cc39139..2d4eee2 100644
> --- a/arch/powerpc/kernel/cputable.c
> +++ b/arch/powerpc/kernel/cputable.c
> @@ -2073,7 +2073,7 @@ static struct cpu_spec __initdata cpu_specs[] =  
> {
>  			MMU_FTR_USE_TLBILX,
>  		.icache_bsize		= 64,
>  		.dcache_bsize		= 64,
> -		.num_pmcs		= 4,
> +		.num_pmcs		= 6,
>  		.oprofile_cpu_type	= "ppc/e6500",
>  		.oprofile_type		= PPC_OPROFILE_FSL_EMB,
>  		.cpu_setup		= __setup_cpu_e6500,

This will overflow MAX_HWEVENTS.  Please include "powerpc perf:  
increase the perf HW events to 6" from our SDK tree before this patch  
(be sure to change "powerpc perf" to "powerpc/perf" and remove the  
gerrit tags when you do so).

-Scott


More information about the Linuxppc-dev mailing list