Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp12798952rwl; Tue, 3 Jan 2023 21:52:34 -0800 (PST) X-Google-Smtp-Source: AMrXdXvskrn1Ipki4NAvsW3qOqLuyzFncbbrGdvKKm2rIGVd3FcGVkmJth3aB9bL0ZePdVmnTv6B X-Received: by 2002:a17:902:74ca:b0:18d:dd85:303f with SMTP id f10-20020a17090274ca00b0018ddd85303fmr50259640plt.22.1672811554445; Tue, 03 Jan 2023 21:52:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672811554; cv=none; d=google.com; s=arc-20160816; b=sXjKXmPRpzzWkYYQD90Z+5ncEF2RGTfnzwv1kQmYwsCKEP0cZpUcHsCFfCH8DrWLel ylm0Yg/Poj6nAUG1lczvJMX6IEGWfTYlp5b1jKvvlTANHAQWJ0Q3pT502jUvh+4ezWd1 g1JW+zHS+X081l/xQIsgWLRr0mBTTiTIGRtUdfXzi9NkPLfPF36/oJYIz4PNT4XHX3fg iaSfkALcr9/aDX8N/ungx26RUZ+2/ZU7NcmRZXUJvtSEnzsbtVtQJX6xX6G4YZNY+Zcq n82mK4zHKEiVu28awGcC7+oDFH/vC52HWs4agp6aCn18uy7HTmGhUqD/4hhK5ztTLFeV uN/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=wZwgFXXoNgMi8KftH4xAMITyMblubFOZlMKd7hj65CQ=; b=tonxqiJieTggvFs8o8jAPVmKuafJg0moBZUr9Ot1zizGz/FMPGUAFq9c/KlwcVk95K mkGWvjem6rrVU3wSdqQ74rzZ34WtaM1oBnXVUKoHrmvT926TfkJpl973PrGciheI8V8C giUAYKUDNzUyorLQPrsmIEsViCjngYXQOqYPp8oWIOB3GeuP/Gz5QiZEiQWN56UPVFOg cqqt2aRkQyntqQfWqRPz49UPpLdxliLUrpO/EUbd7MKto9H6UcErV6temtJL86I3TBhe no9awv6RSzDjNhLakm+Rq4or+IottCelMOK9WiCTR7gTfHavTKikcC3D9FYLN7LZjl0o IkHQ== 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=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m5-20020a170902f64500b001899e4b37d2si32294598plg.74.2023.01.03.21.52.24; Tue, 03 Jan 2023 21:52:34 -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=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229590AbjADFGK (ORCPT + 57 others); Wed, 4 Jan 2023 00:06:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbjADFGI (ORCPT ); Wed, 4 Jan 2023 00:06:08 -0500 Received: from out30-54.freemail.mail.aliyun.com (out30-54.freemail.mail.aliyun.com [115.124.30.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 223F5140CF; Tue, 3 Jan 2023 21:06:05 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R151e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046056;MF=renyu.zj@linux.alibaba.com;NM=1;PH=DS;RN=20;SR=0;TI=SMTPD_---0VYqFGmo_1672808760; Received: from 30.221.147.98(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0VYqFGmo_1672808760) by smtp.aliyun-inc.com; Wed, 04 Jan 2023 13:06:02 +0800 Message-ID: <1f3d53cb-4160-e29d-3934-d6a488d9fd49@linux.alibaba.com> Date: Wed, 4 Jan 2023 13:05:59 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH v5 1/6] perf vendor events arm64: Add topdown L1 metrics for neoverse-n2 To: John Garry , Ian Rogers , Xing Zhengjun , Will Deacon , James Clark , Mike Leach , Leo Yan Cc: linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Andrew Kilroy , Shuai Xue , Zhuo Song References: <1672745976-2800146-1-git-send-email-renyu.zj@linux.alibaba.com> <1672745976-2800146-2-git-send-email-renyu.zj@linux.alibaba.com> <5c5716e5-b2ff-67cd-b608-4eeffa7e04bc@oracle.com> From: Jing Zhang In-Reply-To: <5c5716e5-b2ff-67cd-b608-4eeffa7e04bc@oracle.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.0 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, USER_IN_DEF_SPF_WL 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 在 2023/1/3 下午7:52, John Garry 写道: > On 03/01/2023 11:39, Jing Zhang wrote: >> The formula of topdown L1 on neoverse-n2 is from ARM sbsa7.0 platform >> design document [0], D37-38. > > I think that I mentioned this before - if the these metrics are coming from an sbsa doc, then they are standard. As such, we can make them "arch std events" and put them in a common json such as sbsa.json, so that other cores may reuse. > > You don't strictly have to do do this now, but it would be better. > Hi John, I would really like to do this, but as discussed earlier, slot is different on each architectures. If I do not specify the value of the slot in sbsa.json, then in the json file of n2/v1, I need to overwrite each topdown "MetricExpr". In other words, the metrics placed in the sbsa.json file only reuse "BriefDescription", "MetricGroup" and "ScaleUnit". So I'm not sure if it's acceptable? In addition, James mentioned that if the units and names and group names of different architectures are not unified, it will become complicated. Perhaps we could do it later. Thanks, Jing