From: Will Deacon Date: Fri, 12 Apr 2013 18:04:19 +0000 (+0100) Subject: ARM: 7698/1: perf: fix group validation when using enable_on_exec X-Git-Tag: v3.2.44~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e23d55ac7a8d76509ded2fd8f6e75e6d2c912e5c;p=pandora-kernel.git ARM: 7698/1: perf: fix group validation when using enable_on_exec commit cb2d8b342aa084d1f3ac29966245dec9163677fb upstream. Events may be created with attr->disabled == 1 and attr->enable_on_exec == 1, which confuses the group validation code because events with the PERF_EVENT_STATE_OFF are not considered candidates for scheduling, which may lead to failure at group scheduling time. This patch fixes the validation check for ARM, so that events in the OFF state are still considered when enable_on_exec is true. Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Reported-by: Sudeep KarkadaNagesha Signed-off-by: Will Deacon Signed-off-by: Russell King Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed