diff options
author | Christian Borntraeger <borntraeger@de.ibm.com> | 2019-10-27 09:19:50 +0100 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2019-10-28 14:52:50 +0100 |
commit | 01d035d796fec0ab23dc3f3a3a9f58bbe034fc5b (patch) | |
tree | 2dcdafa2e2e7929d7d897457586ad84f5d6e2755 /arch/arm/kvm | |
parent | Linux 5.4-rc3 (diff) | |
download | linux-01d035d796fec0ab23dc3f3a3a9f58bbe034fc5b.tar.xz linux-01d035d796fec0ab23dc3f3a3a9f58bbe034fc5b.zip |
KVM: arm/arm64: Show halt poll counters in debugfs
ARM/ARM64 has counters halt_successful_poll, halt_attempted_poll,
halt_poll_invalid, and halt_wakeup but never exposed those in debugfs.
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/1572164390-5851-1-git-send-email-borntraeger@de.ibm.com
Diffstat (limited to 'arch/arm/kvm')
-rw-r--r-- | arch/arm/kvm/guest.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/kvm/guest.c b/arch/arm/kvm/guest.c index 684cf64b4033..66964642cd42 100644 --- a/arch/arm/kvm/guest.c +++ b/arch/arm/kvm/guest.c @@ -21,6 +21,10 @@ #define VCPU_STAT(x) { #x, offsetof(struct kvm_vcpu, stat.x), KVM_STAT_VCPU } struct kvm_stats_debugfs_item debugfs_entries[] = { + VCPU_STAT(halt_successful_poll), + VCPU_STAT(halt_attempted_poll), + VCPU_STAT(halt_poll_invalid), + VCPU_STAT(halt_wakeup), VCPU_STAT(hvc_exit_stat), VCPU_STAT(wfe_exit_stat), VCPU_STAT(wfi_exit_stat), |