perf: Dynamic pmu types
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Wed, 17 Nov 2010 22:17:36 +0000 (23:17 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 16 Dec 2010 10:36:43 +0000 (11:36 +0100)
commit2e80a82a49c4c7eca4e35734380f28298ba5db19
treec60fe1cc6696c893a2c6c5891981bf8e81d9ab90
parent9f58a205c62d0dad1df38d076324a89b1a0f1d65
perf: Dynamic pmu types

Extend the perf_pmu_register() interface to allow for named and
dynamic pmu types.

Because we need to support the existing static types we cannot use
dynamic types for everything, hence provide a type argument.

If we want to enumerate the PMUs they need a name, provide one.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <20101117222056.259707703@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/alpha/kernel/perf_event.c
arch/arm/kernel/perf_event.c
arch/powerpc/kernel/perf_event.c
arch/powerpc/kernel/perf_event_fsl_emb.c
arch/sh/kernel/perf_event.c
arch/sparc/kernel/perf_event.c
arch/x86/kernel/cpu/perf_event.c
include/linux/perf_event.h
kernel/hw_breakpoint.c
kernel/perf_event.c