From: Ian Campbell Subject: Re: [PATCH] libxl: pass debug flag down to libxl_domain_suspend Date: Tue, 5 Feb 2013 14:27:28 +0000 Message-ID: <1360074448.17017.83.camel@zakaz.uk.xensource.com> References: <256d59b2bc8a41387655.1359648303@probook.site> <1360062439.17017.39.camel@zakaz.uk.xensource.com> <20130205141630.GA11093@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130205141630.GA11093@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Tue, 2013-02-05 at 14:16 +0000, Olaf Hering wrote: > On Tue, Feb 05, Ian Campbell wrote: > > > On Thu, 2013-01-31 at 16:05 +0000, Olaf Hering wrote: > > > # HG changeset patch > > > # User Olaf Hering > > > # Date 1359648298 -3600 > > > # Node ID 256d59b2bc8a413876559dc8daf4c52ba46677de > > > # Parent 12455da211d4e841692b2374086356a87eb74ff7 > > > libxl: pass debug flag down to libxl_domain_suspend > > > > > > libxl_domain_suspend is already prepared to handle LIBXL_SUSPEND_DEBUG, > > > and xl migrate handles the -d switch as well. Pass this flag down to > > > libxl_domain_suspend, so that finally xc_domain_save can dump huge > > > amount of debug data to stdout. > > > Update xl.5 and help text output. > > > > > > Signed-off-by: Olaf Hering > > > > > > diff -r 12455da211d4 -r 256d59b2bc8a docs/man/xl.pod.1 > > > --- a/docs/man/xl.pod.1 > > > +++ b/docs/man/xl.pod.1 > > > @@ -387,6 +387,10 @@ domain. See the corresponding option of > > > > > > Send instead of config file from creation. > > > > > > +=item B<-e> > > > > You mean -d here. > > > > I wonder if we should make this option a bit more obscure (e.g. a long > > option only) ? Or tie it to verbose > 5 or something? > > I'm not sure how to create a long only option. I've not tried it but I think where normally for -c/--cpus you would have: {"cpus", 0, 0, 'c'}, ... case 'c': ... You can also have non-char keys in the last field (val) e.g. {"foo", 0, 0, 0x100}, ... case 0x100: ... (0x100 because that's not an ascii character so no clash). > But if it has to be > specified two or three times to really enable it, that would be ok for > me. Will send v3 of this change shortly. I was trying to avoid swallowing one of the lower case letters (which are finite) for a rarely used debug option, rather than worrying about people enabling it by mistake, so -d -d -d doesn't really help. Ian.