From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabio Fantoni Subject: Re: [PATCH] tools: adds tracer on qemu-xen debug configure options Date: Thu, 10 Oct 2013 10:14:53 +0200 Message-ID: <525661FD.3040105@m2r.biz> References: <1380290446-3737-1-git-send-email-fabio.fantoni@m2r.biz> <1380805706.25936.110.camel@kazak.uk.xensource.com> <524D7287.7040107@m2r.biz> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <524D7287.7040107@m2r.biz> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: George.Dunlap@eu.citrix.com, xen-devel@lists.xensource.com, Ian.Jackson@eu.citrix.com, Stefano.Stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org Il 03/10/2013 15:35, Fabio Fantoni ha scritto: > Il 03/10/2013 15:08, Ian Campbell ha scritto: >> On Fri, 2013-09-27 at 16:00 +0200, Fabio Fantoni wrote: >>> When building tools in debug mode (debug=y), pass also >>> --enable-trace-backend=stderr when configuring qemu-xen. >>> Useful to improve debug. >> What does this actually do in practice? More logging >> in /var/log/xen/qemu-dm-$dom.log or something else? > > Yes, I think that stderr backend is good because the log will go on > /var/log/xen/qemu-dm-$dom.log (easy and fast). > To use it must be configured with some qemu parameters, containing the > type of events to log. Setting it with "device_model_args" should be > sufficent instead adding other libxl option, and this should be used > only on some debug case. > All details here: > http://git.qemu.org/?p=qemu.git;a=blob;f=docs/tracing.txt > Any hints on this? >> >>> Signed-off-by: Fabio Fantoni >>> --- >>> tools/Makefile | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/tools/Makefile b/tools/Makefile >>> index e7a983b..77a3522 100644 >>> --- a/tools/Makefile >>> +++ b/tools/Makefile >>> @@ -174,7 +174,7 @@ qemu-xen-dir-force-update: >>> fi >>> ifeq ($(debug),y) >>> -QEMU_XEN_ENABLE_DEBUG := --enable-debug >>> +QEMU_XEN_ENABLE_DEBUG := --enable-debug --enable-trace-backend=stderr >>> else >>> QEMU_XEN_ENABLE_DEBUG := >>> endif >> >