Re: [libvirt] [PATCH 1/2] perf: Refactor perf code

2016-12-23 Thread Martin Kletzander
On Thu, Dec 22, 2016 at 07:36:14PM +0530, Nitesh Konkar wrote: Avoid unnecessary calling of function vshCommandOptStringReq. In the current code the function vshCommandOptStringReq is called irrespective of whether --enable and/or --disable is present in the command line. Eg: 'virsh perf domainNa

[libvirt] [PATCH 1/2] perf: Refactor perf code

2016-12-22 Thread Nitesh Konkar
Avoid unnecessary calling of function vshCommandOptStringReq. In the current code the function vshCommandOptStringReq is called irrespective of whether --enable and/or --disable is present in the command line. Eg: 'virsh perf domainName' also results in calling this function twice. This patch fixes