Skip to contentSkip to conversation

KVM: kvm_stat: do not show halt_wait_ns

PATCH Applied Christian Borntraeger 3 participants 3 messages Oct 6, 2021 – Oct 15, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KVM: kvm_stat: do not show halt_wait_ns

Similar to commit 111d0bda8eeb ("tools/kvm_stat: Exempt time-based counters"), we should not show timer values in kvm_stat. Remove the new halt_wait_ns.

Fixes 87bcc5fa092f ("KVM: stats: Add halt_wait_ns stats for all architectures")
Cc Jing Zhang <[email protected]>
Cc Stefan Raspl <[email protected]>
---
 tools/kvm/kvm_stat/kvm_stat | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/kvm/kvm_stat/kvm_stat +1 -1
index b0bf56c5f120..5a5bd74f55bd 100755
@@ -742,7 +742,7 @@ class DebugfsProvider(Provider):
         The fields are all available KVM debugfs files
 
         """
-        exempt_list = ['halt_poll_fail_ns', 'halt_poll_success_ns']
+        exempt_list = ['halt_poll_fail_ns', 'halt_poll_success_ns', 'halt_wait_ns']
         fields = [field for field in self.walkdir(PATH_DEBUGFS_KVM)[2]
                   if field not in exempt_list]
 
Signature · 1 line
2.32.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Christian Borntraeger

Similar to commit 111d0bda8eeb ("tools/kvm_stat: Exempt time-based counters"), we should not show timer values in kvm_stat. Remove the new halt_wait_ns.

Fixes 87bcc5fa092f ("KVM: stats: Add halt_wait_ns stats for all architectures")
Cc Jing Zhang <[email protected]>
Cc Stefan Raspl <[email protected]>
maintainer Applied
#2 lore raw
In reply to Christian Borntraeger
Quoted 18 lines · Christian Borntraeger

Similar to commit 111d0bda8eeb ("tools/kvm_stat: Exempt time-based counters"), we should not show timer values in kvm_stat. Remove the new halt_wait_ns.

Fixes 87bcc5fa092f ("KVM: stats: Add halt_wait_ns stats for all architectures")
Cc Jing Zhang <[email protected]>
Cc Stefan Raspl <[email protected]>
---
  tools/kvm/kvm_stat/kvm_stat | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
tools/kvm/kvm_stat/kvm_stat +0 -0
index b0bf56c5f120..5a5bd74f55bd 100755

tools/kvm/kvm_stat/kvm_stat class DebugfsProvider(Provider): · line 748

Quoted 8 lines
tools/kvm/kvm_stat/kvm_stat +1 -1
@@ -742,7 +742,7 @@ class DebugfsProvider(Provider):
          The fields are all available KVM debugfs files
 
          """
-        exempt_list = ['halt_poll_fail_ns', 'halt_poll_success_ns']
+        exempt_list = ['halt_poll_fail_ns', 'halt_poll_success_ns', 'halt_wait_ns']
          fields = [field for field in self.walkdir(PATH_DEBUGFS_KVM)[2]
                    if field not in exempt_list]
 

Applied, thanks.

Paolo