KVM: stats: Add halt_wait_ns stats for all architectures
Add simple stats halt_wait_ns to record the time a VCPU has spent on waiting for all architectures (not just powerpc). Signed-off-by: Jing Zhang <jingzhangos@google.com> Message-Id: <20210802165633.1866976-5-jingzhangos@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
d49b11f080
commit
87bcc5fa09
7 changed files with 8 additions and 5 deletions
|
|
@ -1452,7 +1452,8 @@ struct _kvm_stats_desc {
|
|||
STATS_DESC_COUNTER(VCPU_GENERIC, halt_poll_invalid), \
|
||||
STATS_DESC_COUNTER(VCPU_GENERIC, halt_wakeup), \
|
||||
STATS_DESC_TIME_NSEC(VCPU_GENERIC, halt_poll_success_ns), \
|
||||
STATS_DESC_TIME_NSEC(VCPU_GENERIC, halt_poll_fail_ns)
|
||||
STATS_DESC_TIME_NSEC(VCPU_GENERIC, halt_poll_fail_ns), \
|
||||
STATS_DESC_TIME_NSEC(VCPU_GENERIC, halt_wait_ns)
|
||||
|
||||
extern struct dentry *kvm_debugfs_dir;
|
||||
|
||||
|
|
|
|||
|
|
@ -87,6 +87,7 @@ struct kvm_vcpu_stat_generic {
|
|||
u64 halt_wakeup;
|
||||
u64 halt_poll_success_ns;
|
||||
u64 halt_poll_fail_ns;
|
||||
u64 halt_wait_ns;
|
||||
};
|
||||
|
||||
#define KVM_STATS_NAME_SIZE 48
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue