perf: Fix and clean up initialization of pmu::event_idx
authorPeter Zijlstra <peterz@infradead.org>
Tue, 21 Oct 2014 09:10:21 +0000 (11:10 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 28 Oct 2014 09:51:01 +0000 (10:51 +0100)
commitc719f56092add9b3d4192f57c64ce7af11105130
treee6082a4aeb6648e73273e3eddcf555100b6045b6
parent65d71fe1375b973083733294795bf2b09d45b3c2
perf: Fix and clean up initialization of pmu::event_idx

Andy reported that the current state of event_idx is rather confused.
So remove all but the x86_pmu implementation and change the default to
return 0 (the safe option).

Reported-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Christoph Lameter <cl@linux.com>
Cc: Cody P Schafer <cody@linux.vnet.ibm.com>
Cc: Cody P Schafer <dev@codyps.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Cc: Himangi Saraogi <himangi774@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: sukadev@linux.vnet.ibm.com <sukadev@linux.vnet.ibm.com>
Cc: Thomas Huth <thuth@linux.vnet.ibm.com>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Cc: linux390@de.ibm.com
Cc: linuxppc-dev@lists.ozlabs.org
Cc: linux-s390@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/powerpc/perf/hv-24x7.c
arch/powerpc/perf/hv-gpci.c
arch/s390/kernel/perf_cpum_sf.c
kernel/events/core.c
kernel/events/hw_breakpoint.c