From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40331) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VW2gk-0006RP-6h for qemu-devel@nongnu.org; Tue, 15 Oct 2013 07:21:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VW2gf-0005j5-Bz for qemu-devel@nongnu.org; Tue, 15 Oct 2013 07:21:22 -0400 Received: from static.88-198-71-155.clients.your-server.de ([88.198.71.155]:47661 helo=socrates.bennee.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VW2gf-0005iz-5q for qemu-devel@nongnu.org; Tue, 15 Oct 2013 07:21:17 -0400 References: <1381775755-8421-1-git-send-email-mohamad.gebai@polymtl.ca> <1381775755-8421-5-git-send-email-mohamad.gebai@polymtl.ca> From: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: <1381775755-8421-5-git-send-email-mohamad.gebai@polymtl.ca> Date: Tue, 15 Oct 2013 12:21:15 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [RFC PATCH v3 4/5] Update documentation for LTTng ust tracing List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mohamad Gebai Cc: Mohamad Gebai , qemu-devel@nongnu.org mohamad.gebai@gmail.com writes: > Signed-off-by: Mohamad Gebai > --- > docs/tracing.txt | 31 +++++++++++++++++++++++++++++++ > 1 file changed, 31 insertions(+) > > diff --git a/docs/tracing.txt b/docs/tracing.txt > index bfc261b..64683db 100644 > --- a/docs/tracing.txt > +++ b/docs/tracing.txt > @@ -214,6 +214,37 @@ The "ust" backend uses the LTTng Userspace Tracer library. There are no > monitor commands built into QEMU, instead UST utilities should be used to list, > enable/disable, and dump traces. > > +Package lttng-tools is required for userspace tracing. After running Qemu, LTTng > +should be able to list all available events: > + > + lttng list -u Running this gives me: UST events: ------------- None Before or after running qemu. What is the mechanism lttng expects to find out all these events? > + > +Create tracing session: > + > + lttng create mysession > + > +Enable events: > + > + lttng enable-event qemu:g_malloc -u > + > +Where the events can either be a comma-separated list of events, or "-a" to > +enable all tracepoint events. Start and stop tracing as needed: > + > + lttng start > + lttng stop > + > +View the trace: > + > + lttng view > + > +Destroy tracing session: > + > + lttng destroy > + > +Babeltrace can be used at any later time to view the trace: > + > + babeltrace $HOME/lttng-traces/mysession--