From: Will Deacon Date: Thu, 2 Sep 2010 08:32:08 +0000 (+0100) Subject: ARM: 6352/1: perf: fix event validation X-Git-Tag: v2.6.36-rc4~64^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65b4711ff513767341aa1915c822de6ec0de65cb;p=pandora-kernel.git ARM: 6352/1: perf: fix event validation The validate_event function in the ARM perf events backend has the following problems: 1.) Events that are disabled count towards the cost. 2.) Events associated with other PMUs [for example, software events or breakpoints] do not count towards the cost, but do fail validation, causing the group to fail. This patch changes validate_event so that it ignores events in the PERF_EVENT_STATE_OFF state or that are scheduled for other PMUs. Reported-by: Pawel Moll Acked-by: Jamie Iles Signed-off-by: Will Deacon Signed-off-by: Russell King --- Reading git-diff-tree failed