Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp760392rwl; Thu, 5 Jan 2023 04:16:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXuehqxLW2UTBnzhotq08d2b7UccjQhJ/Nk+gQwqp/lqOyAYUiqDAeaRofpd+a9xFPpCuMuy X-Received: by 2002:aa7:ca55:0:b0:468:38e5:f233 with SMTP id j21-20020aa7ca55000000b0046838e5f233mr45046837edt.24.1672920967623; Thu, 05 Jan 2023 04:16:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672920967; cv=none; d=google.com; s=arc-20160816; b=KYhMG0fd8a5yVxKScWv0nEmVbDwcuIsBHtxFHj87TdIrFfAzfF6rIyNgDbeyapcF7J pBfmP5f4JPJIwJuP4eDWUtzGu9PcozV2JNifXgIO/F92BI0fEhWsja0AS2xafyqkBZqo bJiPC08Y5twOu1UM4oGCi7miPwdt/gPx3o7C7iqek2H1zraLcNQsYeXT810FTdiz9WF0 zM8BH7mCFdJyPPsog4VKFVN89T2IZsfjxzLQh/7PO4F5RM0BX7WrPGUEICzx8/RzS/oh AcLQPknmFTyeSUH1YVM8OVYYaGN2Iz2tfAblxZrdgMA873E/p3GqaXfcgw7s9jxX7l1S IF0A== 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=47+NuajrI8hNSOPGmJzLyeScGAuaMvge533l2HM2Fng=; b=fE4xDjDxlanwcHnz5iN3Gu+CQ1VFGQw36hmcYIdVEPeBLTLdstU7jBQ+4N+CVLB0s7 j1fP0aE5gm3SsGA9BxZixJeYdj6TK2/LEU91BK3hnVmejhjCCPvigQJFuBnV58eENSFM Vz3Y/Q4pkZo5F5MpeWUKId55Naow+Y74PIRLuYOaxM/FyPrRd607NN/1oO+szW17TeBF YOEFpCYNabxBk75qFYasYhLtxf3C6Dplf00tqAZNaf4PvPwGiL8ml2wZ7HYg80ztOlC0 tURJT+M2Sa9jWyIgOYzdex01pWrpbSHxbk1P2QWbI6iGGnYx48iVIqHyx0XTCORx/q3o v32g== 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 w18-20020a056402269200b0045782fcb80asi35514947edd.225.2023.01.05.04.15.54; Thu, 05 Jan 2023 04:16:07 -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 S231933AbjAELCX (ORCPT + 55 others); Thu, 5 Jan 2023 06:02:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233245AbjAELCL (ORCPT ); Thu, 5 Jan 2023 06:02:11 -0500 Received: from out30-44.freemail.mail.aliyun.com (out30-44.freemail.mail.aliyun.com [115.124.30.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAD71568A4; Thu, 5 Jan 2023 03:02:09 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=renyu.zj@linux.alibaba.com;NM=1;PH=DS;RN=20;SR=0;TI=SMTPD_---0VYviAaI_1672916524; Received: from 30.221.147.24(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0VYviAaI_1672916524) by smtp.aliyun-inc.com; Thu, 05 Jan 2023 19:02:06 +0800 Message-ID: <23dbcc2c-4166-6502-3666-b3657483e186@linux.alibaba.com> Date: Thu, 5 Jan 2023 19:02:04 +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> <1f3d53cb-4160-e29d-3934-d6a488d9fd49@linux.alibaba.com> <7aa225df-af25-a6be-9bef-c965488ba43a@oracle.com> <00bf227a-75ce-c63c-c740-89b8d2b27e1c@oracle.com> From: Jing Zhang In-Reply-To: <00bf227a-75ce-c63c-c740-89b8d2b27e1c@oracle.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,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/5 下午6:13, John Garry 写道: > Maybe during runtime we could create a pseudo metric/event for SLOT. This metric would be created during init, and it always just returns the value which was read from PMMIR_EL1. > > I'm not sure how well that would play will trying to resolve metrics when building generated pmu-events.c, but I don't think it's all too difficult to achieve. > I'll try it in the v7 patch. I want to release the v6 patch first, to correct a mistake I made. :) > Have you actually read this value for the n2 core? Does look correct? Yes, I read it in n2 and it has a value of 5 which is correct. If the STALL_SLOT event is not implemented, PMMIR_EL1.SLOT might read as zero.