Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4180229rwo; Tue, 25 Jul 2023 01:44:50 -0700 (PDT) X-Google-Smtp-Source: APBJJlHRBOdttJcdAAKIvDgUpnkt1QQp8ZIA58jowxas5RqUCXiqNf7aW77uQfIZTuciKORvjfLT X-Received: by 2002:a17:90b:1d10:b0:25b:be3a:e6ae with SMTP id on16-20020a17090b1d1000b0025bbe3ae6aemr11780680pjb.18.1690274690290; Tue, 25 Jul 2023 01:44:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690274690; cv=pass; d=google.com; s=arc-20160816; b=yFeIwcML8iwYBDOE+jrRXM9mohVIDyfAmBfFxkJemf0E2uEQQB0Ltkw2P7+Un/cJz9 x6moSm94UA/vCP9U+qtN29FFgeEXghnjeVbtkGu8XRxYQSSVBtzPlrA3r71Y5jop3Bau wgb/YoJPL3CwYb90ZDVf1d2bI8A61GFKhnhAyFS6zOb/bt1FZDm5E9ebBhHjpZQkwvZj 8xZCVJ415+Bc3gCLri66N9cmHl4YZEVpvvqnO43Dd3fmtHVLAAkNJeF6wABqDodMBPZq UFkp6DflqZmALjTNcLNnsAINHxko11KmvEPT16y1fAMcBwbuAWI4llh2nEPxrBnUpHFB 1XEw== 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:references:cc:to:content-language :subject:user-agent:date:message-id:dkim-signature:dkim-signature; bh=RK/W3Sl5LYf11baQrHp8hJUc6Cnbe001ciLL/q8oKW8=; fh=ImgAsXyVxG/SVtPjLOpCAOLQiHXrIBYY0yQG1HTwsGw=; b=ziV4tLZqdi5iNZpSDY5pAHWKY6Fw3g1cjJqsRzQs5JL8Fv4CL7E6mIOTqCDeDK3bt7 lLWHRYeWCnf3DnFa8ZWaq/l9uPZMH2gFoImqaLUmwTFOHkoVc7GpvdGyaweijYHeDi3a F/02cHJqDswCq8KL2rvYJW3plQRSfDMkfjCz+3YZvmjVRNHZ0FHG/Rfezzx0nQ86G3j2 CCfTXhmXmVOTLxm93DH0puD96yMAjic1+lNwmHKay/t3nQCvP3qE89lgU3nCvVX4QPKY sPHW+vgTdyJWee6amA42H6K6uSNSpWnpyIQUFD+PQRcTsh0d/bBzz+ZaoHC5vwpfoThA ZtaA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b="XAFo/DW8"; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=NVIMSGNw; 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 mh17-20020a17090b4ad100b002637d779bf3si14713714pjb.17.2023.07.25.01.44.37; Tue, 25 Jul 2023 01:44:50 -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="XAFo/DW8"; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=NVIMSGNw; 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 S231994AbjGYIVL (ORCPT + 99 others); Tue, 25 Jul 2023 04:21:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229502AbjGYIVJ (ORCPT ); Tue, 25 Jul 2023 04:21:09 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4ABB9E5C; Tue, 25 Jul 2023 01:21:08 -0700 (PDT) Received: from pps.filterd (m0333520.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36P7oU2n008377; Tue, 25 Jul 2023 08:20:40 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=RK/W3Sl5LYf11baQrHp8hJUc6Cnbe001ciLL/q8oKW8=; b=XAFo/DW8zESIu/fK3tmTbm1IN/LqrEcfRY0tlmL2Mm4EGqMxOkglOCoISCXXnDclkG37 yfXwzY/A7Ac3qWYzhM1lijLF/0jo6Mk0mmA7XRoHAT6RIF3eEEvVpIv/b8c3V01OUGgD HO2ejRB704AkNnpLbnJFjuzzaAtMBYBiSrxn/ChQeAf4v95Jy3tpsr8wiMwnM+iWEcF2 4rLIB370wsCGXMnjcdQ6mL8AcoiSGsja4FQ0pn9vj/LVoCov3/pd0C8z6f4HxA40p3vN Z8CdyBEdKr3V7ddfYb0UIfW7bV+QL9xh/DZ5JEQgqarvyOXOxsfl4n2L5Qlvlj1pWF1f LA== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3s075d4j8n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Jul 2023 08:20:39 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 36P7S8A3035392; Tue, 25 Jul 2023 08:20:38 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2169.outbound.protection.outlook.com [104.47.55.169]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3s05j4ew55-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Jul 2023 08:20:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BeKm7qbCxe66qj6K7E6o8ZvTJ5Qd6D2C0YhHz2UyOGAAgS7w4/rHzFmjQCMbjXKswfhCJ4V0FT4hrDGirR6vh/iKSy1wedLRTn9Pg2SJcyhRUO3ekwxLvTlPt0N86mkYaht6PqkzbM6we6yiOfhKETOMOX4zHUpJec7SP+xScp9dFpv15qpqKZQ1AKBW6lUNu/Jkl5XReM6KDwLJsNgEzo94gfD+Cgyt2apdxnYaTdkLKimhYdtc2hNOvpSVQ3smhTukPgU/csgSj0Ts2gtFE3qFd/4Ub9t/yPrOpZLX3kQ00XhuNvOqVIMSb3f4j4E13gve3y4wezjXtHqDJS55DA== 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=RK/W3Sl5LYf11baQrHp8hJUc6Cnbe001ciLL/q8oKW8=; b=edV7fVHDXutI1Uam0IDgp58Ox+Ze3vT1mbnV8Bd10nyYqT7PuKgRX7c5TCc2gTiBgPr2+rTeyU+ur8tfnZbivbP8BwZnFNxUeN+10S49jmP27NdNobWnveh9NlY52lNVog68WfthOk6EXaJgd2/1dwUAIH6bRy0PATs2obR8nzJoCR78ivo+nzkHmozbYqSLOwXwiHRnMg0heXfA1cDkIS1D0ciAI81HrtNL0/deKIoQ5BEVGaJOcHNvK0GRtgIXiZYRunrWsZGGEUkCugxKllcIx3z6IqUcqDhtMlJZNcGY1Gt0R48kdOky4+O3T6RzF1J42kb03QuyQvZpqPOD8A== 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=RK/W3Sl5LYf11baQrHp8hJUc6Cnbe001ciLL/q8oKW8=; b=NVIMSGNwY+UsIpJM/UwaIF+Bqf2morwu/Io/FKo3BCNj8tX7qat2zONL7BNuD3STUIMZWR2pLTv8a4qFHK4bGiaCMjYfFsQu8wK/M/rS1gy9FaAR6Eghl8iJR2eay5N5pWMqtHwexgYsODnCe6l6rFCESws5WaIrvqtlY/JhYOs= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by SN4PR10MB5558.namprd10.prod.outlook.com (2603:10b6:806:201::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.33; Tue, 25 Jul 2023 08:20:36 +0000 Received: from DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::8072:6801:b0b7:8108]) by DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::8072:6801:b0b7:8108%7]) with mapi id 15.20.6609.031; Tue, 25 Jul 2023 08:20:36 +0000 Message-ID: <4c20d8fd-b478-5b0a-0558-3b59dead0751@oracle.com> Date: Tue, 25 Jul 2023 09:20:32 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v4 1/4] perf metric: Event "Compat" value supports matching multiple identifiers Content-Language: en-US To: Jing Zhang , Ian Rogers Cc: Will Deacon , Mark Rutland , Robin Murphy , James Clark , Mike Leach , Leo Yan , 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, linux-doc@vger.kernel.org, Zhuo Song , Shuai Xue References: <1690100513-61165-1-git-send-email-renyu.zj@linux.alibaba.com> <1690100513-61165-2-git-send-email-renyu.zj@linux.alibaba.com> From: John Garry Organization: Oracle Corporation In-Reply-To: <1690100513-61165-2-git-send-email-renyu.zj@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0532.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:2c5::14) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4313:EE_|SN4PR10MB5558:EE_ X-MS-Office365-Filtering-Correlation-Id: 4da487d2-2440-4407-29c5-08db8ce805b8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TzggqbT2GG3yY5DPpj/LGphDN1qoX1NcTU3aYgPEs9yvF6RqvFmwE5G++ycl1Q1aAPbAdLXeB/kidBSVm4YS3dQd7KCw9rC/qZuS5r62KgD8xgtrqEbijN6gEIB2xO3FFCd0h2QRbnb/SOnDxNLL5cdHcX4fBevNMfLkaMgIW79Uj5mBtUieGIL+C/p7t4EXaW3mON3TqAllGWm2D7BWrZJv/YeqLLClJ9YM10zsKIfcsUjYSTb2qWFfRvBxPorP+WSeXp7DaH8iaxG7rcvXkSVVkrSvqXRlikGdbcOdrnDHylnLuowTyaUduredY90LhJG25M/8Ohhu7yBrScKFBuWAmGudqBHovOMhpLqapjsWfvx+JihjeDWpH2yakW9qz8lx83/PhoH/40qroAv09rjcA+coLcU65DJUmUNBNahyT7bPv9W92RG/u9hwChjppLUmi2g6TWjC6fRacBQaN7QPmRmnbEgsEOXjpX+sBGAVEovaTOctFucyEIyKCgo9to1to/FQbot1ZzQSzc32jx8vREgams8RJLYkde8JFGtXYNcLlnCL0uvVGFPJ7GscuSqAw4nwYZiRP7mUd6QKy5D25zlUqtAMsamIbpOGtwSJtnsWqn3OArmVn2wnchJEChxg0zjYX/Y9oH2/BmCZUQ== 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)(39860400002)(396003)(376002)(136003)(346002)(366004)(451199021)(31686004)(186003)(6506007)(26005)(2906002)(86362001)(31696002)(7416002)(36756003)(8936002)(8676002)(478600001)(54906003)(110136005)(6512007)(6486002)(6666004)(36916002)(38100700002)(4326008)(41300700001)(5660300002)(316002)(66556008)(66476007)(66946007)(53546011)(2616005)(83380400001)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?dkRrWjdUNmpjcTR2OE51V1NQMDUxRjRkVXROdGhqekRDVkl5ZmkrVGxWdFlE?= =?utf-8?B?Z2F2V0lIWkphZ0Rud2dTT0ViS1BmYlZMOFJWVStwem1ieDFCYWhpb3RRYVc5?= =?utf-8?B?bmhaTnV5REZrWnoxMHZLamp6S2RnS1h1YVIweE1jRzRVcGJZdnV5Wmc2ZzhU?= =?utf-8?B?dkFRR2ZqN1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change-CrossTenant-Network-Message-Id: 4da487d2-2440-4407-29c5-08db8ce805b8 X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2023 08:20:36.1372 (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: D3S+t5IDN+p+wcei5Zjr09HIKNc+QdLnn2oBmgzL6s8mf770enF2WIhv++RI7Ao4e9EwjTPYC9eudGcKMNymrQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN4PR10MB5558 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-07-25_04,2023-07-24_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 spamscore=0 adultscore=0 phishscore=0 mlxlogscore=999 malwarescore=0 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307250073 X-Proofpoint-ORIG-GUID: _2Kawaw3ojXwn1tiPFbBtu6OI-kCqVL8 X-Proofpoint-GUID: _2Kawaw3ojXwn1tiPFbBtu6OI-kCqVL8 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 23/07/2023 09:21, Jing Zhang wrote: > The jevent "Compat" is used for uncore PMU alias or metric definitions. > > The same PMU driver has different PMU identifiers due to different hardware > versions and types, but they may have some common PMU event/metric. Since a > Compat value can only match one identifier, when adding the same event > alias and metric to PMUs with different identifiers, each identifier needs > to be defined once, which is not streamlined enough. > > So let "Compat" value supports matching multiple identifiers. For example, > the Compat value {abcde;123*} can match the PMU identifier "abcde" and the > the PMU identifier with the prefix "123", where "*" is a wildcard. > Tokens in Unit field are delimited by ';' with no spaces. > > Signed-off-by: Jing Zhang > --- > tools/perf/util/metricgroup.c | 27 ++++++++++++++++++++++++++- Why only support for metrics? Why not support for regular events aliases? I would have expected pmu_add_sys_aliases_iter_fn() to have been updated for this. On the basis that we will support regular events aliases, we need perf tool self-test cases for this in tools/perf/test/pmu-events.c (I think that pmu-events.c would be the most appropriate file) Thanks, John