Skip to content

Commit 01d035d

Browse files
borntraegerMarc Zyngier
authored andcommitted
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 <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 4f5cafb commit 01d035d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

arch/arm/kvm/guest.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
#define VCPU_STAT(x) { #x, offsetof(struct kvm_vcpu, stat.x), KVM_STAT_VCPU }
2222

2323
struct kvm_stats_debugfs_item debugfs_entries[] = {
24+
VCPU_STAT(halt_successful_poll),
25+
VCPU_STAT(halt_attempted_poll),
26+
VCPU_STAT(halt_poll_invalid),
27+
VCPU_STAT(halt_wakeup),
2428
VCPU_STAT(hvc_exit_stat),
2529
VCPU_STAT(wfe_exit_stat),
2630
VCPU_STAT(wfi_exit_stat),

arch/arm64/kvm/guest.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
#define VCPU_STAT(x) { #x, offsetof(struct kvm_vcpu, stat.x), KVM_STAT_VCPU }
3535

3636
struct kvm_stats_debugfs_item debugfs_entries[] = {
37+
VCPU_STAT(halt_successful_poll),
38+
VCPU_STAT(halt_attempted_poll),
39+
VCPU_STAT(halt_poll_invalid),
40+
VCPU_STAT(halt_wakeup),
3741
VCPU_STAT(hvc_exit_stat),
3842
VCPU_STAT(wfe_exit_stat),
3943
VCPU_STAT(wfi_exit_stat),

0 commit comments

Comments
 (0)