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

Re: [libvirt] [PATCH v2 07/10] Add new public API virDomainSetMemoryStatsPeriodFlags



On Mon, Jul 08, 2013 at 03:20:33PM -0400, John Ferlan wrote:
> Add new API in order to set the balloon memory driver statistics collection
> period in order to allow dynamic period adjustment for the virsh dommemstats to
> display balloon stats data
> ---
>  include/libvirt/libvirt.h.in |  3 ++
>  src/driver.h                 |  6 ++++
>  src/libvirt.c                | 65 ++++++++++++++++++++++++++++++++++++++++++++
>  src/libvirt_public.syms      |  5 ++++
>  4 files changed, 79 insertions(+)
> 
> diff --git a/include/libvirt/libvirt.h.in b/include/libvirt/libvirt.h.in
> index b87255a..069cac8 100644
> --- a/include/libvirt/libvirt.h.in
> +++ b/include/libvirt/libvirt.h.in
> @@ -1909,6 +1909,9 @@ int                     virDomainSetMemory      (virDomainPtr domain,
>  int                     virDomainSetMemoryFlags (virDomainPtr domain,
>                                                   unsigned long memory,
>                                                   unsigned int flags);
> +int                     virDomainSetMemoryStatsPeriodFlags (virDomainPtr domain,
> +                                                            int period,
> +                                                            unsigned int flags);

s/Flags// in the name - we only do that if we're replacing an
existing API.

> diff --git a/src/driver.h b/src/driver.h
> index 31851cb..a8964e9 100644
> --- a/src/driver.h
> +++ b/src/driver.h
> @@ -207,6 +207,11 @@ typedef int
>                                unsigned int flags);
>  
>  typedef int
> +(*virDrvDomainSetMemoryStatsPeriodFlags)(virDomainPtr domain,
> +                                         int period,
> +                                         unsigned int flags);

s/Flags// 


> @@ -1158,6 +1163,7 @@ struct _virDriver {
>      virDrvDomainSetMaxMemory domainSetMaxMemory;
>      virDrvDomainSetMemory domainSetMemory;
>      virDrvDomainSetMemoryFlags domainSetMemoryFlags;
> +    virDrvDomainSetMemoryStatsPeriodFlags domainSetMemoryStatsPeriodFlags;

s/Flags//


> diff --git a/src/libvirt_public.syms b/src/libvirt_public.syms
> index 7c6edf6..d4e4834 100644
> --- a/src/libvirt_public.syms
> +++ b/src/libvirt_public.syms
> @@ -627,4 +627,9 @@ LIBVIRT_1.1.0 {
>          virDomainMigrateToURI3;
>  } LIBVIRT_1.0.6;
>  
> +LIBVIRT_1.1.1 {
> +    global:
> +        virDomainSetMemoryStatsPeriodFlags;

s/Flags//


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|


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