Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6186633pxb; Mon, 14 Feb 2022 18:03:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJzD+5+J3/q4GPRJth629YmZ2KBotbm4TOYmYEiqKXqka/ogCh1ZQsE3fyifg4go7HTxWJJy X-Received: by 2002:a17:906:14ca:: with SMTP id y10mr1254349ejc.468.1644890625990; Mon, 14 Feb 2022 18:03:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644890625; cv=none; d=google.com; s=arc-20160816; b=o7oucqQfN5Ye24liQV/Rf055fFmHgKNtXoY9bEW8yON8u9ZTLkXt5dyN8CLuOwEyjE ta3lDnvwanZndalzJVpHt51Frv9bxporGLTg/LAklSwVMD7z1Gy6SzBvz6nyFLXglIpU ohGOeGsYdA9PtcYFmvh93iEGP/JEZHfbEfiq2btbArQndULErLtmpnb2WNg858w7obZB ovdjw5ru9Y4AI+T+MozA3wSNqzgLGOImbKteZdik0saKLFMEU4OzjKS0FbxMrNaUOfxM Dv414Jv/3rChsXjSuMU56Mv0e6s2OR/HFW5UH/OWRhQeDPNNhVqDxbHCraBRqSFCOj8i kGcg== 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=f/mqzAe5GAaZHOlHn0LGB1Z9cFfGguU+56k3VF/jLaA=; b=fjEOh/h1QIOA2JhRXF8SvniTxduHJSVR+20cbSsn2k9b3WtJM7NQuOwhjRKtOsMTcL vAHOpNoykTKnTNUBLjtLhc1o2Sravv2RCn2iuQ0biXTSO49kAS0T5jGlBffHQvU9KjvF P6PQmb3eYdk0L0mc/nKsGRDt0c5SWJtsikCd+0E2J/vSl5p1hSh+Xpu8seXN+1Ffuz+M d5Mnip4S8c03djBXV0IDx5lW35NpBid/cjH8Dvo7Q8fGYjCUOLmBjMhblgYwddA+tQy6 9J73drVSF7v2NQYB74Z2QbQf4pJ9mZSKtZNxOg/As6vvGasnz80+bksuBvb/uEksFVFy UYaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hs28si5701290ejc.470.2022.02.14.18.03.23; Mon, 14 Feb 2022 18:03:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233026AbiBOB14 (ORCPT + 99 others); Mon, 14 Feb 2022 20:27:56 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:40140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231968AbiBOB1w (ORCPT ); Mon, 14 Feb 2022 20:27:52 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BE74108BF0; Mon, 14 Feb 2022 17:27:40 -0800 (PST) Received: from kwepemi100005.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4JyNdL1mJlzZfdl; Tue, 15 Feb 2022 09:23:18 +0800 (CST) Received: from kwepemm600003.china.huawei.com (7.193.23.202) by kwepemi100005.china.huawei.com (7.221.188.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Tue, 15 Feb 2022 09:27:38 +0800 Received: from [10.67.101.67] (10.67.101.67) by kwepemm600003.china.huawei.com (7.193.23.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Tue, 15 Feb 2022 09:27:37 +0800 Subject: Re: [PATCH 2/2] perf jevents: Add support for HiSilicon CPA PMU aliasing To: John Garry , Qi Liu , "will@kernel.org" , "mark.rutland@arm.com" CC: "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Zhangshaokun , Linuxarm , References: <20220214114228.40859-1-liuqi115@huawei.com> <20220214114228.40859-3-liuqi115@huawei.com> <1da1252e-59d0-77d1-0419-242528739392@huawei.com> From: "liuqi (BA)" Message-ID: Date: Tue, 15 Feb 2022 09:27:37 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <1da1252e-59d0-77d1-0419-242528739392@huawei.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.101.67] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm600003.china.huawei.com (7.193.23.202) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/2/14 20:04, John Garry wrote: > On 14/02/2022 11:42, Qi Liu wrote: >> Add support for HiSilicon CPA PMU aliasing. >> >> The kernel driver is in drivers/perf/hisilicon/hisi_uncore_cpa_pmu.c >> >> Signed-off-by: Qi Liu > > You realy should cc the perf tool list and maintainers there also. > > Reviewed-by: John Garry > >> +    }, >> +    { >> +        "MetricExpr": "(p0_wr_dat * 64 + p0_rd_dat_64b * 64 + >> p0_rd_dat_32b * 32) / cpa_cycles", >> +        "BriefDescription": "Average bandwidth of CPA Port 0", >> +        "MetricGroup": "CPA", > Hi john, > nit: maybe this should have a more distrinct name got it, will change metric's name next version. > >> +        "MetricName": "p0_avg_bw", >> +        "Compat": "0x00000030", > > JFYI, I have a rewrite of the perf tool system pmu metric support that > will not require us to add the compat here. > great! I'm very glad to test it using CPA PMU. Thanks, Qi >> +        "Unit": "hisi_sicl,cpa" > > Thanks, > John > .