]> bbs.cooldavid.org Git - net-next-2.6.git/commit
perf_events: Check for filters on fixed counter events
authorStephane Eranian <eranian@googlemail.com>
Tue, 6 Oct 2009 14:42:08 +0000 (16:42 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 9 Oct 2009 13:56:10 +0000 (15:56 +0200)
commit04a705df47d1ea27ca2b066f24b1951c51792d0d
treecf4c9db5bd094a2b86b1ad1dd9bdb438aeb4f282
parent26dd2cb074d9dc41c9e3cddd7bf175fd0a41febc
perf_events: Check for filters on fixed counter events

Intel fixed counters do not support all the filters possible with a
generic counter. Thus, if a fixed counter event is passed but with
certain filters set, then the fixed_mode_idx() function must fail
and the event must be measured in a generic counter instead.

Reject filters are: inv, edge, cnt-mask.

Signed-off-by: Stephane Eranian <eranian@gmail.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1254840129-6198-2-git-send-email-eranian@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/perf_event.h
arch/x86/kernel/cpu/perf_event.c