arm64: perf: add guest vs host discrimination
authorMarc Zyngier <Marc.Zyngier@arm.com>
Wed, 23 Jan 2013 16:52:18 +0000 (16:52 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 29 Jan 2013 16:56:17 +0000 (16:56 +0000)
commit75e424620a4f8247e8877c224d0457efadf88201
tree0559532a28e40a0cdcf1c1a7c1abf504fd57609e
parent10a3cc2f764038e388d6fc3510142ae7d23fb2d9
arm64: perf: add guest vs host discrimination

Add minimal guest support to perf, so it can distinguish whether
the PMU interrupt was in the host or the guest, as well as collecting
some very basic information (guest PC, user vs kernel mode).

This is not feature complete though, as it doesn't support backtracing
in the guest.

Based on the x86 implementation, tested with KVM/arm64.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/perf_event.h
arch/arm64/kernel/perf_event.c