From: Peter Zijlstra Date: Tue, 19 Oct 2010 12:22:50 +0000 (+0200) Subject: perf, x86: Less disastrous PEBS/BTS buffer allocation failure X-Git-Tag: v2.6.37-rc1~18^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6809b6ea73f7291f2e495d40397f1172c9caa77e;p=pandora-kernel.git perf, x86: Less disastrous PEBS/BTS buffer allocation failure Currently PEBS/BTS buffers are allocated when we instantiate the first event, when this fails everything fails. This is a problem because esp. BTS tries to allocate a rather large buffer (64K), which can easily fail. This patch changes the logic such that when either buffer allocation fails, we simply don't allow events that would use these facilities, but continue functioning for all other events. This logic comes from a much larger patch proposed by Stephane. Suggested-by: Stephane Eranian Signed-off-by: Peter Zijlstra Acked-by: Stephane Eranian LKML-Reference: <20101019134808.354429461@chello.nl> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed