Re: [PATCH 1/4 V2] libvirt: Add new public API virDomainGetPcpusUsage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]