Received: from eggs.gnu.org ([2001:4830:134:3::10]:55508) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSjBC-0005FN-2P for qemu-devel@nongnu.org; Wed, 26 Mar 2014 04:27:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSjB5-0000vN-MI for qemu-devel@nongnu.org; Wed, 26 Mar 2014 04:27:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:20962) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSjB5-0000vI-Cl for qemu-devel@nongnu.org; Wed, 26 Mar 2014 04:27:15 -0400 Date: Wed, 26 Mar 2014 09:27:07 +0100 From: Stefan Hajnoczi Message-ID: <20140326082707.GE25917@stefanha-thinkpad.muc.redhat.com> References: <1395680694-27758-1-git-send-email-alex.bennee@linaro.org> <20140325095627.GO17172@stefanha-thinkpad.redhat.com> <8761n2nxix.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <8761n2nxix.fsf@linaro.org> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] trace: teach lttng backend to use format strings List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex =?iso-8859-1?Q?Benn=E9e?= Cc: Mohamad Gebai , mohamad.gebai@gmail.com, qemu-devel@nongnu.org, vilanova@ac.upc.edu On Tue, Mar 25, 2014 at 02:49:42PM +0000, Alex Benn=E9e wrote: >=20 > Stefan Hajnoczi writes: >=20 > > On Mon, Mar 24, 2014 at 05:04:54PM +0000, alex.bennee@linaro.org wrot= e: > >> From: Alex Benn=E9e > >>=20 > >> This makes the UST backend pay attention to the format string argume= nts > >> that are defined when defining payload data. With this you can now > >> ensure integers are reported in hex mode if you want. > >>=20 > >> Signed-off-by: Alex Benn=E9e > >> --- > >> scripts/tracetool/__init__.py | 13 +++++++++++-- > >> scripts/tracetool/backend/ust.py | 16 ++++++++++++---- > >> 2 files changed, 23 insertions(+), 6 deletions(-) > > > > How are strings handled, can LTTng copy them from the QEMU process' > > memory space? >=20 > lttng provides ctf_string for passing strings to the payload. But I > wouldn't expect to use them for the result of format string calculation= s > as that would defeat the point of the low impact tracing. >=20 > There are a number of trace-events that pass strings for various things. > I've not actually experimented with the output of any of them though. Sounds like it should work but can you test it? Try enabling the bdrv_open_common() trace event when booting a guest. You should see the filename of the disk image file. Stefan