]> git.karo-electronics.de Git - linux-beck.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)
commit0d97f884810410b2e0515e29424fe1ec5357176f
tree5018c8653ef597d733b3397c1f5690432513eaa8
parent065c0034823b513d3ca95760a2ad1765e3ef629c
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]