From: Fabio Fantoni Subject: Re: How to enable qemu-dm tracing in XEN Date: Mon, 09 Mar 2015 10:56:55 +0100 Message-ID: <54FD6E67.1070001@m2r.biz> References: <5eba5e27.6272.14bfc79fdf6.Coremail.openlui@126.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5768928733400803469==" Return-path: In-Reply-To: <5eba5e27.6272.14bfc79fdf6.Coremail.openlui@126.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: openlui , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============5768928733400803469== Content-Type: multipart/alternative; boundary="------------050609080402090706050700" This is a multi-part message in MIME format. --------------050609080402090706050700 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Il 09/03/2015 04:00, openlui ha scritto: > Hi: > I want to enable qemu-dm's tracing in XEN. I have built qemu with > "make debug=y tools" command, and found that during building, qemu is > configured with "trace_backend=stderr" option. However, there aren't > any trace log in /var/log/qemu/qemu-dm-{domain_name}.log. I have also > tried to call "trace_event_set_state_dynamic(EVENT_ID, true)" in code, > but there are still no trace info output in log file. > Could anyone give me some advice about it? Thanks. You need also to specify what events to trace, all enabled by default is not possible (can give qemu-dm...log of some gb in short time). You need to add for example this line in domU's xl cfg: device_model_args=["-trace","events=/etc/xen/qemu-trace-options"] And for example this line in /etc/xen/qemu-trace-options for debug problem with new win-pv drivers: xen_platform_log You can specify other and multiple events you need to trace in /etc/xen/qemu-trace-options --------------050609080402090706050700 Content-Type: text/html; charset=windows-1252 Content-Length: 1708 Content-Transfer-Encoding: quoted-printable
Il 09/03/2015 04:00, openlui ha scritto:
Hi:
=A0 =A0 I want to enable qemu-dm's tracing in XEN. I have built qemu with "make debug=3Dy tools" command, and found that during building, qemu is configured with "trace_backend=3Dstderr" option. However, there aren't any =A0trace log in /var/log/qemu/qemu-dm-{domain_name}.log. I have also tried to call "trace_event_set_state_dynamic(EVENT_ID, true)" in code, but there are still no trace info output in log file.
=A0 =A0Could anyone give me some advice about it=3F =A0Thanks.

You need also to specify what events to trace, all enabled by default is not possible (can give qemu-dm...log of some gb in short time).
You need to add for example this line in domU's xl cfg:
device_model_args=3D["-trace","events=3D/etc/xen/qemu-trace-options"]

And for example this line in /etc/xen/qemu-trace-options for debug problem with new win-pv drivers:
xen_platform_log

You can specify other and multiple events you need to trace in /etc/xen/qemu-trace-options --------------050609080402090706050700-- --===============5768928733400803469== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============5768928733400803469==--