arm64: perf: fix group validation when using enable_on_exec
authorWill Deacon <will.deacon@arm.com>
Tue, 20 Aug 2013 10:47:41 +0000 (11:47 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 20 Aug 2013 11:12:25 +0000 (12:12 +0100)
commit8455e6ec70f33b0e8c3ffd47067e00481f09f454
treef5c7ac893fef4e781e8143d8e1f361304ce821ad
parentee7538a008a45050c8f706d38b600f55953169f9
arm64: perf: fix group validation when using enable_on_exec

This is a port of cb2d8b342aa0 ("ARM: 7698/1: perf: fix group validation
when using enable_on_exec") to arm64, which fixes the event validation
checking so that events in the OFF state are still considered when
enable_on_exec is true.

Cc: <stable@vger.kernel.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/perf_event.c