arm64: KVM: Add trapped system register access tracepoint
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 4 Dec 2018 10:44:22 +0000 (10:44 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 19 Dec 2018 17:47:08 +0000 (17:47 +0000)
commit599d79dcd18fa0f88ae15b7042c9d6b011a678b2
treec032a33528d627b77c1c170679f7f9a73b89ac58
parentda6f16662a6eba3de0d1a39f3b8913d38754bb2b
arm64: KVM: Add trapped system register access tracepoint

We're pretty blind when it comes to system register tracing,
and rely on the ESR value displayed by kvm_handle_sys, which
isn't much.

Instead, let's add an actual name to the sysreg entries, so that
we can finally print it as we're about to perform the access
itself.

The new tracepoint is conveniently called kvm_sys_access.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/kvm/sys_regs.c
arch/arm64/kvm/sys_regs.h
arch/arm64/kvm/trace.h