From: Mohamad Gebai <mohamad.gebai@gmail.com>
To: qemu-devel@nongnu.org
Cc: stefanha@gmail.com, Mohamad Gebai <mohamad.gebai@polymtl.ca>,
alex.bennee@linaro.org
Subject: [Qemu-devel] [PATCH v5 4/5] Update documentation for LTTng ust tracing
Date: Thu, 24 Oct 2013 20:46:06 -0400 [thread overview]
Message-ID: <1382661967-23561-5-git-send-email-mohamad.gebai@polymtl.ca> (raw)
In-Reply-To: <1382661967-23561-1-git-send-email-mohamad.gebai@polymtl.ca>
Signed-off-by: Mohamad Gebai <mohamad.gebai@polymtl.ca>
---
docs/tracing.txt | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/docs/tracing.txt b/docs/tracing.txt
index bfc261b..bf2e15c 100644
--- a/docs/tracing.txt
+++ b/docs/tracing.txt
@@ -214,6 +214,42 @@ 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. You must ensure that the
+current user belongs to the "tracing" group, or manually launch the
+lttng-sessiond daemon for the current user prior to running any instance of
+QEMU.
+
+While running an instrumented QEMU, LTTng should be able to list all available
+events:
+
+ lttng list -u
+
+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-<date>-<time>
+
=== SystemTap ===
The "dtrace" backend uses DTrace sdt probes but has only been tested with
--
1.8.4.rc3
next prev parent reply other threads:[~2013-10-25 0:47 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-25 0:46 [Qemu-devel] [PATCH v5 0/5] Fix UST backend for LTTng 2.x Mohamad Gebai
2013-10-25 0:46 ` [Qemu-devel] [PATCH v5 1/5] Fix configure script " Mohamad Gebai
2013-10-25 13:18 ` Alex Bennée
2013-10-25 13:50 ` Mohamad Gebai
2013-10-25 14:33 ` Alex Bennée
2013-10-25 16:22 ` Mohamad Gebai
2014-01-14 13:34 ` Stefan Hajnoczi
2013-10-25 0:46 ` [Qemu-devel] [PATCH v5 2/5] Modified the tracetool framework " Mohamad Gebai
2014-01-14 13:33 ` Stefan Hajnoczi
2013-10-25 0:46 ` [Qemu-devel] [PATCH v5 3/5] Adapt Makefiles to the new LTTng ust interface Mohamad Gebai
2013-10-25 0:46 ` Mohamad Gebai [this message]
2013-10-25 11:23 ` [Qemu-devel] [PATCH v5 4/5] Update documentation for LTTng ust tracing Alex Bennée
2013-10-25 0:46 ` [Qemu-devel] [PATCH v5 5/5] Add ust generated files to .gitignore Mohamad Gebai
2013-11-04 16:41 ` [Qemu-devel] [PATCH v5 0/5] Fix UST backend for LTTng 2.x Alex Bennée
2013-12-11 1:45 ` Mohamad Gebai
2014-01-14 13:35 ` Stefan Hajnoczi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1382661967-23561-5-git-send-email-mohamad.gebai@polymtl.ca \
--to=mohamad.gebai@gmail.com \
--cc=alex.bennee@linaro.org \
--cc=mohamad.gebai@polymtl.ca \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).