Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6027234rwd; Mon, 19 Jun 2023 00:53:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4AKbjBrkGoMaOLwAmXIhOO6WTPuhff6ICLEHKRZhubRQoLjG+aKT3yT2EFYvny4Ht/T6VO X-Received: by 2002:a05:6358:cc13:b0:12f:1fea:7118 with SMTP id gx19-20020a056358cc1300b0012f1fea7118mr5891452rwb.30.1687161231450; Mon, 19 Jun 2023 00:53:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687161231; cv=pass; d=google.com; s=arc-20160816; b=kRqy7hcx3s1leUfHqPwzRkYaPvBmxnBZzPrE9iNh4EBX1MeawdqfbPZWXtMtmDzQLu ev3d/JIL7m/M9OQvCdUm48g56Dq/IZujfIbIdbjXu4RGpiOCTTyHFUba0lEJPW//ily6 UXm5o1v5TGjo80Q+2XL4O/vocDPI2MIL0aL5t+9jMEMTths1SoSrV3SaTrpI4Jmyt9x5 UDiD62mmOnSZLanqyydJEmcgT8jPLpmNz+uWGAJSBm2WvYgQf4OvPDrCu40OXinqMpsL B00dfVxMUjQBDceZodS1IIX/h5BDAMDYBwRVTY3rNPpuZ3i/O9TjRzxbGagVhoC3axyP 6kyQ== 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=ZQ1u81EoO/DwMf/XjEbD1d4ha9rq4ck4DRT0xeGndWs=; b=hXgqHi8FxdVtK4Ar1X0u9y91nxcsRP+loQCzlGcOmNnzi2WCnywI8Lt/2QuJxSTbg9 Nsg+KzoMOu2W/cSW1aU4wZiKrVEEytT7d3qZ2AF9U/sd64rfzbvVVUF8Y99qcunq6NeO MswKT24feDeKsEDdntnwxpWf3/9tFQeASUUxP+aAxhhVHG4cb8oTSomRNFl/tGA7Ey8k SlDPAISXiLi8xJTMZ9uoEsTzH/9oUhKqdc84+7l9upk17hN/7rm3LXmprX99ylUZAuut P1047ML9mxGkGBS49n8hApxkEeIf3vCPwwt8of7YIhaKqaZ9+Ho8RJlaPvaA5FSJ8ZbJ CXCw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=0TbmFPYx; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=WKjJqOBo; 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 s7-20020a63ff47000000b0053fe93b2d33si19296540pgk.201.2023.06.19.00.53.33; Mon, 19 Jun 2023 00:53:51 -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=0TbmFPYx; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=WKjJqOBo; 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 S230046AbjFSHIm (ORCPT + 99 others); Mon, 19 Jun 2023 03:08:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229579AbjFSHIl (ORCPT ); Mon, 19 Jun 2023 03:08:41 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8D90F4; Mon, 19 Jun 2023 00:08:38 -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 35J0xCSt028503; Mon, 19 Jun 2023 07:08:17 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=ZQ1u81EoO/DwMf/XjEbD1d4ha9rq4ck4DRT0xeGndWs=; b=0TbmFPYxMFnnaF60arrZzq7x+cJfbJqx44vnI2AhTVCMKFnTcl5ASrYI4SzqymBjvJ0d 41TRew5l3juQfTLnupCituk+nPPDtpaK5fhBnWSeR94xnLMLT7VOS4CwY3W6m6zouuPM G8lB1dmW1uvU9zxs8Zyl0rsdmXfAR2WfJZjkDHuS+BVbZWw81qjoiYzYtsKBSu6b7nYY pfg4a/Z2IZB2ULzUQjXAEkjMD/KRgKNauVXrqr6st1J0KbOhhwwwhPJaH1yyV70j+ggz 70Ju85IP4M6xA1gKQwungzc3GQtdbRmtc3HntCF6P2DS23VghRy4ZgRe51n5PvJ/+oec pQ== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3r94qa2177-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 19 Jun 2023 07:08:17 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 35J6Ujtx028897; Mon, 19 Jun 2023 07:08:15 GMT Received: from nam02-bn1-obe.outbound.protection.outlook.com (mail-bn1nam02lp2046.outbound.protection.outlook.com [104.47.51.46]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3r939900pe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 19 Jun 2023 07:08:15 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CIktOS1XwJSfsrnvckZ7PfjbRlfG71quYYJftLbl7wEGMz0IqKoGy+m/cxosrSwkYREFsWxt1z2oTp32py+PiXK5LSsoYvbwUvvHNoJmSkVcYnvHkCespWXsyS3NVqywVnxQNZgwkbWBGAd8ntYoWYyYSj3GfIY8zglYrPAZf4GvzqXr5COoUmuZ16Ssqscoxr320gaC0S+bqWVwOImYISxKBSgeh54M7N3ohmY1JInWapJBe3O9+x9kLO5ZWSlmsSp8h2LWxYjOPy0rJqvtm1QW1Po/n2CBZMWoUM05n78pcOm51rh45vPFvibkHufHgNZ0CMCgA+G0LojTJS5GZQ== 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=ZQ1u81EoO/DwMf/XjEbD1d4ha9rq4ck4DRT0xeGndWs=; b=VowgYV5/557X52+DNlWdxj2O5bdQ7nxkRxy21wTSyCWqRMEZAY0yaBs6dto5gSi1KV+Nr+J0xl7l5wFdWz2efBIimI6EgKGU/giVNwvNU4YlcZ75qEhZ1b0mYhr/0q6OEtIp1QEVebpVmWQj+Az204tObZvuQUdII94JrAlsYuZSkn2H0JmulHDEXdeBaEnNBJhflcx+CfkcrXu9axWXm8Oqy0fJJ17jM4BPpAcsz7pofDkCfd/+8qZX0wei52U8jRCEaWNl0lQkqZghZsvYslXb2nUEXk65eLlWk6ddH/YFKhuU4hIeaXrO6tcOCm4IDbt574MStA4C8yMR+qPfgg== 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=ZQ1u81EoO/DwMf/XjEbD1d4ha9rq4ck4DRT0xeGndWs=; b=WKjJqOBoSQVdsat1dT8yechW3shljmGXAoiDWw3HVChUEABcs9ysmSq8e96bZjimJUyPIH/Z7/NsUeL0A7piH9hZkG/KXLdvp+rw+CIN39HJpEac3fn3MImEANwvorEWwqXxWbpW+kgARj95HMdVfXnsBRxBgYBE2jipgNsDBB0= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by PH7PR10MB6577.namprd10.prod.outlook.com (2603:10b6:510:204::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.35; Mon, 19 Jun 2023 07:07:55 +0000 Received: from DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::e38:5b81:b87f:c1eb]) by DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::e38:5b81:b87f:c1eb%7]) with mapi id 15.20.6500.036; Mon, 19 Jun 2023 07:07:55 +0000 Message-ID: Date: Mon, 19 Jun 2023 08:07:47 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.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> <76fcb062-61a8-5f90-b39d-b5fb6da35652@linux.alibaba.com> <5f38ef6c-8c50-5df9-19dd-c3c9fe590452@oracle.com> <892f57c7-8ce2-634c-26f3-4d4ab8b2f2ce@oracle.com> <079d7920-2030-2e00-a833-5ec6d450f7dc@oracle.com> <552eebae-76bb-a2fe-ccdc-11e8a01717da@linux.alibaba.com> <045a49c9-b9ae-bf0e-c4be-858d905bcc55@oracle.com> <7c765e0f-ca76-d212-0496-f9c56369e389@linux.alibaba.com> Content-Language: en-US From: John Garry Organization: Oracle Corporation In-Reply-To: <7c765e0f-ca76-d212-0496-f9c56369e389@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P123CA0554.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:33b::9) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4313:EE_|PH7PR10MB6577:EE_ X-MS-Office365-Filtering-Correlation-Id: ba75b6e2-1904-4bb2-f08c-08db7093e775 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Dj9B3A4MNEAeOinM9c7SLd2LKdwV3BriQW9oDh3zaYQq9fPaRYltDPYjWz9sMmYmfQSW+RbPh+ZQ/FiSyv29iZ/cNbNurnRoXfAU9jcSQ7SuIsjzMZ6P3nHsRppCJVYq0IuQ6PQ0IrcC0dGt7yxyswmBInEeO69gEBfV6WhQP5sLSHJo/DLFvpj2g/2ZGwNOYSryranJmyoJvwMI9DaL9580SVCc0saw9syXywM7j5UUoFIQ2CXRtsa2D2OVKOcNUeXglnsUm7bBWGKyFLoFDOOWBQyiQj5GpBfe9cMnXp8GQo1nFfu3mxgjlzYH4bWeKazhQ0sGPlhHFiLhDHSOqbu04lVlGd5fsBEr/VEgdM8GHMciulapw2Z+iTPG6sRFXHbBlSQyX+jDY6uXFntW3naHNFzy626IyqIlvXURGuxJsoY+so9rDK/rBYq4tdCKRGmgrwNpwXN+6goeS6bMO4Pd9XP6DaXVIw1Qb9Hx8VeiEIawKicQSoe6U8lC9znSCfkyrb4UckCxqUzaOLOiWZjEf8/99YFmtXCotdy4mxGMFzcXhO8HjPv2Tt0awBPHqI89jZPpuU5cDTOw3othM4Gfd0WkqKctkvTgWAAJGqyTmRY5ezwZiXtNps/+ofa6mH6zrwVCXUvhCEXNZ80kXQ== 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)(366004)(396003)(346002)(39860400002)(136003)(376002)(451199021)(186003)(8676002)(8936002)(66946007)(66556008)(66476007)(5660300002)(110136005)(54906003)(19627235002)(4326008)(6666004)(6486002)(316002)(38100700002)(478600001)(41300700001)(36756003)(26005)(53546011)(6506007)(6512007)(36916002)(7416002)(86362001)(31696002)(83380400001)(31686004)(2906002)(2616005)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?OEovb21UVzVJNnZDU3lJUV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Rp?= =?utf-8?B?K1JWUEtEWDVIR1IrK3RldXhDb0VoeHdjNFRESlRkTWhVN2hlTXB6dVFwcmw1?= =?utf-8?B?WERPUEVMSEluSWk0Z3M1NWtGTk5hTE80QkdGWU4xNjYvUTJ3Ui8xZFhWQytR?= =?utf-8?Q?f6klpg=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: ba75b6e2-1904-4bb2-f08c-08db7093e775 X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2023 07:07:55.0933 (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: pyVUAdg9xEzzfvQcrAx1nmT7kwO3+yO+0wcbhoZOaAyFvo4ifzNt7hW0BM/5eeVPjPsV79mMm2FfFgtcQTEYPw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR10MB6577 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-19_04,2023-06-16_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 malwarescore=0 mlxlogscore=999 suspectscore=0 spamscore=0 adultscore=0 phishscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306190065 X-Proofpoint-GUID: XUASMc7VhBB9NOTuiiAzQXzdNX_boQPh X-Proofpoint-ORIG-GUID: XUASMc7VhBB9NOTuiiAzQXzdNX_boQPh X-Spam-Status: No, score=-3.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 19/06/2023 03:58, Jing Zhang wrote: >> +++ b/tools/perf/pmu-events/arch/arm64/arm/cmn/sys/metrics.json >> @@ -0,0 +1,74 @@ >> +[ >> +    { >> +        "MetricName": "slc_miss_rate", >> +        "BriefDescription": "The system level cache miss rate include.", >> +        "MetricGroup": "arm_cmn", >> +        "MetricExpr": "hnf_cache_miss / hnf_slc_sf_cache_access", >> >> So this expression uses event aliases hnf_cache_miss and hnf_slc_sf_cache_access - where are they defined in a JSON? >> > Hi John, > > I defined the aliases for these events in the JSON file during the RFC version. However, I later removed the alias > definitions for these events in subsequent versions due to the possibility of non-uniqueness and difficulty in defining > their EventCode. But this does not affect their usage in metrics. In other words, metrics can use the aliases without > defining event aliases in the JSON file. Really? So how can we resolve the event aliases when we try to run the metric? Please verify running these metrics with 'perf stat', like 'perf stat -v -M slc_miss_rate' > > In the past, I always thought that the function of the alias was to explain the meaning of these events in the perf list. > Or maybe I'm missing something? Event aliases do give the ability to describe the event in perf list. But we can also run them for 'perf stat', like: ./perf list uncore List of pre-defined events (to be used in -e or -M): uncore_cbox_0/clockticks/ [Kernel PMU event] uncore_cbox_1/clockticks/ [Kernel PMU event] uncore_imc/data_reads/ [Kernel PMU event] uncore_imc/data_writes/ [Kernel PMU event] uncore_imc/gt_requests/ [Kernel PMU event] uncore_imc/ia_requests/ [Kernel PMU event] uncore_imc/io_requests/ [Kernel PMU event] uncore cache: unc_cbo_cache_lookup.any_es [L3 Lookup any request that access cache and found line in E or S-state. Unit: uncore_cbox] ... sudo ./perf stat -v -e unc_cbo_cache_lookup.any_es Using CPUID GenuineIntel-6-3D-4 unc_cbo_cache_lookup.any_es -> uncore_cbox_0/event=0x34,umask=0x86/ unc_cbo_cache_lookup.any_es -> uncore_cbox_1/event=0x34,umask=0x86/ Control descriptor is not initialized ^Cunc_cbo_cache_lookup.any_es: 14361103 1853372468 1853372468 unc_cbo_cache_lookup.any_es: 14322188 1853360415 1853360415 Performance counter stats for 'system wide': 14,361,103 unc_cbo_cache_lookup.any_es 14,322,188 unc_cbo_cache_lookup.any_es 1.853388227 seconds time elapsed Thanks, John