]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: perf: add guest vs host discrimination
authorMarc Zyngier <Marc.Zyngier@arm.com>
Thu, 13 Sep 2012 15:40:46 +0000 (16:40 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 15 Oct 2012 10:11:42 +0000 (11:11 +0100)
commite1b3b36e2f30d6d4ff13d5a8167b48931172f460
treeae82a88e2c9eea2af9fa9ff1a6eea7071eab5613
parentddffeb8c4d0331609ef2581d84de4d763607bd37
ARM: 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/ARM.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/include/asm/perf_event.h
arch/arm/kernel/perf_event.c