]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: stats: Add halt polling related histogram stats
authorJing Zhang <jingzhangos@google.com>
Mon, 2 Aug 2021 16:56:33 +0000 (16:56 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 20 Aug 2021 20:06:33 +0000 (16:06 -0400)
commit6412f4a6aa8f58d780eb23e0ab5ff28e1fe747b6
tree97477fd66bb78bfde851b94edda51f9513aac4c2
parentf0f7f1e89bfbd8ed398a2b15e88f3b7b8ef3bfdc
KVM: stats: Add halt polling related histogram stats

Add three log histogram stats to record the distribution of time spent
on successful polling, failed polling and VCPU wait.
halt_poll_success_hist: Distribution of spent time for a successful poll.
halt_poll_fail_hist: Distribution of spent time for a failed poll.
halt_wait_hist: Distribution of time a VCPU has spent on waiting.

Signed-off-by: Jing Zhang <jingzhangos@google.com>
Message-Id: <20210802165633.1866976-6-jingzhangos@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/powerpc/kvm/book3s_hv.c
include/linux/kvm_host.h
include/linux/kvm_types.h
virt/kvm/kvm_main.c