[libvirt] [PATCH] virsh nodecpustats returns incorrect stats of cpu on Linux when the number of online cpu exceed 9.

Eric Blake eblake at redhat.com
Thu Jan 16 13:06:57 UTC 2014


On 01/16/2014 01:09 AM, Bing Bu Cao wrote:

>> Can you also provide a test case to validate this. You just
>> need to get a suitable /proc/cpustat file and save it in the
>> tests/ dir and then include linuxNodeGetCPUStats() using that
>> file.
> I found there is no test case for linuxNodeGetCPUStats() right now, it
> is 'static' there.
> I think adding a new test case to validate linuxNodeGetCPUStats() should
> not only cover this patch.
> 
> What do you think posting another patch to adding the test case?

Adding patches to enhance the testsuite is always a good idea.  Go for it!

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140116/8a0c2278/attachment-0001.sig>


More information about the libvir-list mailing list