summaryrefslogtreecommitdiff
path: root/arch/arm64/kvm/sys_regs.c
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2018-12-04 10:44:22 +0000
committerMarc Zyngier <marc.zyngier@arm.com>2018-12-19 17:47:08 +0000
commit599d79dcd18fa0f88ae15b7042c9d6b011a678b2 (patch)
treec032a33528d627b77c1c170679f7f9a73b89ac58 /arch/arm64/kvm/sys_regs.c
parentda6f16662a6eba3de0d1a39f3b8913d38754bb2b (diff)
downloadlwn-599d79dcd18fa0f88ae15b7042c9d6b011a678b2.tar.gz
lwn-599d79dcd18fa0f88ae15b7042c9d6b011a678b2.zip
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>
Diffstat (limited to 'arch/arm64/kvm/sys_regs.c')
-rw-r--r--arch/arm64/kvm/sys_regs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm64/kvm/sys_regs.c b/arch/arm64/kvm/sys_regs.c
index 965c6f1706d6..a1f57fcb1bdb 100644
--- a/arch/arm64/kvm/sys_regs.c
+++ b/arch/arm64/kvm/sys_regs.c
@@ -1850,6 +1850,8 @@ static void perform_access(struct kvm_vcpu *vcpu,
struct sys_reg_params *params,
const struct sys_reg_desc *r)
{
+ trace_kvm_sys_access(*vcpu_pc(vcpu), params, r);
+
/*
* Not having an accessor means that we have configured a trap
* that we don't know how to handle. This certainly qualifies