From patchwork Mon Oct 14 17:03:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mohamad Gebai X-Patchwork-Id: 283355 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 0C1EE2C0346 for ; Tue, 15 Oct 2013 04:04:42 +1100 (EST) Received: from localhost ([::1]:38032 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVlZQ-0005c6-3Q for incoming@patchwork.ozlabs.org; Mon, 14 Oct 2013 13:04:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54589) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVlZ1-0005V7-Lw for qemu-devel@nongnu.org; Mon, 14 Oct 2013 13:04:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VVlYv-0005Uo-Sr for qemu-devel@nongnu.org; Mon, 14 Oct 2013 13:04:15 -0400 Received: from mail-ie0-x234.google.com ([2607:f8b0:4001:c03::234]:57476) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVlYv-0005UY-OR for qemu-devel@nongnu.org; Mon, 14 Oct 2013 13:04:09 -0400 Received: by mail-ie0-f180.google.com with SMTP id e14so8459187iej.11 for ; Mon, 14 Oct 2013 10:04:09 -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; bh=IsAJ3Mw1ODAGxP/ymXEPnu4neS1aMZLqaOuIaYXoPWI=; b=YhX5KViP1wUddcKFsR9wbVp7y9xGYkHrfbPm6K3LxM8ESa9b7BkVHyS1Tz/lkQ1rDd /bSgVaPm2n2wtGHt6MxFo4GtN7m7KCm/zG/HKYkWST2JhQSf53cFqUBNy1V5twjWh1+L fRCnAEHZJgUk9PeczeBu0lq5kQ44mDrEIp+k1XPMn51jLIqZOYCciOzAjIEqi50YClkY lr1Pg8T3/Zqk+guhkE62zoruIUocNwEMvIfg4Ki+HreJ2S6nNKilj52oxNk54FYYXbC/ qTO9uY4vrQxoPUQphXUmLCqhuHNqYoFtrYdNl1bsHSeu6BAOg0d866/zmDp5YRi6eBEs 8e3w== X-Received: by 10.42.121.132 with SMTP id j4mr2015117icr.42.1381770248792; Mon, 14 Oct 2013 10:04:08 -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 hv5sm21411390igb.9.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Oct 2013 10:04:07 -0700 (PDT) From: Mohamad Gebai To: qemu-devel@nongnu.org Date: Mon, 14 Oct 2013 13:03:50 -0400 Message-Id: <1381770230-11757-1-git-send-email-mohamad.gebai@polymtl.ca> X-Mailer: git-send-email 1.7.10.4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::234 Cc: Mohamad Gebai , alex.bennee@linaro.org Subject: [Qemu-devel] [RFC PATCH] 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..cbb3aaf 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 EVENTS -u + +Where "EVENTS" is either 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--