]> git.baikalelectronics.ru Git - kernel.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)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 17 Apr 2013 15:54:07 +0000 (16:54 +0100)
commitd500c2a83c354ffddf2cb4b71ecc2e128a18ab47
tree0604b13530fba679379275a8af38a68c0ec3ac1c
parent090924f0dc8e595ee68e98a0d6995f429425dbd7
ARM: 7698/1: perf: fix group validation when using enable_on_exec

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: stable@vger.kernel.org
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>
arch/arm/kernel/perf_event.c