From patchwork Sun Sep 12 12:57:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 12486869 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,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 58A9FC433F5 for ; Sun, 12 Sep 2021 13:01:40 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 185E6608FB for ; Sun, 12 Sep 2021 13:01:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 185E6608FB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=I1ILcvZRaY1g/2N23mRhTr0IKNnj3zdeMK+MCxwwlRY=; b=qeruR9+SLuVaAL MjLKaTmttSAK6z91ES47dHvUVJgRQBJsA3XMstAbMMUjLYScHZpGdNEzhZNFpuWOdCj7Au1gXZ+HI 7Txd8SIdtMlwNfOFHU/tth7Z3xTOKAO/D7itkkNjICgSX7RSiS165EpiZjk+P2SByg25RqJRLvzt7 veFFUCbQvkXbhZz1b4YFh9CcWb1IN5pKPsV///NTEpbYRZDA13aLAMYf2KjNtsm+H7to+uEPI0OT1 5HCWQXAbLHGK8V71KghXlobsBCWIrHVGruYbT2xRDQZzzM8qDWjzFcUHUBo7FqximJuxfZgjK0aLL mKC317TurCaV06IuiDQA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mPP58-00GQBk-2h; Sun, 12 Sep 2021 12:59:38 +0000 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mPP54-00GQAZ-2I for linux-arm-kernel@lists.infradead.org; Sun, 12 Sep 2021 12:59:35 +0000 Received: by mail-pj1-x102a.google.com with SMTP id f11-20020a17090aa78b00b0018e98a7cddaso4587268pjq.4 for ; Sun, 12 Sep 2021 05:59:33 -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:mime-version :content-transfer-encoding; bh=gziWymGKd/N4XqAzL2X7+DQr7Q04RE8infD/f3Yvzzc=; b=t60ZqyoRrIwm9pu++xVzotaT7SDxxeGnrvwXGIlQFrQF/R8kty4mAQXqalHm5oPtYT 2zWzj7sTMkRbhGK5yjm3QbpC+/r5qk+e1wuFRaCHd1/iNyyc1JY30ERbRNM40YyrXXqp eZg2+Khl+TFMgUF65TmwWz2MxAJwQqkudRTjFCev+HmIma2EKCuZeMt8RIVEv21pihSa iV3tZ9g1GSzhNol629hEVE9NzmCo0h0BK8MfoY8WzWTwJI7ymtO2ibsrtSCx6XZR+V6D VdLZibP64J1chv6aRlIoJmUUJw23BH/w6qBITGxWzCB0RTyqCrVpNbamUDbjSHeaDXfY vSaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gziWymGKd/N4XqAzL2X7+DQr7Q04RE8infD/f3Yvzzc=; b=QZ9NZlgyIBduh2CpWS8e0pmY7kXTQOA0kEolSu9LKLSfX244mRc9pS+6UEtjH4Exio mxpF8k4sYWwqd97WgZw9TL9sW3UFqb8I762ebK2T17J8OK93EZl/yUn4bs3JJosoPat4 Q0kLjKK7VcBtj92MrFycZOgP3RjkrZ+x0PV94UZcFvKEQagu28d9RmEKzbkEWkaYea1e V9/iaEXvgwZsTDMEmshFsIzaOH0VlFNi060PSE0rLPe5iuDzIz49djJ6784aV6epgQAA 8r2N+4W6A4LRb7DFVuIYCGy7BgGe8n+g4nDqboyosQq4J3RmRta2ygtOT3xE7GOKYDUf 1aCQ== X-Gm-Message-State: AOAM532npkmQFrScgZUB5ClqPErZOJH2K5fpwnpBGiPTzc1VuQGr2Dt9 VxJnAxI8+oqjqN0Q9KfqGkxaFA== X-Google-Smtp-Source: ABdhPJzSftAsePNgPtVUw+6bOeeX+WkMUVMEGjLi5EJHKFKX/eCW6wQ7Jkz/4CYWfjhP0Js49l15xw== X-Received: by 2002:a17:902:d202:b0:13a:709b:dfb0 with SMTP id t2-20020a170902d20200b0013a709bdfb0mr6146219ply.34.1631451572560; Sun, 12 Sep 2021 05:59:32 -0700 (PDT) Received: from localhost ([204.124.181.224]) by smtp.gmail.com with ESMTPSA id e11sm4120094pfn.49.2021.09.12.05.59.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Sep 2021 05:59:32 -0700 (PDT) From: Leo Yan To: Mathieu Poirier , Suzuki K Poulose , Mike Leach , Alexander Shishkin , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Leo Yan Subject: [PATCH v4 0/2] coresight: Fix for snapshot mode Date: Sun, 12 Sep 2021 20:57:46 +0800 Message-Id: <20210912125748.2816606-1-leo.yan@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210912_055934_154820_9A7323C7 X-CRM114-Status: UNSURE ( 9.74 ) 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 This patch series fixes the snapshot mode in the CoreSight driver. The first patch simplifies the head pointer handling for AUX buffer, the second patch updates the driver comments to reflect the latest status for perf tool. Changes from v3: - Made the comments generic in CoreSight drivers (Suzuki). Changes from v2: - Minor improvement the commits for patches 01 and 02. Leo Yan (2): coresight: tmc-etr: Use perf_output_handle::head for AUX ring buffer coresight: Update comments for removing cs_etm_find_snapshot() drivers/hwtracing/coresight/coresight-etb10.c | 5 ++--- drivers/hwtracing/coresight/coresight-tmc-etf.c | 5 ++--- drivers/hwtracing/coresight/coresight-tmc-etr.c | 15 +++++---------- 3 files changed, 9 insertions(+), 16 deletions(-)