]> git.baikalelectronics.ru Git - kernel.git/commit
arm/arm64: KVM: add tracing support for arm64 exit handler
authorWei Huang <wei@redhat.com>
Mon, 12 Jan 2015 16:53:36 +0000 (11:53 -0500)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 15 Jan 2015 11:43:30 +0000 (12:43 +0100)
commit4a060d61a77e6db7be63a89103d0519a36077c7c
tree5018c8653ef597d733b3397c1f5690432513eaa8
parent2a78f8aeada5c657a97871436f2a3df9fc8d9adf
arm/arm64: KVM: add tracing support for arm64 exit handler

arm64 uses its own copy of exit handler (arm64/kvm/handle_exit.c).
Currently this file doesn't hook up with any trace points. As a result
users might not see certain events (e.g. HVC & WFI) while using ftrace
with arm64 KVM. This patch fixes this issue by adding a new trace file
and defining two trace events (one of which is shared by wfi and wfe)
for arm64. The new trace points are then linked with related functions
in handle_exit.c.

Signed-off-by: Wei Huang <wei@redhat.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm64/include/asm/kvm_arm.h
arch/arm64/include/asm/kvm_emulate.h
arch/arm64/kvm/handle_exit.c
arch/arm64/kvm/trace.h [new file with mode: 0644]