Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2449041rwd; Fri, 2 Jun 2023 09:31:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ427jbSrfw6Xgdltd0+159FxP8sQHU7D8/OxOFpnb9BdE+dY/8FaoeCHRzFvywpPtcvpr5S X-Received: by 2002:a05:6a20:9382:b0:10b:cc13:5ac8 with SMTP id x2-20020a056a20938200b0010bcc135ac8mr10725920pzh.27.1685723470514; Fri, 02 Jun 2023 09:31:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685723470; cv=pass; d=google.com; s=arc-20160816; b=s7zcAZT9iBWcqva1JlVoCvOXbzLWg8d0ixqSlhV99X9LEI3ivp35BRe2Q26y9MWjFA ItGxSZliByoWslvBwUZuR54E1fMkGrAhZNv6JdWKFBNaZO0SiEKe4L0e5NnJJiGT++jt 6yjEbDTuemM9ErRPFK/WMrIKhBGC98rCkkkuo6wS7gdb0Rh7bshySS2rFlv5SJJZqWQU 2yLSWWJh07M+PHNKuMsZu2dHm7JhR7I1W7RP1WUGoBxvlgwd5SJNfMTupEo/Agfs0pJA HSfr+/ghQMfXQW3yW8wU0FHZVxL9SeOl3v1xglBpSIuX4+27DzUZlyEq5l8oOI6Uywzo wd7A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:organization:from:content-language:references:cc:to :subject:user-agent:date:message-id:dkim-signature:dkim-signature; bh=SEmv04P5IJ1YDdVIBJo2GtXMGWtt4iG+ucEAoBaJEH8=; b=Dla8rxWqRlDXsvFT3O+Cj7ozklqQezhudtJw51+YC3XvmcCZPn9E7Qbq3nKxV1eQDA 4TulgInNjAHiWuSiD9ArUbKaqlIo/4N4Z8iziSaD+vyGoiC6Vkhkmn9a0Ps7djm4bXID gd1P+NnZMUAw89S/APoMJjzOVTqlYIjyDtENHb87busP+3HW4wOm9ev7ANcIrOze87AQ utBoUFkEOdwDO15i9GOLyFhlysTEvwO1w0XTcn0eqeU24QvuK2+8s43pgbE7CE3qRdA6 kUv7bU5qjLQvHFbHes4yrhBO5pCB6UlzEhkhEFOKwl6WFZzSc0vvCy/ucfXSFlMksBIO WHpg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=lDJ4SjMP; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=cxZkQUa6; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e12-20020a65478c000000b0053fbb10e6basi1210715pgs.494.2023.06.02.09.30.55; Fri, 02 Jun 2023 09:31:10 -0700 (PDT) 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; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=lDJ4SjMP; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=cxZkQUa6; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236259AbjFBQWW (ORCPT + 99 others); Fri, 2 Jun 2023 12:22:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235751AbjFBQWT (ORCPT ); Fri, 2 Jun 2023 12:22:19 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 298EDE59; Fri, 2 Jun 2023 09:22:02 -0700 (PDT) Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 352D0w4l021401; Fri, 2 Jun 2023 16:20:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-03-30; bh=SEmv04P5IJ1YDdVIBJo2GtXMGWtt4iG+ucEAoBaJEH8=; b=lDJ4SjMPoTdSJIdziwn2NBa+R69QCxbc8XnLdhXIFyQcDN2eess2A4kcGj9ZUnTj96zR 8pb0f0yD2lqMxisqAcCxVwBtozXBEBk2GLUh++173n/aiqZSCbZE4Om80tyqznmgG3cV OGrZE2npbmmNjmp//AjTy6A8tSGNvQyErvoS0pIdAbd2i/96Oy+q/eS4r6fnNHTnN4Fs kwZJnuLNR/Myfwss4g+eOPy1mtnh88cttwfha4H8wu4VJgbrECssobSXPm6kjR1XL35t PuXvuP3WOslI1RvH7J+7nnQ75fmBXCLB67elv7cPpw/s/d9aFz0DXSQ54TaSyYYhvbc5 aw== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3qvhb9b9u6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 02 Jun 2023 16:20:41 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 352G30UA040741; Fri, 2 Jun 2023 16:20:40 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2169.outbound.protection.outlook.com [104.47.55.169]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3qu8a9grp9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 02 Jun 2023 16:20:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z1uhjCVtqvTRAg2hU7WzoA40n6/ykZBkNZZA9Y91g12GHsTxq9z43CnGFwmQbyXtCQlK0WRrPeCxiI3mk4alXvk/NrWk8JfqzGXd502/pjqlT2HfYCSJ5oHuEiooGSJEryTLtVykTMRlPkvCEzVjN4KAzHP2wSckpZGJPACl679hSPnUN0S+u72Jwprihc/KnRugSGyKatBdAY7xfSITDeOKwsnuJz/Lef9xHViJnT9fdFIcHXOQawjkzz2sX7pxKckR24rKvCc9fQ6UsvEXkorrYfOH57lOba+fQln1vqVkd9LMsyTxCF96q664ewA/dElpS4Zib16NyhETsuIodg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=SEmv04P5IJ1YDdVIBJo2GtXMGWtt4iG+ucEAoBaJEH8=; b=ct0ZUTqZ2zRjQs1YW8BtwNuunwpKTZQgmVigLXYkU+h6SjmQg4xihJrA0zLaO8m8pXpk4sFwKuEvNtE+rzPt+WBbP/aSgVrr97mNP/xljYxAtOvqsHub2HM3MO9ru5EA9MY5GKu48lp/Z4bmbEZ+mXZgRd3R1nQ1ESDAVhkKj1f85oIFbE08RgaUG6UbTymzjFw2A5rvOGvROlNghFgWkGEEzcItyHxBH/r2N0RYAoAy8e0YXnJyhztNMKhE5ZD78390Pj+dMWq3/ODU576r4j0fAG/fL4uOruuw3YC3ZZx3MSaMy+LJyJR2JoR7SWV/N1yMISeiTcD1QFd4HH38cQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SEmv04P5IJ1YDdVIBJo2GtXMGWtt4iG+ucEAoBaJEH8=; b=cxZkQUa65iqQvOSBxVj6v/KJdAboKLPzWYMfoAhr1nqD4dGzUjtpzpIOtQdB86H4ysgw3a9muy29OhZjEEvwY9AXUnBnWZ1vzm5aSmBOxjiZuO+wOisL5rz5QVfofeG2m7s21kkSvA4eY3UkeaUn9zIFfTtYP71t7Li3vIAWnYI= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by SA2PR10MB4427.namprd10.prod.outlook.com (2603:10b6:806:114::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.24; Fri, 2 Jun 2023 16:20:36 +0000 Received: from DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::acef:9a5e:9d29:17c2]) by DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::acef:9a5e:9d29:17c2%6]) with mapi id 15.20.6455.020; Fri, 2 Jun 2023 16:20:36 +0000 Message-ID: Date: Fri, 2 Jun 2023 17:20:30 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v3 2/7] perf metric: Event "Compat" value supports matching multiple identifiers To: Jing Zhang , Ian Rogers , Will Deacon , Shuai Xue , Robin Murphy Cc: James Clark , Mike Leach , Leo Yan , Mark Rutland , Ilkka Koskinen , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, Zhuo Song References: <1685438374-33287-1-git-send-email-renyu.zj@linux.alibaba.com> <1685438374-33287-3-git-send-email-renyu.zj@linux.alibaba.com> <452e724b-2a2c-52fd-274b-60db7a7f730e@linux.alibaba.com> Content-Language: en-US From: John Garry Organization: Oracle Corporation In-Reply-To: <452e724b-2a2c-52fd-274b-60db7a7f730e@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P265CA0224.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:315::8) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4313:EE_|SA2PR10MB4427:EE_ X-MS-Office365-Filtering-Correlation-Id: 81a863a7-f6f0-49d9-008e-08db63854c25 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iqYVzMZ3OeHLBEOrL61JLcAonU8P8dpACyWuxLU0stfxvJkWiOqcIuWOQw4qLU9VA3vNtnhLQ6pO6LStHLDruttymGYrdi4i9tDsYvmxU+d10kYmXL2BaojFldIKQxk7Uz4WtlI82nvqQWaD8cY6OzJzpddtn16MTuvv9A5BByYe6Pg7q3xMDKEQwPVbVAE/wSCnHUGDeHa7q7bVpo+6QhPjTDhhnmrkBNUZZp6p+6eU+fXs98OjV/x1qlCKG51rsGoZRfJZNt4XI12l7Hy+EN6PsMimdm71c2ZOKQgNRPmmo6C2AmGyCxxdzDN1gKyYATjqJDTf3xQ0Eedo6vv469kxFYiQLAwP4sREISRvYmsnveBCJV1SuSOFhB+qYvZ7LpV35tFeiiXvyptNhBaOp6nPCqxtUgDbnTe3aoPmIn5Txtar5MhaNGijooZu2sSHqqCDJ9tm0VNTp3znD5sEpTOkIl7V/4cs7nN/hmWyIqTz1vfFGZC9EP0J+JfXxJEhOWLNQ5y4Le0yyZsVmNlhFJw7OIfeLb2NUImMajlTYPXFHcEonqkBhKO53n/M8bJiGExbKU+Mr47ZVaP4EeWN9RuFbuipNo2iz0NUp5MJgz/Nq9zwlzLffJQz/nR3b0z4ykKeGykJvarHdbhcEzuMrg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR10MB4313.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(136003)(366004)(39860400002)(346002)(376002)(396003)(451199021)(478600001)(54906003)(110136005)(36916002)(6486002)(6666004)(8676002)(7416002)(8936002)(5660300002)(2616005)(2906002)(38100700002)(83380400001)(86362001)(31696002)(31686004)(66946007)(186003)(66476007)(66556008)(36756003)(316002)(6512007)(6506007)(26005)(41300700001)(4326008)(53546011)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Zk1SNnc2ZE9Oa292bk5CdnUxVzFBVGs0N0pFTFBTWHJNQ2dHVWJSaFhHYVo3?= =?utf-8?B?cFdRbndCc1pIY3k3ZFdIcHY1bHd4UTlMOVBIY01BYmJkdFdzeUVHVkZOT0w1?= =?utf-8?B?MElMYXlIVU5Kc21XR3JMeUVWVHVzK08xTGovN1FwekFmZ0ttdVFHVDJtUXZS?= =?utf-8?B?bHFJZlo5amR3UDlLQ1VyaGR1aEZyc0kzaDlrM2hTVExRbGtyZk9sWVYvS2xl?= =?utf-8?B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6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2023 16:20:36.4541 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: +M59O1E1F9g2QxUcgGWBCi65AXzXbWmRgtV/vUEB1Ae/MCZ+r5jgv43Mafw8QAkjX8VXrmdRxeLvDox47+XXNA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4427 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-02_12,2023-06-02_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 phishscore=0 mlxscore=0 malwarescore=0 suspectscore=0 mlxlogscore=999 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2306020123 X-Proofpoint-GUID: 5bunHMSvecX_gZVf3_dfsjgN7oQ1Gehw X-Proofpoint-ORIG-GUID: 5bunHMSvecX_gZVf3_dfsjgN7oQ1Gehw X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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 01/06/2023 09:58, Jing Zhang wrote: >> From checking the driver, it seems that we have model names "arm_cmn600" and "arm_cmn650". Are you saying that "arm_cmn600X" would match for those? I am most curious about how "arm_cmn600X" matches "arm_cmn650". >> > Hi John, > > From patch #1 we have identifiers "arm_cmn600_0" and "arm_cmn650_0" etc. ok, I see. Your idea for the cmn driver HW identifier format is odd to me. Your HW identifier is a mix of the HW IP model name (from arm_cmn_device_data.model_name) with some the kernel revision identifier (from cmn_revision). The kernel revision identifier is an enum, and I don't think that it is a good idea to expose enum values through sysfs files. I assume that there is some ordering requirement for cmn_revision, considering that we have equality operations on the revision in the driver. > The identifier consists of model_name and revision. > The compatible value "arm_cmn600;arm_cmn650" can match the identifier "arm_cmn600_0" or "arm_cmn650_0". Maybe the message log > is not clear enough. > > For example in patch #3 the metric "slc_miss_rate" is a generic metric for cmn-any. So we can define: > > + { > + "MetricName": "slc_miss_rate", > + "BriefDescription": "The system level cache miss rate include.", > + "MetricGroup": "arm_cmn", > + "MetricExpr": "hnf_cache_miss / hnf_slc_sf_cache_access", > + "ScaleUnit": "100%", > + "Unit": "arm_cmn", > + "Compat": "arm_cmn600;arm_cmn650;arm_cmn700;arm_ci700" > + }, > > > It can match identifiers "arm_cmn600_{0,1,2..X}" or "arm_cmn650_{0,1,2..X}" or "arm_cmn700_{0,1,2..X}" or "arm_ci700_{ 0,1,2..X}". > In other words, it can match all identifiers prefixed with “arm_cmn600” or “arm_cmn650” or “arm_cmn700” or “arm_ci700”. > > If a new model arm_cmn driver with identifier "arm_cmn750_0", it will not be matched, but if a new revision arm_cmn driver with identifier > "arm_cmn700_4", it can be matched. OK, I see what you mean. My confusion came about though your commit message on this same patch, which did not mention cmn650. I assumed that the example event which you were describing was supported for arm_cmn650 and you intentionally omitted it. > > >>> Tokens in Unit field are delimited by ';'. >> Thanks for taking a stab at solving this problem. >> >> I have to admit that I am not the biggest fan of having multiple values to match in the "Compat" value possibly for every event. It doesn't really scale. >> >> I would hope that there are at least some events which we are guaranteed to always be present. From what Robin said on the v2 series, for the implementations which we care about, events are generally added per subsequent version. So we should have some base set of fixed events. >> >> If we are confident that we have a fixed set of base set of events, can we ensure that those events would not require this compat string which needs each version explicitly stated? >> > If we are sure that some events will always exist in subsequent versions, we can set the Compat field to "arm_cmn;arm_ci". After that, > whether it is a different model or a different revision of the cmn PMU, it will be compatible. That is, it matches all whose identifier > is prefixed with “arm_cmn” or “arm_ci”. Sure, we could do something like that. Or if we are super-confident that every model and rev will support some event, then we can change perf tool to just not check Compat for that event. > > Maybe it's not a perfect solution yet, looking forward to your suggestions. Well first we need to define kernel HW identifier format. I don't know why we don't encode model and revision name, like "cmn650_r1p1". Robin? Thanks, John