From patchwork Mon Oct 14 18:35:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mohamad Gebai X-Patchwork-Id: 283374 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 025442C032E for ; Tue, 15 Oct 2013 05:36:58 +1100 (EST) Received: from localhost ([::1]:38289 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVn0i-0001LK-5M for incoming@patchwork.ozlabs.org; Mon, 14 Oct 2013 14:36:56 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48223) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVn0A-00018P-5c for qemu-devel@nongnu.org; Mon, 14 Oct 2013 14:36:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VVn04-0001HN-1J for qemu-devel@nongnu.org; Mon, 14 Oct 2013 14:36:22 -0400 Received: from mail-ie0-x22b.google.com ([2607:f8b0:4001:c03::22b]:52162) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVn03-0001HF-T2 for qemu-devel@nongnu.org; Mon, 14 Oct 2013 14:36:15 -0400 Received: by mail-ie0-f171.google.com with SMTP id at1so15922862iec.30 for ; Mon, 14 Oct 2013 11:36:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0GKk2amWxRR3oIqqB45pmjfSsx9NI+6VA/rWmwg8fnY=; b=QUwXeDHjJc50hsrYxQ5ukPD5WXZmQIvPiI7ic7yLrSB6W4QqsUpM32Z+wBS3vrmyzS ee+1d782cDenBJWDOobNln/jl/X9Ba+QhWz9EWn6e30MESp4umvxuA9oHOudqal42QyB eqnc5gJihAkh6FAWoaB/j0m9PpPA8Oufas1gQmrNhPQpHlr6KFAKBPY5gK7BKOEufvoz 4aZNnecNqaj/mJbDoaw/jV1/PO2KZoumfj5B7u/VH+V/KoMPDei0kNIJmJrejs9eDezm 2uWFZ8c0PRHEzFYFsXF2nvXTDG7dMjkd/FOSoooiKPabmixl+21MO42MZZxa+2FBhI8t LGjA== X-Received: by 10.42.48.202 with SMTP id t10mr5728489icf.9.1381775775285; Mon, 14 Oct 2013 11:36:15 -0700 (PDT) Received: from mogeb-Inspiron-7520.polymtl.ca (Sansfil-Public-Lassonde-222-77.polymtl.ca. [132.207.222.77]) by mx.google.com with ESMTPSA id cl4sm22005279igc.1.2013.10.14.11.36.14 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Oct 2013 11:36:14 -0700 (PDT) From: Mohamad Gebai To: qemu-devel@nongnu.org Date: Mon, 14 Oct 2013 14:35:53 -0400 Message-Id: <1381775755-8421-5-git-send-email-mohamad.gebai@polymtl.ca> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1381775755-8421-1-git-send-email-mohamad.gebai@polymtl.ca> References: <1381775755-8421-1-git-send-email-mohamad.gebai@polymtl.ca> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::22b Cc: Mohamad Gebai , alex.bennee@linaro.org Subject: [Qemu-devel] [RFC PATCH v3 4/5] Update documentation for LTTng ust tracing X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 + +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--