Re: [PATCH] perf: introduce option --reset

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

 



On Mon, Jan 23, 2017 at 04:03:21PM +0530, Nitesh Konkar wrote:

> @@ -9570,16 +9570,17 @@ qemuDomainSetPerfEvents(virDomainPtr dom,
>      if (def) {
>          for (i = 0; i < nparams; i++) {
>              virTypedParameterPtr param = &params[i];
> -            enabled = param->value.b;
> +            state = param->value.i;

NACK, this semantic change is not backwards compatible - this will break
all applications & language bindings currently using libvirt perf events.

In addition "reset" is not really a state - "enabled" / "disabled" are
stats - 'reset' is an action that is applied to an existing state. So
modelling 'reset' as a state is wrong too IMHO.

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://entangle-photo.org       -o-    http://search.cpan.org/~danberr/ :|

--
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]
  Powered by Linux