Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp2712345pxb; Mon, 6 Sep 2021 03:45:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyghcbPxjfmiaHW9jAgmJoE0z1Z1CbD98IXCxhOcyhA/vw7wefBLfrdsjiHbDnwLpzc521x X-Received: by 2002:a17:906:2bcf:: with SMTP id n15mr13075898ejg.414.1630925137855; Mon, 06 Sep 2021 03:45:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630925137; cv=none; d=google.com; s=arc-20160816; b=wqwjOB5RxE8QLiEL/qmsYF9oFLK/nrjaerofPqGn/xkp5i9sTEU7bKokl0UlGRwLi7 52UHiFgWrNpdZ5adTBACY1oayGtTUbwRyxpggibVeP3Z45NXGFHd2CcS+bvMSD/M5/Wn hY4lB9DEzZQITlhS904aEv8rKCCX8JFUd/oAjjf5D8EMYt4yv+EPxglShzeb9IJA622u 2+SF+JRqYT1C2iZhIxvzkZ1y7NJ0RSlTb78c13+mnMPzedoC0JgiESMA/ioBivnJkq9j 1Issa0R75ZRt8ZiQClwAnz5OmY17Iyyio9C0I+dneIUi5WJRM+p5gfGagwG5uQlralHO WONg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject; bh=vQCLqpByqtKwDC6MKzilNdNgVi1SrzPvGk4c3TQAUUs=; b=GOqAlKi4UOdIC8/1J2I4Sv9xYs9d9a/Pf45yPJzfrk3b7EQtN1iXQ87YEDc84ohy7t 1XcMtyS1FZdMEs8R5QCs4uORgnwWxm9hklv2OUZsEo/+y3VaHyYVSJ1GHGaNC42+7ugh Nj6TkvpTFrNA9v+0do6FnlFvmTS6LzSw1xKRUyzvTt8znF9/2N7vrwM0GAtS9xU6eOKk T00WvTrQoI2a+19dWeV6xJz2Aee9xhX8DXTc3ry0OARYu2VXC+CsKjUT01bSnItc9W1N ImtRCEVbranOXSuOiFbUBDNLQ0vNmUfnWa82oHyMcTUEjRQ4vstQA/GndZPJwNpQoouu KPSw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j18si7709112edp.44.2021.09.06.03.45.14; Mon, 06 Sep 2021 03:45:37 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241668AbhIFJwM (ORCPT + 99 others); Mon, 6 Sep 2021 05:52:12 -0400 Received: from foss.arm.com ([217.140.110.172]:54268 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241287AbhIFJwL (ORCPT ); Mon, 6 Sep 2021 05:52:11 -0400 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 B93E3D6E; Mon, 6 Sep 2021 02:51:06 -0700 (PDT) Received: from [10.57.92.222] (unknown [10.57.92.222]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 74BD13F73D; Mon, 6 Sep 2021 02:51:05 -0700 (PDT) Subject: Re: [PATCH v3 2/2] coresight: Update comments for removing cs_etm_find_snapshot() To: Leo Yan , Mathieu Poirier , Mike Leach , James Clark , Alexander Shishkin , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20210905131237.1035322-1-leo.yan@linaro.org> <20210905131237.1035322-3-leo.yan@linaro.org> From: Suzuki K Poulose Message-ID: <4db83b64-445d-2a04-a130-fd95f9157702@arm.com> Date: Mon, 6 Sep 2021 10:51:02 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210905131237.1035322-3-leo.yan@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Leo On 05/09/2021 14:12, Leo Yan wrote: > 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. As such I would avoid referencing "userspace" function names in the kernel driver. Please could we remove it or make it generic ? Also, remember, perf is not the only userspace tool driving the kernel perf. Cheers Suzuki > > 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. > */ >