From: Mohamad Gebai Date: Thu, 30 Jan 2014 03:47:57 +0000 (-0500) Subject: Update documentation for LTTng ust tracing X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~386^2~42^2~161^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef3ef4a0408743f3d562cda413e00afb7b782d6b;p=sdk%2Femulator%2Fqemu.git Update documentation for LTTng ust tracing Signed-off-by: Mohamad Gebai Reviewed-by: Alex Bennée Signed-off-by: Stefan Hajnoczi --- diff --git a/docs/tracing.txt b/docs/tracing.txt index bfc261bcaf..bf2e15ce30 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--