From patchwork Fri Apr 16 10:56:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Clark X-Patchwork-Id: 12207411 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNWANTED_LANGUAGE_BODY, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D5500C433B4 for ; Fri, 16 Apr 2021 10:59:00 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8C5BB610CE for ; Fri, 16 Apr 2021 10:59:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8C5BB610CE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc: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=VxcJ8A2wRVvpEITyfoFGW7lJ14p2sVGt3necmEtDRQI=; b=mLOwVbbotw9u6+IPA1iUM3U42k O0NCwxGHe2no6oxGnp03eQrDsEILRnJsfngPVw8ss8VQva5Errk/XAnbkDTe6Q3P/icnPbG9EPcxa cR07gAVTDesRnlYlR3EViQNkX97AjA2CC5jXcCFtFnan3pFrzUora+5iV575WlvCqECd5rsAaKFYQ C8yLPSfGMI7CjsS3A5rrxFMnJVwDbqUWyJCS5SjBZCzG7OKcs8GFeCf1jDVQtI/x1XtHT5e0I+/EM Lbzy67Pb8DtBqWHg9vf84fP3hWlLU/T68rOktGZTzc1Ww1JUTMREUMjUSUqPEUUbHkFQB6CnhbTDG AOnJnsrg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lXM9Z-001ouJ-JM; Fri, 16 Apr 2021 10:56:49 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lXM9V-001osz-R8 for linux-arm-kernel@desiato.infradead.org; Fri, 16 Apr 2021 10:56:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=5mXKPZjyAsOFMJ6VpWrlyWIBRTzSkCkBeuNuGN37ZA8=; b=Xw+ed6o3UoQXLQpfPaCh6RLXfd ZcKaQ/aIONnxB5H+81qhoNy9hKaUfUeg+5S8f+Mzd0aCyNNpbovzlTFZDYlEU1MousTpd83CAPxrL Xoe2Fgnkc/jrFtpm0fR3qye7V/FvfoLPX2UB8JRhzDFpRWnLeKUwmXo8+iYodVT8ewiCjWhr8Mjsn zGjbWgNhDLprOEwbdI+QMmssX87AHAbAI8WrFzsBb2ntleKAj86UixZNoYd2n0DafeVUzdSVZ4RQ5 WNRLmfyF042xzu8DVv5c/vUsNxPD+rDoNMn3IYiksIXN09Kl8n/KOvWIOtm39hfU4fdJ8laLzHP5/ 0kC4AmMw==; Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lXM9T-009IHS-8H for linux-arm-kernel@lists.infradead.org; Fri, 16 Apr 2021 10:56:44 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 72ADB106F; Fri, 16 Apr 2021 03:56:40 -0700 (PDT) Received: from e121896.arm.com (unknown [10.57.57.112]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id BB6ED3F85F; Fri, 16 Apr 2021 03:56:37 -0700 (PDT) From: James Clark To: coresight@lists.linaro.org, mathieu.poirier@linaro.org, acme@kernel.org Cc: al.grant@arm.com, branislav.rankov@arm.com, denik@chromium.org, suzuki.poulose@arm.com, James Clark , Mike Leach , Leo Yan , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , John Garry , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] perf cs-etm: Set time on synthesised samples to preserve ordering Date: Fri, 16 Apr 2021 13:56:30 +0300 Message-Id: <20210416105632.8771-1-james.clark@arm.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210416_035643_354445_6E556209 X-CRM114-Status: UNSURE ( 6.33 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Changes since v1: * Improved variable name from etm_timestamp -> cs_timestamp * Fixed ordering of Signed-off-by James Clark (2): perf cs-etm: Refactor timestamp variable names perf cs-etm: Set time on synthesised samples to preserve ordering .../perf/util/cs-etm-decoder/cs-etm-decoder.c | 18 +++---- tools/perf/util/cs-etm.c | 52 ++++++++++--------- tools/perf/util/cs-etm.h | 4 +- 3 files changed, 39 insertions(+), 35 deletions(-)