Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1031654pxb; Sun, 12 Sep 2021 06:02:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZKoTD0QBwgr8f/iD3Tr0RC2pyG0cASIdyfWoJs4RGfWaHjQMgocBbEKTRk+MSEWYLKF99 X-Received: by 2002:a6b:e905:: with SMTP id u5mr4976090iof.116.1631451764773; Sun, 12 Sep 2021 06:02:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631451764; cv=none; d=google.com; s=arc-20160816; b=TdzCVc/+1mm9cWxF4Gxb+huGfpOgMgsBC78K6eTtiv8XwBejHNYSh0dfrGBV49nAx2 rc4LMLr/gbGAKcGefTv4EnVr1fLRO5DgnjY5j8IUEIttiLbp9g9jHmKh22jAOGIgztki 3VSfkgEasjHWCdxoVgZx1rxVWexGD0gIzi6BY9uGpjztc71hpIU+NtSkF/qYhfI9eOQf yo0/EmesLZQLCzOsbseP+BoYpsHql2k9wNCgxoA8KWv5Pj3Zz5Voc0GBwpLKq1PPgmiU MYgV/0P7M26rMLHIkKB2xmjaQRYKAoc3U43GCWIz7KaQP7PGK7K7mW2dE0pdccoUXMB/ kXOg== 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=LUjyxV8BtGhFPa51IbiHrjlhZUEm+8dMwVn2qq2CO44=; b=p64eE+aXcsIuO6tjoyphcD1ce7Q8g36nkc3zXfwoOr207KUdSRwNtvDfTMPE/JUxo2 6cjpS8Nyf2FM3PTH2ubfHisMjyeiK23ztMF155qDy+WFz3iJ0/108g9cEJWEwdiCTTjF brvjgm5FYpwRbEtrIlvgSosk0gVoDHYuoTGsw1SV9jeTzT/KMBZDEAMU8UnLaix1KMtm tkxoO0x0s1Tgpw8Qwriao531CxPHiSFaqpsLLySpPcc6LB+KHs/uXm4ZvjKUu3GW2YCH QLutqKkeaRFUxohycvdd+L2kdeaemsIEZ9NwDe6gRrgFNKjiiMwKc9hLxJszkaLpsrns n/0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cK2ur31i; 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 i31si4163449jac.56.2021.09.12.06.02.32; Sun, 12 Sep 2021 06:02:44 -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=cK2ur31i; 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 S235295AbhILNA5 (ORCPT + 99 others); Sun, 12 Sep 2021 09:00:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235247AbhILNAy (ORCPT ); Sun, 12 Sep 2021 09:00:54 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 420F0C061574 for ; Sun, 12 Sep 2021 05:59:40 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id f65so6278769pfb.10 for ; Sun, 12 Sep 2021 05:59:40 -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=LUjyxV8BtGhFPa51IbiHrjlhZUEm+8dMwVn2qq2CO44=; b=cK2ur31iPfkXfQPbzTRryVz5JXP9qqDMwSSqgEym/7idT16odJ+izdxuVLUsxGhaCz TaIbawNHSecwZaYHlfzHGxS2L0KfmU0rf0Pe3xd6pIRP+kgPC28Nkx5P6F66BzdVEdxL bEG8ixtYaT0uNDKSTOxpn3ta8WvYHIGhiszSDEZF0598oTVhHyltK9lRnpD9rsJ7rTep Rl7eVWGL25cMOYMc/nBhHMhBcy6Id0drToaZbdkHI4MTOlKRgy14AvKVg23/C5kCuW5J WhxfS7yrvpQHjyJBO8zR2Yqk7qeOXxN9kthHA0hhkJWcEaZjFDSBU1y4jRP5PT2fo5L8 05fQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=LUjyxV8BtGhFPa51IbiHrjlhZUEm+8dMwVn2qq2CO44=; b=lOrIUInk4RZwJhpB0MIy8BjGcZIjdxDzPN4msFZDVa/MKScUtnGEpS0o1rBDPZMkV6 OMDpOe/8sS3xU7Fsx/LEyQeqWp5nLL2Y/ovI51X6EC+x4nXntD4pndDsZrehh/GkRrxz a5tlVT7wqcLya5je5yam1vx0BGn/QHiQaR303slv9cyUgBofZSAG9qumWq+0Dp5pwEFI 54JId/YDvatQuDibx7/TcxHHcMGArEnTXJwV5FoS2lY61h0hmrv5vu+7XgJn5MT3LWjA ynpywEOozowGenu0ANMhq4Mo3zct11+B6WGz4LuRdUpND/xswxuDmeW4w63GsNejw/Ns J9ww== X-Gm-Message-State: AOAM532Yyrf6RKIU4HmAON6CFYUBpYkBCMDN9dP9YQP45YM063Ts726M XhIPUnV5xLJjrUgTXEKwI0ncLw== X-Received: by 2002:a63:5663:: with SMTP id g35mr6523750pgm.368.1631451579735; Sun, 12 Sep 2021 05:59:39 -0700 (PDT) Received: from localhost ([204.124.181.224]) by smtp.gmail.com with ESMTPSA id t10sm4617334pge.10.2021.09.12.05.59.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Sep 2021 05:59:39 -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 2/2] coresight: Update comments for removing cs_etm_find_snapshot() Date: Sun, 12 Sep 2021 20:57:48 +0800 Message-Id: <20210912125748.2816606-3-leo.yan@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210912125748.2816606-1-leo.yan@linaro.org> References: <20210912125748.2816606-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. This patch updates the comments in drivers to make them generic and not stick to any specific function from perf tool. Signed-off-by: Leo Yan --- drivers/hwtracing/coresight/coresight-etb10.c | 5 ++--- drivers/hwtracing/coresight/coresight-tmc-etf.c | 5 ++--- drivers/hwtracing/coresight/coresight-tmc-etr.c | 5 ++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-etb10.c b/drivers/hwtracing/coresight/coresight-etb10.c index f775cbee12b8..efa39820acec 100644 --- a/drivers/hwtracing/coresight/coresight-etb10.c +++ b/drivers/hwtracing/coresight/coresight-etb10.c @@ -557,9 +557,8 @@ 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 - * figure out how many bytes to get from the AUX buffer based on the - * position of the head. + * that were written. User space will figure out how many bytes to get + * from the AUX buffer based on the position of the head. */ if (buf->snapshot) handle->head += to_read; diff --git a/drivers/hwtracing/coresight/coresight-tmc-etf.c b/drivers/hwtracing/coresight/coresight-tmc-etf.c index cd0fb7bfba68..b416b1951d3e 100644 --- a/drivers/hwtracing/coresight/coresight-tmc-etf.c +++ b/drivers/hwtracing/coresight/coresight-tmc-etf.c @@ -546,9 +546,8 @@ 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 - * figure out how many bytes to get from the AUX buffer based on the - * position of the head. + * that were written. User space will figure out how many bytes to get + * from the AUX buffer based on the position of the head. */ if (buf->snapshot) handle->head += to_read; diff --git a/drivers/hwtracing/coresight/coresight-tmc-etr.c b/drivers/hwtracing/coresight/coresight-tmc-etr.c index d23c7690f29a..ce14eb83925c 100644 --- a/drivers/hwtracing/coresight/coresight-tmc-etr.c +++ b/drivers/hwtracing/coresight/coresight-tmc-etr.c @@ -1573,9 +1573,8 @@ 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 - * figure out how many bytes to get from the AUX buffer based on the - * position of the head. + * that were written. User space will figure out how many bytes to get + * from the AUX buffer based on the position of the head. */ if (etr_perf->snapshot) handle->head += size; -- 2.25.1