Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp2705112pxb; Mon, 6 Sep 2021 03:33:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvU4UBdv6WjR0VZKS767u7mJFJCiqJu1kWwN5UkVEIgLOffJKpYxgbwK9D7ESB4wRCWFxd X-Received: by 2002:a05:6402:cab:: with SMTP id cn11mr12748063edb.293.1630924418582; Mon, 06 Sep 2021 03:33:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630924418; cv=none; d=google.com; s=arc-20160816; b=nwUdFYR+dJoebtWdWpYcMR2zBJzSsLMvBTJ0tCWk3TVQnYq8qMrqlPv7/vONFsAmS0 wW+nBPK6LIeOKYutCUJ8zCAP8J7XkJFHijlkGXl4ad6DgiljThTnI76RoPitgS8scG2b gY4+MJmfAZuxEsedeVs1eog/ictKf2Io6z16loH8IN3861lA0CEzLj/L2kuMqMONPFpP fwLzTWhQn2bkpPvvEDGwubm3K63IkPtMczK7BJiTHw0nKxOF47Tjb2h+cupQhmbGunPJ WNsC9vjAed7yPrg6Lk8s8J+fjI9fmY2jTjAxn1v6XprlYvv2PkqeDAtLZWG00Cy/4qbm 0G9Q== 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 :cc:to:subject; bh=APaoQ8M8K8G3tqloAh+ow4luYRxefu6BKQDp66MB/fg=; b=k/PoNALZ9nrpxyGI6Ak8xCaIaqK21cAwP2+6Ew2pp+64c5FY134C/F1GsNz0/JIeG3 RupThOxPSUTT5a753vm9TDRGgzH/KcMhU8fvPgeMn3tvIAXA/wW4Bd/NRaAxrPD2mFFR IS/GhMQvtl4ZDoCH/EqdIwDvwEazzIVuIQOWacfsJagf5YMriXEZE2gxebDW4l6kymFa 7HoBlFfvxUe/xvWJan/aKZF/r5S9vZn+2Kc2+fQpwL57q88DX3CJvE+zP04ZgBAx2Dwt auXDT+sZSXPH/m/YQ67EDVODJSVf3fU+N82HjN1xOEBp5w+uQb6nWT5WC8uaI8J65c5N dTWQ== 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 di6si7676494edb.606.2021.09.06.03.33.14; Mon, 06 Sep 2021 03:33: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; 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 S241958AbhIFKcg (ORCPT + 99 others); Mon, 6 Sep 2021 06:32:36 -0400 Received: from foss.arm.com ([217.140.110.172]:54656 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232527AbhIFKcb (ORCPT ); Mon, 6 Sep 2021 06:32:31 -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 CFD276D; Mon, 6 Sep 2021 03:31:26 -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 9310B3F73D; Mon, 6 Sep 2021 03:31:25 -0700 (PDT) Subject: Re: [PATCH v3 2/2] coresight: Update comments for removing cs_etm_find_snapshot() To: Leo Yan Cc: 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> <4db83b64-445d-2a04-a130-fd95f9157702@arm.com> <20210906102849.GA1164772@leoy-ThinkPad-X240s> From: Suzuki K Poulose Message-ID: Date: Mon, 6 Sep 2021 11:31:24 +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: <20210906102849.GA1164772@leoy-ThinkPad-X240s> 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 On 06/09/2021 11:28, Leo Yan wrote: > Hi Suzuki, > > On Mon, Sep 06, 2021 at 10:51:02AM +0100, Suzuki Kuruppassery Poulose wrote: >> 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 ? > > Okay, I'd like to remove the specific function name from the comment so > can make the comment generic as: > > "User space will figure out how many bytes to get from the AUX buffer > based on the position of the head." Yes please, that sounds perfect. Cheers Suzuki