perf_events, x86: Fixup fixed counter constraints
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Mon, 1 Feb 2010 14:36:30 +0000 (15:36 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 2 Mar 2010 14:06:47 +0000 (15:06 +0100)
commitb622d644c7d61a5cb95b74e7b143c263bed21f0a
tree3d9e1b5eb8464c29664d4744abff9c51e2500222
parent320ebf09cbb6d01954c9a060266aa8e0d27f4638
perf_events, x86: Fixup fixed counter constraints

Patch 1da53e0230 ("perf_events, x86: Improve x86 event scheduling")
lost us one of the fixed purpose counters and then ed8777fc13
("perf_events, x86: Fix event constraint masks") broke it even
further.

Widen the fixed event mask to event+umask and specify the full config
for each of the 3 fixed purpose counters. Then let the init code fill
out the placement for the GP regs based on the cpuid info.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/perf_event.h
arch/x86/kernel/cpu/perf_event.c
arch/x86/kernel/cpu/perf_event_intel.c