perf_counter: powerpc: Implement generalized cache events for POWER processors
authorPaul Mackerras <paulus@samba.org>
Thu, 11 Jun 2009 04:55:42 +0000 (14:55 +1000)
committerIngo Molnar <mingo@elte.hu>
Thu, 11 Jun 2009 14:48:37 +0000 (16:48 +0200)
commit106b506c3a8b74daa5751e83ed3e46438fcf9a52
treead141aa86b020501823c7e2c7ac0abb9f27cf5a1
parent4da52960fd1ae3ddd14901bc88b608cbeaa4b9a6
perf_counter: powerpc: Implement generalized cache events for POWER processors

This adds tables of event codes for the generalized cache events for
all the currently supported powerpc processors: POWER{4,5,5+,6,7} and
PPC970*, plus powerpc-specific code to use these tables when a
generalized cache event is requested.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <18992.36430.933526.742969@drongo.ozlabs.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/powerpc/include/asm/perf_counter.h
arch/powerpc/kernel/perf_counter.c
arch/powerpc/kernel/power4-pmu.c
arch/powerpc/kernel/power5+-pmu.c
arch/powerpc/kernel/power5-pmu.c
arch/powerpc/kernel/power6-pmu.c
arch/powerpc/kernel/power7-pmu.c
arch/powerpc/kernel/ppc970-pmu.c