aboutsummaryrefslogtreecommitdiff
path: root/arch/mips/kvm
diff options
context:
space:
mode:
authorGravatar Jing Zhang <jingzhangos@google.com> 2021-08-02 16:56:29 +0000
committerGravatar Paolo Bonzini <pbonzini@redhat.com> 2021-08-20 16:06:32 -0400
commitf95937ccf5bd5e0a6bbac2b8e65a87982ffae403 (patch)
tree82b3b81fd8a262ba5962e9ea09fe085ab319e8f9 /arch/mips/kvm
parentKVM: SVM: AVIC: drop unsupported AVIC base relocation code (diff)
downloadlinux-f95937ccf5bd5e0a6bbac2b8e65a87982ffae403.tar.gz
linux-f95937ccf5bd5e0a6bbac2b8e65a87982ffae403.tar.bz2
linux-f95937ccf5bd5e0a6bbac2b8e65a87982ffae403.zip
KVM: stats: Support linear and logarithmic histogram statistics
Add new types of KVM stats, linear and logarithmic histogram. Histogram are very useful for observing the value distribution of time or size related stats. Signed-off-by: Jing Zhang <jingzhangos@google.com> Message-Id: <20210802165633.1866976-2-jingzhangos@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/mips/kvm')
-rw-r--r--arch/mips/kvm/mips.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/mips/kvm/mips.c b/arch/mips/kvm/mips.c
index af9dd029a4e1..75c6f264c626 100644
--- a/arch/mips/kvm/mips.c
+++ b/arch/mips/kvm/mips.c
@@ -41,8 +41,6 @@
const struct _kvm_stats_desc kvm_vm_stats_desc[] = {
KVM_GENERIC_VM_STATS()
};
-static_assert(ARRAY_SIZE(kvm_vm_stats_desc) ==
- sizeof(struct kvm_vm_stat) / sizeof(u64));
const struct kvm_stats_header kvm_vm_stats_header = {
.name_size = KVM_STATS_NAME_SIZE,
@@ -85,8 +83,6 @@ const struct _kvm_stats_desc kvm_vcpu_stats_desc[] = {
STATS_DESC_COUNTER(VCPU, vz_cpucfg_exits),
#endif
};
-static_assert(ARRAY_SIZE(kvm_vcpu_stats_desc) ==
- sizeof(struct kvm_vcpu_stat) / sizeof(u64));
const struct kvm_stats_header kvm_vcpu_stats_header = {
.name_size = KVM_STATS_NAME_SIZE,