perf, x86: Add simple group validation
commitfe9081cc9bdabb0be953a39ad977cea14e35bce5
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Thu, 8 Oct 2009 09:56:07 +0000 (8 11:56 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 9 Oct 2009 13:56:14 +0000 (9 15:56 +0200)
treee4b18495cbbade72da915b825dd39aef0cefd5d5
parentb690081d4d3f6a23541493f1682835c3cd5c54a1
perf, x86: Add simple group validation

Refuse to add events when the group wouldn't fit onto the PMU
anymore.

Naive implementation.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@gmail.com>
LKML-Reference: <1254911461.26976.239.camel@twins>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_event.c