summaryrefslogtreecommitdiffstats
path: root/arch/arm/include
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2013-03-05 04:18:00 +0100
committerChristoffer Dall <cdall@cs.columbia.edu>2013-04-29 06:44:01 +0200
commit210552c1bfe83122a480673660d5ca9821c944ae (patch)
tree713137a46a8d462e107e56ecf767773f15d37903 /arch/arm/include
parentKVM: nVMX: Skip PF interception check when queuing during nested run (diff)
downloadlinux-210552c1bfe83122a480673660d5ca9821c944ae.tar.xz
linux-210552c1bfe83122a480673660d5ca9821c944ae.zip
ARM: KVM: add support for minimal host vs guest profiling
In order to be able to correctly profile what is happening on the host, we need to be able to identify when we're running on the guest, and log these events differently. Perf offers a simple way to register callbacks into KVM. Mimic what x86 does and enjoy being able to profile your KVM host. Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Christoffer Dall <cdall@cs.columbia.edu>
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/asm/kvm_host.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/include/asm/kvm_host.h b/arch/arm/include/asm/kvm_host.h
index 0c4e643d939e..78813b8fad32 100644
--- a/arch/arm/include/asm/kvm_host.h
+++ b/arch/arm/include/asm/kvm_host.h
@@ -207,4 +207,7 @@ static inline void __cpu_init_hyp_mode(unsigned long long pgd_ptr,
kvm_call_hyp((void *)pgd_low, pgd_high, hyp_stack_ptr, vector_ptr);
}
+int kvm_perf_init(void);
+int kvm_perf_teardown(void);
+
#endif /* __ARM_KVM_HOST_H__ */