From: Peter Zijlstra Date: Tue, 5 Jun 2012 13:30:31 +0000 (+0200) Subject: perf/x86: Fix Intel shared extra MSR allocation X-Git-Tag: v3.5-rc2~10^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b430f7c4706aeba4270c7ab7744fc504b9315e1c;p=pandora-kernel.git perf/x86: Fix Intel shared extra MSR allocation Zheng Yan reported that event group validation can wreck event state when Intel extra_reg allocation changes event state. Validation shouldn't change any persistent state. Cloning events in validate_{event,group}() isn't really pretty either, so add a few special cases to avoid modifying the event state. The code is restructured to minimize the special case impact. Reported-by: Zheng Yan Acked-by: Stephane Eranian Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/1338903031.28282.175.camel@twins Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed