From patchwork Mon May 17 13:17:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Clark X-Patchwork-Id: 12261949 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=-12.1 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,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 8412EC433ED for ; Mon, 17 May 2021 13:23:31 +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 4119F61059 for ; Mon, 17 May 2021 13:23:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4119F61059 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=JY8UfF2lXj77UkCIRcy2wDj1s0ITmc9SnDxj+hVt2/8=; b=JPcnw9VnDKEAh0dAczrf5iHUQk DryFhmmLr+g+zskOTG1aUiSah1MsbGVs67z4qbWKkdCai1ELg0hWy0q/MsrlR6ta2zZGZVhPx7d82 w3Pbi5J3G+ZysDTplOhEFQNfVaiA510pHQ1JqDq2H2ualaEIcmFLl9iap5clkHhTZtjx8kVgoMQgy bAev/Ry75SzrhjtoeS+/N77UmZ15t3ogmQkltebn0Jps7lCrR7YDGbK+gglCOEm2b7nFJOv6wI+OK a3dO9ovgvIzi1ujV3aSZVM/yIhE1qjBBmBGlxyo4kmi+0jpOdsYLEFLPan2xdos1OKhlY1SDJVpC0 QBB8i01A==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lid9q-00F2na-K6; Mon, 17 May 2021 13:19:55 +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 1lid8O-00F2RO-41 for linux-arm-kernel@desiato.infradead.org; Mon, 17 May 2021 13:18:12 +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=3AnaaJ7zVmASdePTXDFVhXGq1yyhVk1nerfT5UKIJ5Q=; b=L6A2FdCmKgSoSQ9u2tLsEsOBRj NgBen3HKQLF9fbc8WS09jnnT1XpIZR4aTIyx1dae5DeXLZhi8JMI2p4qJDyamZxKE/VuhLYgzvTZm +zTHk+5EhyInR27bni3Abp1IXjVGNdcZkfPEIHBLTCHWFcAl4bwSy2wiCemZcKCcUY6VUEKdIaLRv YBsSwa8oWN47jTJkgpjBFfka6cGVBT6+X6jLAvSZ3MR2SyWYfPi7WoKAdtqIc5b2A/W/gR2A7+35E RZIZVi8hr/ImSgEsWIvHEFC0Vqow+DRZ0n2sRXZ/2ClBlaOHXuZIvYEGrxP2ej4ayfCOV1jK5MAjc ps8gvEWA==; Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lid8E-00Dn9d-WE for linux-arm-kernel@lists.infradead.org; Mon, 17 May 2021 13:18:10 +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 305F212FC; Mon, 17 May 2021 06:17:56 -0700 (PDT) Received: from e121896.arm.com (unknown [10.57.3.96]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 49F3C3F73B; Mon, 17 May 2021 06:17:53 -0700 (PDT) From: James Clark To: acme@kernel.org, mathieu.poirier@linaro.org, coresight@lists.linaro.org, leo.yan@linaro.org Cc: al.grant@arm.com, branislav.rankov@arm.com, denik@chromium.org, suzuki.poulose@arm.com, anshuman.khandual@arm.com, James Clark , Mike Leach , 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 v3 0/3] perf cs-etm: Handle valid-but-zero timestamps Date: Mon, 17 May 2021 16:17:38 +0300 Message-Id: <20210517131741.3027-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-20210517_061803_103484_B4FA48D0 X-CRM114-Status: UNSURE ( 5.96 ) 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 v2: * Fix typo in last commit message * Add reviewed-by tags from Leo Yan This patchset applies on top of "[PATCH v3 0/2] perf cs-etm: Set time on synthesised samples to preserve ordering" James Clark (3): perf cs-etm: Move synth_opts initialisation perf cs-etm: Start reading 'Z' --itrace option perf cs-etm: Prevent and warn on underflows during timestamp calculation. .../perf/util/cs-etm-decoder/cs-etm-decoder.c | 45 ++++++++++++++----- tools/perf/util/cs-etm.c | 20 +++++---- 2 files changed, 46 insertions(+), 19 deletions(-)