]> Pileus Git - ~andy/linux/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>
Fri, 9 Nov 2012 11:37:24 +0000 (11:37 +0000)
commite50c54189f7c6211a99539156e3978474f0b1a0b
treef2875cfc036a202270427471dd53e16f0ae48381
parent3d70f8c617a436c7146ecb81df2265b4626dfe89
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