From patchwork Mon Mar 20 20:36:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Leach X-Patchwork-Id: 9635281 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 89A4B602D6 for ; Mon, 20 Mar 2017 20:37:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 78F8D201A4 for ; Mon, 20 Mar 2017 20:37:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6B53620952; Mon, 20 Mar 2017 20:37:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F154C201A4 for ; Mon, 20 Mar 2017 20:37:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=BiF4R759mpWTyj+hk0gbr22OukMMYc0Qb0BuMW6VsPI=; b=etA Iutg+bQpgWs6kgnPoaGVysJD6Z363ouftiRr5SujSIvlDbs8NkIdevneC9WzwQbA38EH3VCB9j4wF JxEChQk7pRikAGlDj4qufEoCHiNQC/mdlhBaDRDN4FXBIeeAt6aGb4pqkI/PwTD2rY5FGax9IbO6z m95XgENFbTxeYecTmg7URA5fywVSmFIJr/8nkNpsptXhshQByfoPMGSETg0AMvqHcDOtRL6zdmaqY tWJ9yqLMpv4LHScs9aXbjBPNMC2xFsE9gczwFcFYYVEqT+hbf1WToShdC+U3dNUvc0Nh+lQTw7STL fNA2O0LAk9Q4TOp3TFoB12raONpIxDA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cq430-0007Ir-8g; Mon, 20 Mar 2017 20:36:58 +0000 Received: from mail-wr0-x22e.google.com ([2a00:1450:400c:c0c::22e]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cq42v-0007HI-AY for linux-arm-kernel@lists.infradead.org; Mon, 20 Mar 2017 20:36:55 +0000 Received: by mail-wr0-x22e.google.com with SMTP id l37so100215746wrc.1 for ; Mon, 20 Mar 2017 13:36:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=6R0q4cSzCkOf/pGzdKNK4u7BzSPopTL9wj0LlSjmu00=; b=UDSGq02MME7njhccM2SEAWJtAoggWVH1S344pXKCiRdU4IkQ6bsubEtHIqLSaon+jh N2LBoZ1HOupyOFxddzAir01InPG0L0+UCpDhifdOwx8S9vonHoDtqi0txBDg842OO+it RIgp96gNauYUGScHnpFF9iWMlC3s4voY8JK8U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=6R0q4cSzCkOf/pGzdKNK4u7BzSPopTL9wj0LlSjmu00=; b=RjGJLYTlxcNiZOBE8mULO6U4CCiPG7L+ayT/TKm04eDV8HIVXlH8SVzjhh+npDnrxM Z4hFUxeLrMp5vOxLEpcZuB8ApFdshm1hdS9p90oDVwrSu2K7ykuE3+cz72hCKKV5YLX9 aef/Igu99DKDLpqACB9UMwhez5XAQHUVogqu6A2SA6hHfBIDQP/vcK9RzbchbWRqQjND CUDJ4hxFAfb0SjD0N/PLS19Te4x5eBMCAAj7vuXATdBLkbnODMngfOgU90tXB4M7XNeX qVZvIC0gcw03CP2o/qRsgKVMuksjgGwhk+oUanNdK9JyoUDkEuLg9gEc0F+xHBGdF1Cx lmbQ== X-Gm-Message-State: AFeK/H0CG/pkaODccKsYLVen7eEDwYqky+VesZroAsaWp0LYU2ub8TzQCTVmcqys8OktFgh3 X-Received: by 10.223.175.81 with SMTP id z75mr27344804wrc.3.1490042191592; Mon, 20 Mar 2017 13:36:31 -0700 (PDT) Received: from linaro.org (cpc116592-blbn11-2-0-cust240.10-1.cable.virginm.net. [80.5.18.241]) by smtp.gmail.com with ESMTPSA id b91sm4460733wrd.29.2017.03.20.13.36.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 20 Mar 2017 13:36:30 -0700 (PDT) From: Mike Leach To: linux-arm-kernel@lists.infradead.org, mathieu.poirier@linaro.org Subject: [PATCH] documentation: trace: Clarification of perf usage with coresight. Date: Mon, 20 Mar 2017 20:36:18 +0000 Message-Id: <1490042178-2547-1-git-send-email-mike.leach@linaro.org> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170320_133653_653209_BCBF356E X-CRM114-Status: UNSURE ( 9.36 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mike Leach MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Update to the coresight.txt documentation to clarify the specification of the trace sink when using 'perf record' Signed-off-by: Mike Leach --- Documentation/trace/coresight.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/trace/coresight.txt b/Documentation/trace/coresight.txt index d1033aa..e8af562 100644 --- a/Documentation/trace/coresight.txt +++ b/Documentation/trace/coresight.txt @@ -243,6 +243,12 @@ linaro@linaro-nano:~$ perf record -e cs_etm//u --per-thread linaro@linaro-nano:~$ perf record -C 0,2-3 -e cs_etm//k +Note that after a trace run, the sink will be disabled, so it must be +re-enabled before the next 'perf record' command is executed. +Alternatively the sink may be specified as part of the perf command line: + +linaro@linaro-nano:~$ perf record -e cs_etm/@20010000.etb/u --per-thread + As of this writing two ETM/PTM specific options have are available: cycle accurate and timestamp (please refer to the Embedded Trace Macrocell reference manual for details on these options). By default both are disabled but using