From patchwork Thu May 13 14:35:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Clark X-Patchwork-Id: 12255879 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=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, 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 7380BC433ED for ; Thu, 13 May 2021 14:38:02 +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 4096861285 for ; Thu, 13 May 2021 14:38:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4096861285 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:References:In-Reply-To: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:List-Owner; bh=Oy9d4xuVg+mGfxe/JI0iJa1Bvd3GAJgLV+1ZVyyXlIA=; b=HAvNM3EF+vO8sx7ZqhpjNIGKE 1nqgstRKVx5YMK5j538EmfbOkOTkDvcntOPwlPNNjymmWAUUy/TLadFvlWUDJNz7JBnefs1ciM2Cb 9U/2Ovy2EhSPTbThRlZo1duZzSpW0SUf76JDLkdo7LpMJLFydlivjVmmPPgZxMEf6DmtS47KLBPO0 Rn8ifgsG0b8mVEjHTU+ZlRkOYodrsFZtL/Og83Pn/E7uhmEBPUDB3XM1WfgbvfRXPpbbn6dXVXDDh BELBfNUnfh3smgmzaLc/nU9pfgdqOwr2vKZLX6VeiA0HZp/KkLzKi0AiNW9wYRMKJrwMPHHwYo/y/ 9aDQ8wzOg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lhCRM-005lB9-Cb; Thu, 13 May 2021 14:35:52 +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 1lhCRD-005l9E-5S for linux-arm-kernel@desiato.infradead.org; Thu, 13 May 2021 14:35:43 +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:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=6TELskiZ8CsBfG7PdGAmEpl7UmdIuFSextqZn+xuTD8=; b=jPyqzBqBBG00JewDI9/JPTvh8u +sND8FcyhnRO5Ivr1jrUQfB9xmBDLmaHErfpKGVn6BSs8gj9TyRnk/jCYzC6oLHoEWbmPucDqn5tE 3tUGyL6XPnMMcUSCmzKI4cz43W7CXymP9GSd0Cxl4esYQ3ViEqTRBDOrGEb8C/bWLVwLUBwL74Dfv 4ThJ1BpId9sFsnSWFXOT2URWz1yfTXNUSf4lUimICn+zMWbqcefhqRPfyVeXoXxqt6WYfGNBWPCGX ioR7GPxGd6XKDdttH3QhrB4z/Sl/Uo0LHHJ1RLoEHcecJF7lXCCOeTuMAszA1H8MKDs6tre4LBC/W lHSj87Kw==; Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lhCRA-00BKA5-Hp for linux-arm-kernel@lists.infradead.org; Thu, 13 May 2021 14:35:41 +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 E491B175D; Thu, 13 May 2021 07:35:38 -0700 (PDT) Received: from e121896.arm.com (unknown [10.57.81.122]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 162F53F73B; Thu, 13 May 2021 07:35:35 -0700 (PDT) From: James Clark To: 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 , Mathieu Poirier , linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/3] perf cs-etm: Start reading 'Z' --itrace option Date: Thu, 13 May 2021 17:35:19 +0300 Message-Id: <20210513143520.22694-3-james.clark@arm.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20210513143520.22694-1-james.clark@arm.com> References: <20210513143520.22694-1-james.clark@arm.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210513_073540_653758_2E1B8FF4 X-CRM114-Status: UNSURE ( 9.37 ) 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 Recently the 'Z' --itrace option was added to override detection of timeless decoding. This is also useful in Coresight to work around issues with invalid timestamps on some hardware. When the 'Z' option is provided, the existing timeless decoding mode will be used, even if timestamps were recorded. Signed-off-by: James Clark --- tools/perf/util/cs-etm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/perf/util/cs-etm.c b/tools/perf/util/cs-etm.c index a752fe06f170..64536a6ed10a 100644 --- a/tools/perf/util/cs-etm.c +++ b/tools/perf/util/cs-etm.c @@ -2473,6 +2473,10 @@ static bool cs_etm__is_timeless_decoding(struct cs_etm_auxtrace *etm) struct evlist *evlist = etm->session->evlist; bool timeless_decoding = true; + /* Override timeless mode with user input from --itrace=Z */ + if (etm->synth_opts.timeless_decoding) + return true; + /* * Circle through the list of event and complain if we find one * with the time bit set.