]> 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>
Tue, 23 Oct 2012 12:23:49 +0000 (13:23 +0100)
commit703635d2d999f08ec73defe3c1456a69b540ab04
treebbdaf763e21389fdc4bb74ff98044d5b36a704ff
parent6f0c0580b70c89094b3422ba81118c7b959c7556
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