[libvirt] [PATCHv2 1/5] lib: Introduce API for retrieving bulk domain stats

2014-08-26 Thread Peter Krempa
The motivation for this API is that management layers that use libvirt usually poll for statistics using various split up APIs we currently provide. To get all the necessary stuff, the app needs to issue a lot of calls and agregate the results. The APIs I'm introducing here: 1) Returns data in a

Re: [libvirt] [PATCHv2 1/5] lib: Introduce API for retrieving bulk domain stats

2014-08-26 Thread Eric Blake
On 08/26/2014 08:14 AM, Peter Krempa wrote: The motivation for this API is that management layers that use libvirt usually poll for statistics using various split up APIs we currently provide. To get all the necessary stuff, the app needs to issue a lot of calls and agregate the results.

Re: [libvirt] [PATCHv2 1/5] lib: Introduce API for retrieving bulk domain stats

2014-08-26 Thread Peter Krempa
On 08/26/14 18:49, Eric Blake wrote: On 08/26/2014 08:14 AM, Peter Krempa wrote: +typedef int +(*virDrvDomainListGetStats)(virConnectPtr conn, +virDomainPtr *doms, +unsigned int ndoms, +unsigned int

Re: [libvirt] [PATCHv2 1/5] lib: Introduce API for retrieving bulk domain stats

2014-08-26 Thread Eric Blake
On 08/26/2014 11:28 AM, Peter Krempa wrote: On 08/26/14 18:49, Eric Blake wrote: On 08/26/2014 08:14 AM, Peter Krempa wrote: Would it make sense for @flags to provide the same filtering as virConnectListAllDomains(), for selecting a subset of domains to get stats on? But can