Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp483010pxv; Thu, 1 Jul 2021 02:37:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpA2ph0Q/yWjcdv1Q91qIn+fj8cNY101IhrwROFqCrzq8b5x/GnBjAbRS1d1QLC6x1vBdT X-Received: by 2002:a5d:904c:: with SMTP id v12mr11473505ioq.95.1625132258507; Thu, 01 Jul 2021 02:37:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625132258; cv=none; d=google.com; s=arc-20160816; b=D2+5QdfQsbEm3roSVcTbJMdyYsERXa6ODHaFZBE/fbcLR3cQjmsWMTYa52RYPvBbwf G3XpaDLxB4KKIRMthAOOYFepPbYKDwCM+7zX4jr8vmRw3Tm4PMqWKnKuWonxevBwoQgR rx4n8Wx39qDDbCgvHxcgCaZZhHuTfKNpqHk/cmBL0aLTvaRftQ8IpNJvG/6pwRWLqFXb Qxsj4M7fVvsIxtVbEtRdy6oFWw+X1tmddaEcq8Zav+4NXU8+9CV7EEoqyNie4FPf3tI3 pZBW9uR+rxr7riMnmGRO4eTBTOsy8P8orQ5uKote0QW1oUe+Lhz0tTL+Bdxer5NHMRsb qkTw== 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=q4ZZRhosUp1CcazcGUG0vt93v9b9C4M9CrUlbcO8C/g=; b=IXqBhtyJiUQzC8QXQpqABf+tpm+ydYbuT2PysKcT1ilZ5+WprUMBsoC5H2PhiVVGe6 MeO4XWU5E/K05vNe9X79HN/UmKi7hxicKXFUTcwQCOeVZYRvSR3qEoxzc6AjweEvYtQx ncQmNmWfkb0C8ga0KOOLRxj4bB+panNHRfBbVoNf3lk+bt3YQo7YMBt0tUsAKHGj00mv VmNV8t0HQWOWHbIKhirmibmilKgAAaAFW/oM+CwqkX6Cl9cW53YpX/9zozkqTXoDSDvo Q1uR0P2u7NTBtvkDmKpsi+rpTnGA8bkRB66/9k7XZPQKzS/VJAktXJEMDLI/cZtD4dhp 9OKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MtlUQfUR; 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 k9si30949681ilo.95.2021.07.01.02.37.26; Thu, 01 Jul 2021 02:37: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=MtlUQfUR; 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 S235839AbhGAJi2 (ORCPT + 99 others); Thu, 1 Jul 2021 05:38:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235798AbhGAJi1 (ORCPT ); Thu, 1 Jul 2021 05:38:27 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25845C0617A8 for ; Thu, 1 Jul 2021 02:35:57 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id n9so891204plf.7 for ; Thu, 01 Jul 2021 02:35: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=q4ZZRhosUp1CcazcGUG0vt93v9b9C4M9CrUlbcO8C/g=; b=MtlUQfURw0WXxxuNuMUXgJ+/ERQOOr5yxWHEW6MLQz7DV3RQdXBVsyHega5LHmSPUj kTqz3i3YRsz0VPKwCJN6ofcUQNMW/eicuwOOsk5AUIkp+8pG55er1Q2inHHuvvorNsae ahDHfw8nXjtsgRn7KKIYoHLGfMQwPi2C6oV2pTRSev4Y9Uh4Zsp+XCwlaugPsnGPork6 S1QRmOuKCgWphlOIkXezNIGyUIQ5rBmiBhiUsyMHhpdLv6GcaFbUKVQvHuenl2QfdwOl Fg54SQbIHecKRnZoLzj7Bd49iBxdAKYNO1dBq2ur7BxrlSe/0tmUNIWI7dPyw9+mLIHQ 0ZTw== 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=q4ZZRhosUp1CcazcGUG0vt93v9b9C4M9CrUlbcO8C/g=; b=VttqOJEYiNuOGI84AG3PhaZcAFLjrUsprq5sxWQMPg5cQ7ptJkmM7RcIPTzRzcwWnK YC1y+s6wdWLhrtCwd0h44KmqbaJWTvF82EhEcz+9ZfY1PF7R5rD0cIdaajjFq1NGiEzl hsdxs2gY5hxpunmzL6OU+nsnMzsLUdj8uQp2bCbnnXg7yGdDaZL6qXeCtB4/8Lad9S1l ow6rT9iBz5X7tcDoJIZg+Hb+drQrU/F0xFaluIGQxxZcVZE5JuqfuZz/aqYj0WXZV8+p PTpx++vXnNxqV0pmOOIG2H6dWOdCkan68jWNUikWjI6qRCPJYKoDeQzRl0Sjnaxh/YD+ Reeg== X-Gm-Message-State: AOAM532PtsD5eaOj08Ft38z4poV6kYjevBMwvm1yH+/ApcuVYP4GlDUc W9yOJhF/mCJD2JKwHbEEET7WvA== X-Received: by 2002:a17:903:1243:b029:ed:8298:7628 with SMTP id u3-20020a1709031243b02900ed82987628mr35822148plh.11.1625132156604; Thu, 01 Jul 2021 02:35:56 -0700 (PDT) Received: from localhost ([202.131.71.237]) by smtp.gmail.com with ESMTPSA id a33sm15459119pga.68.2021.07.01.02.35.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jul 2021 02:35:56 -0700 (PDT) From: Leo Yan To: Arnaldo Carvalho de Melo , Mathieu Poirier , Suzuki K Poulose , Mike Leach , James Clark , Alexander Shishkin , John Garry , Will Deacon , Peter Zijlstra , Ingo Molnar , Mark Rutland , Jiri Olsa , Namhyung Kim , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Daniel Kiss , Denis Nikitin Cc: Leo Yan Subject: [PATCH v2 3/3] coresight: Update comments for removing cs_etm_find_snapshot() Date: Thu, 1 Jul 2021 17:35:37 +0800 Message-Id: <20210701093537.90759-4-leo.yan@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210701093537.90759-1-leo.yan@linaro.org> References: <20210701093537.90759-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 Since the function cs_etm_find_snapshot() has been removed in the user space, it 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 45b85edfc690..fec8ef3694cf 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 b22823d67680..960515e01171 100644 --- a/drivers/hwtracing/coresight/coresight-tmc-etr.c +++ b/drivers/hwtracing/coresight/coresight-tmc-etr.c @@ -1555,7 +1555,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