[libvirt] [PATCH 1/4 V2] libvirt: Add new public API virDomainGetPcpusUsage
Richard W.M. Jones
rjones at redhat.com
Thu Jan 5 14:23:46 UTC 2012
On Wed, Jan 04, 2012 at 12:09:18PM +0800, Lai Jiangshan wrote:
> +int virDomainGetPcpusUsage(virDomainPtr dom,
> + unsigned long long *usages,
> + int *nr_usages,
> + unsigned int flags);
It'd be useful to get feedback from libvirt folk about whether this
API is reasonable.
> +/**
> + * virDomainGetPcpusUsage:
> + * @dom: pointer to domain object
> + * @usages: returned physic cpu usages
'physical'
> + * @nr_usages: length of @usages
> + * @flags: flags to control the operation
> + *
> + * Get the cpu usages per every physic cpu
'physical'
I think this needs to describe what exactly is returned. Nanoseconds
since the domain started, I assume?
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
More information about the libvir-list
mailing list