arm64: perf: Count EL2 events if the kernel is running in HYP
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 25 Jan 2016 17:31:13 +0000 (17:31 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 29 Feb 2016 18:34:18 +0000 (18:34 +0000)
commitd98ecdaca296815b3c4d11032b3699af6b49b70b
tree55421a6070487ad0f694fb28da3441c471bb2d39
parent5f05a72aed023e5824eebb2542b5397cb89188f4
arm64: perf: Count EL2 events if the kernel is running in HYP

When the kernel is running in HYP (with VHE), it is necessary to
include EL2 events if the user requests counting kernel or
hypervisor events.

Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/kernel/perf_event.c