Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp2008131pxb; Sun, 5 Sep 2021 06:14:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3nA+3bgp6dwRIkAg4VSsZHBtKOMOSPfev3Cuj3pgxhGkHEoXsBnIYrX+/JTQtomZMMhKE X-Received: by 2002:a05:6e02:2163:: with SMTP id s3mr4130729ilv.172.1630847678761; Sun, 05 Sep 2021 06:14:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630847678; cv=none; d=google.com; s=arc-20160816; b=Cm14nMZjkXD3GoAbPDAmQH42Jh87e9U/slz7OBscRLvjt9cxY3qYscm96rieAC1cdB dl1G7f25BscmUkyMNURL8IFm7pMxgM3zqtz9rUpRFuckAvSkSNrlZoPK+gx4+voUp4YD UXX9jIRwg8CcZkEU6FgnuU+SwuAQq0I+6+MbLwbrtBQmlZ5rXhGqB/vL92dD7mNH+kq3 hPFEbfhsVtLkBcPMsG97+zymx3XVIH3xmONKnKP9997CglwhieD/e51Evu65t7CzC5Bw 9cReRc3FOtYrjdz9QtA6JGPAKBHamhQQck0DTBG70P2LC2BRkoo3LeLT4MkFDhyNC1QU 2gwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BEM00qsPpIRL3lpy7qXqtObj3G0WQJvL4ysVAmwesIc=; b=EZtQIiCuMau8Fz+v4odu15aUdNtNcXUMJrYriu8EJ1CIRmDCVaSP/0AYb7oQYltDnF RfVUWxbin8xtYWxvy6ds6cBQldAS2CZAPBJmZ5n4zJVJi3ury20GqRdesqttQs7gyAQS 3Ak0EKes9BA/cdy0OqjAvnOhlM5yxSR+ZXD2TkrL/jPWk6fK2hK+LmyDyQl6+SvI7Txg /wp0O63j0YhQWoERqjTSWzpokIBp3ubaB2X1dt5dq0VSlmdRf3aMX5bzmYchsOWLwvqw ZETrOgIQaa3i/g8gI2ugH/nn8Cvtt3LF9fH5xqYpioaV6IlhS9yDUvi+GrnW/HAD2YwF jkIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kWZTvvlV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r19si4738841ioa.68.2021.09.05.06.14.27; Sun, 05 Sep 2021 06:14:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kWZTvvlV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237859AbhIENOA (ORCPT + 99 others); Sun, 5 Sep 2021 09:14:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237863AbhIENOA (ORCPT ); Sun, 5 Sep 2021 09:14:00 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FD60C061575 for ; Sun, 5 Sep 2021 06:12:57 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id j2so2338038pll.1 for ; Sun, 05 Sep 2021 06:12:57 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=BEM00qsPpIRL3lpy7qXqtObj3G0WQJvL4ysVAmwesIc=; b=kWZTvvlVS3+U03pD1Mty00yMJgFcyoC4I8DvlHrcLPvBEOLp7rLVzWjGk+2/4TzZ9+ RT87zXTYkK7uQO84gz3LbH+rYlYnUB18E7UovxkrOAbxDNlyVB5nGLQPGz791c2/Z6gj Oo7IDba8LJVc4mn4MHSPhhaT1krJOIDxEAEppux64KlJwMGYeB+EMgwXACe0jNqMZ61d Cb0Co0fhhBEUZ2HvjlbwrbAaiX75MXlVD5oHIdQ0g6rNRYhFRrjwuSYOzRQRwFXg2pcy 6vj888DV4VOs28abRL1IM00tsRr0K1hAO0IYYL4J5y9b2/4ogdeXatMd2PoDdCy8jRyY cNKA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=BEM00qsPpIRL3lpy7qXqtObj3G0WQJvL4ysVAmwesIc=; b=AZOWSQjFK62wSoHmwVi6yQffqs2sRr3B8CBsAxUMnAhUUg5ORvJi2tIejwOKg1ROGI 9VyNyAN9aUAO0n+hTdOy4Exm76S5A/V07XzpFOvKoRu1vR4EgiJipbAEOmnbaMl34K7F tNevZczX8JRs4aC6mNt33XM/mZL5Bafgie9o1inNY3yV4emYWbto0qIYCZhtzpQDztB/ 1edraTqrBtAdy/WoOmR9yUEfaeh+1oL/onAotORdfDSmmveOZVRruU5Izkesd6yVtZl5 0CltXYgDb/ws8dGulo4hqW0ERW3HJU3zi1+aEzvxRd7BEn6dPIH0X+kQQnVbIf/UGK4b ElDQ== X-Gm-Message-State: AOAM532IEfF3G4Kpuzm0Ezy60nNwXr5Et/+eBm2Dtkjr6C65XUsIe7LY 32l5YD0U5aEpY/CpXwQd9TOHMoFD+PiOSv6q7/E= X-Received: by 2002:a17:903:41ce:b0:13a:21a7:1304 with SMTP id u14-20020a17090341ce00b0013a21a71304mr354750ple.65.1630847576575; Sun, 05 Sep 2021 06:12:56 -0700 (PDT) Received: from localhost ([204.124.181.224]) by smtp.gmail.com with ESMTPSA id x9sm4697035pjf.52.2021.09.05.06.12.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Sep 2021 06:12:56 -0700 (PDT) From: Leo Yan To: Mathieu Poirier , Suzuki K Poulose , Mike Leach , James Clark , Alexander Shishkin , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Leo Yan Subject: [PATCH v3 2/2] coresight: Update comments for removing cs_etm_find_snapshot() Date: Sun, 5 Sep 2021 21:12:37 +0800 Message-Id: <20210905131237.1035322-3-leo.yan@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210905131237.1035322-1-leo.yan@linaro.org> References: <20210905131237.1035322-1-leo.yan@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 2f01c200d440 ("perf cs-etm: Remove callback cs_etm_find_snapshot()") has removed the function cs_etm_find_snapshot() from the perf tool in the user space, now CoreSight trace directly uses the perf common function __auxtrace_mmap__read() to calcualte the head and size for AUX trace data in snapshot mode. Updates the comments in drivers to reflect the changes. Signed-off-by: Leo Yan --- drivers/hwtracing/coresight/coresight-etb10.c | 2 +- drivers/hwtracing/coresight/coresight-tmc-etf.c | 2 +- drivers/hwtracing/coresight/coresight-tmc-etr.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-etb10.c b/drivers/hwtracing/coresight/coresight-etb10.c index f775cbee12b8..1cdb627d6c38 100644 --- a/drivers/hwtracing/coresight/coresight-etb10.c +++ b/drivers/hwtracing/coresight/coresight-etb10.c @@ -557,7 +557,7 @@ static unsigned long etb_update_buffer(struct coresight_device *csdev, /* * In snapshot mode we simply increment the head by the number of byte - * that were written. User space function cs_etm_find_snapshot() will + * that were written. User space function __auxtrace_mmap__read() will * figure out how many bytes to get from the AUX buffer based on the * position of the head. */ diff --git a/drivers/hwtracing/coresight/coresight-tmc-etf.c b/drivers/hwtracing/coresight/coresight-tmc-etf.c index cd0fb7bfba68..a895931a2766 100644 --- a/drivers/hwtracing/coresight/coresight-tmc-etf.c +++ b/drivers/hwtracing/coresight/coresight-tmc-etf.c @@ -546,7 +546,7 @@ static unsigned long tmc_update_etf_buffer(struct coresight_device *csdev, /* * In snapshot mode we simply increment the head by the number of byte - * that were written. User space function cs_etm_find_snapshot() will + * that were written. User space function __auxtrace_mmap__read() will * figure out how many bytes to get from the AUX buffer based on the * position of the head. */ diff --git a/drivers/hwtracing/coresight/coresight-tmc-etr.c b/drivers/hwtracing/coresight/coresight-tmc-etr.c index d23c7690f29a..941abb70b827 100644 --- a/drivers/hwtracing/coresight/coresight-tmc-etr.c +++ b/drivers/hwtracing/coresight/coresight-tmc-etr.c @@ -1573,7 +1573,7 @@ tmc_update_etr_buffer(struct coresight_device *csdev, /* * In snapshot mode we simply increment the head by the number of byte - * that were written. User space function cs_etm_find_snapshot() will + * that were written. User space function __auxtrace_mmap__read() will * figure out how many bytes to get from the AUX buffer based on the * position of the head. */ -- 2.25.1