Re: [PATCH 1/2] powerpc: G4 oprofile: variable number of counters

2009-02-24 Thread Octavian Purdila
>> static int oprofile_running; >> -static u32 mmcr0_val, mmcr1_val, mmcr2_val; >> +static u32 mmcr0_val, mmcr1_val, mmcr2_val, ctrs; > >This may be static but it's still a global scope as far as kernel >symbols are concerned. Care to give it a slightly better name ? num_pmcs >would probably be al

Re: [PATCH 1/2] powerpc: G4 oprofile: variable number of counters

2009-02-03 Thread Benjamin Herrenschmidt
On Tue, 2009-01-06 at 14:55 +0200, Octavian Purdila wrote: > For ppc750 processors which use 4 performance counters instead of the > 6 G4 uses but otherwise is compatible with G4. > > Signed-off-by: Octavian Purdila > --- > arch/powerpc/oprofile/op_model_7450.c | 21 +++-- > 1

[PATCH 1/2] powerpc: G4 oprofile: variable number of counters

2009-01-06 Thread Octavian Purdila
For ppc750 processors which use 4 performance counters instead of the 6 G4 uses but otherwise is compatible with G4. Signed-off-by: Octavian Purdila --- arch/powerpc/oprofile/op_model_7450.c | 21 +++-- 1 files changed, 11 insertions(+), 10 deletions(-) diff --git a/arch/power