KVM: selftests: Add checks for histogram stats bucket_size field
authorJing Zhang <jingzhangos@google.com>
Mon, 2 Aug 2021 16:56:31 +0000 (16:56 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 20 Aug 2021 20:06:32 +0000 (16:06 -0400)
commitd49b11f080b77f5bd66eec938e01b87a16ef201f
tree222f061c4ba72555f997ebed3a52e9405a5b2ea6
parent0176ec51290f8ef543a8c18a02e932d6ccedbbc5
KVM: selftests: Add checks for histogram stats bucket_size field

The bucket_size field should be non-zero for linear histogram stats and
should be zero for other stats types.

Reviewed-by: David Matlack <dmatlack@google.com>
Signed-off-by: Jing Zhang <jingzhangos@google.com>
Message-Id: <20210802165633.1866976-4-jingzhangos@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/kvm_binary_stats_test.c