Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp432875rwb; Wed, 18 Jan 2023 20:28:41 -0800 (PST) X-Google-Smtp-Source: AMrXdXuTMUnR1wv+ELVN/+47NUkyVTdTWTjszuLbSRdpZvU53aL2HyEO3UNgsu2O4eMvbHp9tGX6 X-Received: by 2002:a17:907:6c16:b0:86f:5636:4712 with SMTP id rl22-20020a1709076c1600b0086f56364712mr10633963ejc.7.1674102521254; Wed, 18 Jan 2023 20:28:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674102521; cv=none; d=google.com; s=arc-20160816; b=mlJuwQjZzweB+ezMa6md2MGvf6UnjVTF6Qzu3IhaC7NeXt6ZY9db9jbwpEX94KrNRY SqngE+r+xSl1zn7erUeY+qVh7jgqRJPCraY6yu1r81H0eMRtAc4Ak+fL+FLsWnFlcMu4 7cRAZH8uM7uHXh45A8NzW80dcVZ6GW2xaB9LXVLGy2SMVQaQn2e24w607GGpRQuNX6LL GF3lsFt4v2keZsd2DB8E6aO3v/j/u9rY9hxw3dgFEvBm/dUvcyufL0yi5ADTxJI/JU9S 9sQ5InYWP8INbcAM0z4zSfEPXWobf+oz9eEz5sEaSYsP11RxGkfsy6Bxx3VSmYm8W7dI g0bA== 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=F+fcs99BzJ33D8av0RVHWVGuixO1LHHigNEZpA14R/A=; b=lL3lOr+aCCvty3spDH+O0J85gXMQh6lirdBDCcQnx384cuOFCwdm1bgVKJp8Jc6wI0 OQTRbj2wBmcPyj//G2ytVmpr6anhWaBLcQoftNZc8b/hs2miWoArx76VOTsY3okcLVAs wkpFYPmcfPfMOsvqFBKrSw23M8qiXx5NASuasFBLgYisXfhlIiQLTiizId1FnH45rx9W IyzSGl7IwFyzpAWZFOMh/kl1QcFLMK/RdAQvrwu/S0lYR89npR4n7MuNhLxj73AWzx1Y VhWgjkB9VGBI4/tLWKpDd0156uPo7DeMnzTXc1ObIocv6DNWN5aSyqh56Rlg57jX5HDV sAcQ== 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 dt17-20020a170907729100b0084d1d7fbd27si42482612ejc.205.2023.01.18.20.28.30; Wed, 18 Jan 2023 20:28:41 -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 S230491AbjASE0S (ORCPT + 44 others); Wed, 18 Jan 2023 23:26:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230106AbjASD5E (ORCPT ); Wed, 18 Jan 2023 22:57:04 -0500 Received: from out199-2.us.a.mail.aliyun.com (out199-2.us.a.mail.aliyun.com [47.90.199.2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 283B75EF86; Wed, 18 Jan 2023 19:55:05 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R481e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045170;MF=renyu.zj@linux.alibaba.com;NM=1;PH=DS;RN=19;SR=0;TI=SMTPD_---0VZs-RX4_1674100188; Received: from 30.0.176.247(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0VZs-RX4_1674100188) by smtp.aliyun-inc.com; Thu, 19 Jan 2023 11:49:50 +0800 Message-ID: Date: Thu, 19 Jan 2023 11:49:47 +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.1 Subject: Re: [PATCH v8 1/9] perf pmu: Add #slots literal support for arm64 To: John Garry Cc: Xing Zhengjun , Will Deacon , James Clark , Mike Leach , Leo Yan , 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: <1673940573-90503-1-git-send-email-renyu.zj@linux.alibaba.com> <1673940573-90503-2-git-send-email-renyu.zj@linux.alibaba.com> <06d33eb8-d2a9-4792-fa83-c64059ab7326@oracle.com> From: Jing Zhang In-Reply-To: <06d33eb8-d2a9-4792-fa83-c64059ab7326@oracle.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-10.0 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A,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/17 下午4:45, John Garry 写道: > On 17/01/2023 07:29, Jing Zhang wrote: >> The slots in each architecture may be different, so add #slots literal >> to obtain the slots of different architectures, and the #slots can be >> applied in the metric. Currently, The #slots just support for arm64, >> and other architectures will return NAN. >> >> On arm64, the value of slots is from the register PMMIR_EL1.SLOT, which >> I can read in /sys/bus/event_source/device/armv8_pmuv3_*/caps/slots. >> PMMIR_EL1.SLOT might read as zero if the PMU version is lower than >> ID_AA64DFR0_EL1_PMUVer_V3P4 or the STALL_SLOT event is not implemented. >> >> Signed-off-by: Jing Zhang > > Reviewed-by: John Garry Thank you John!