perf: Fix duplicate events with multiple-pmu vs software events
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Tue, 7 Dec 2010 13:18:20 +0000 (14:18 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 8 Dec 2010 19:14:08 +0000 (20:14 +0100)
commit5167695753c63444a9e6cbbef136200a16c7a225
tree6394b1e620027882556beb2e899449805dd3c3cc
parent6313e3c21743cc88bb5bd8aa72948ee1e83937b6
perf: Fix duplicate events with multiple-pmu vs software events

Because the multi-pmu bits can share contexts between struct pmu
instances we could get duplicate events by iterating the pmu list.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/perf_event.h
kernel/perf_event.c