]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ARM: 7698/1: perf: fix group validation when using enable_on_exec
authorWill Deacon <will.deacon@arm.com>
Fri, 12 Apr 2013 18:04:19 +0000 (19:04 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 25 Apr 2013 19:25:41 +0000 (20:25 +0100)
commite23d55ac7a8d76509ded2fd8f6e75e6d2c912e5c
tree93c26c1bb7c021dee01e2b1fb5fd209f40192ed5
parent608ba3bf126fc519e3a5053633bfbe9f1f6dfe45
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 <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Cc: Jiri Olsa <jolsa@redhat.com>
Reported-by: Sudeep KarkadaNagesha <Sudeep.KarkadaNagesha@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/arm/kernel/perf_event.c