Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2558353rdg; Mon, 14 Aug 2023 06:30:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHHX5Ktu/6f1PxK50iKw+2Ena4dIzQ17lS3Do7C2CLLIUEt6gDolZcqpxkAr/ewleRGysRr X-Received: by 2002:a05:6402:50cb:b0:525:4d74:be8c with SMTP id h11-20020a05640250cb00b005254d74be8cmr6337802edb.14.1692019833126; Mon, 14 Aug 2023 06:30:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1692019833; cv=pass; d=google.com; s=arc-20160816; b=e8iMqfHihoB0oivITCML6CKxIM2CWzEuB1R+j4uhVt0rrcf3/qgy15WC+V20uxRYkN +yA2d9VE3gG0mgx3oyhwrw0pgKB7MwV7wCmig7RYN9Jq8newZ5t7QIDPGOnwpOvI1Rw/ 60cp+uzM49bMOMPiFPoQqVtjOlh5JzC9X8ylpR5f1TvAptUKbTQycPo+f8BcaS2fNDUU 96ZR0gJW8b4HJyh7Y6eJxTmJUosk1N48klNu00CPmw2F/yg5AksWWKT1DIKI0pWSw0D6 PHtuBxWgRM7Xa68CTNrUgP5o46LRMQXnmGavce/rnqiamRbCWFeu70IgsndH+M1hg0yy NOyg== 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=wBOt2ROfqXbeX9OPPX0QFrnrg/Q/z8lccH3jUZFDrlw=; fh=fTVFPcp0l04lY5NzoFYj7jThu+90D/+NI1bfjSaVfhI=; b=b8dQQFLcIfCiYiQhDkC4VUd4ulbsgSi1ywCKzhk0WO1Hq41meoHX1bkUQxc1UwINI6 uX6e0F1ZfoIaUAeg5zvGqt6RABzkVHK+uRo3XvsWZgHtWxz4qo5iK6n/O6cZCY5arkrJ NDvemZT3E7YEjDFKMArtxaMxTSiF3IVRS+x77QwXdQeUWYareoTQ1tzPNAVo/Ggff9Ws +h/j8rvs8qDu0RQCDt/4wKFtpDPKE8a9xOIt1Z4q/zXdKM7IWjv7NddATyRFuVVh/bE/ 7ag/rP3/b2F1EhrNS/RyfgdFkmhBScdNb5HyEzWXpN3AWUglgFf6Vs7lswRnHhi2sJJI fdTw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=Q3ut55dc; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=ENj4uncb; 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 n18-20020a05640206d200b005221e2f99e6si7832872edy.506.2023.08.14.06.30.08; Mon, 14 Aug 2023 06:30:33 -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=Q3ut55dc; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=ENj4uncb; 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 S229600AbjHNNDz (ORCPT + 99 others); Mon, 14 Aug 2023 09:03:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231236AbjHNND2 (ORCPT ); Mon, 14 Aug 2023 09:03:28 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C8DCE7D; Mon, 14 Aug 2023 06:03:27 -0700 (PDT) Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37ECiPUn019954; Mon, 14 Aug 2023 13:02:45 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=wBOt2ROfqXbeX9OPPX0QFrnrg/Q/z8lccH3jUZFDrlw=; b=Q3ut55dc30d63Em+EzxN8nA3TFyT40FOCU/fP5as3/kkpGrmeGjFowyqnarkobO1QoCD n3oly7HBAg57PFjQVAUwdxsQMkKkRHKuZ+Tlwof8Mfb5FxZkAU0hUjv1ME23wfxqnRm2 gw92gUuJDh8jGnxcs+Q32z7WkY2oRDkfMsipPkfDSQdCFnEJmuzcwBjnCtH4OP1pFcVa iKfRxYaSgHomqb2/SEtwEZtxdokfIZHZZiJyL5AiTtAKGzuVPhswlWX7VRGxpjJBobFc Mp5H8A62h5GJIL13ESRFT5K40IUPJlsjb07TUHTaARkYaa8OZk4UeAMpT61enESJOC9H Wg== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3se30stj2r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 14 Aug 2023 13:02:44 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 37EBQ3uG005541; Mon, 14 Aug 2023 13:02:43 GMT Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2108.outbound.protection.outlook.com [104.47.70.108]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3sey2bur0b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 14 Aug 2023 13:02:43 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O5mh4XZInUxq3+cdJrOviN7jLOApWS5QaUrr4K7mvM1zDRG8AmYIDHowFwwVdttYoXmqP1vMgKU39dLXXVXWLb9JDSES/08RpbhEBpMr6p8Y5/AbnE8CluavYGRBxfmySdgjc7pO++GYiSw/PKe8Tdi3JBIYMetXrmf94nop9redZrlWSmopKoZK0M/iqmauUefK2fDTATLx6mqYj/cT6+c2Af/D9mciZWg4b2SmjMaD7cNJEfwfoM/rvqoDTU74N59dp/GipbUMmX8ZxhcjoXfcjy6bPRZ8fS42qY2ZZEWMkN5ydSDVJleYWDMmY6NRQHCOZCfXuw44Yd0DmAIM+Q== 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=wBOt2ROfqXbeX9OPPX0QFrnrg/Q/z8lccH3jUZFDrlw=; b=OaJAkwqpDBrh7PYWsdDFRdxj2mFrED8fGvgMO+DaJwWm/PM5vrC6LhB7ELN78IPXdX5HC+yhHwlPHeHzG51PPqFBM2AIlTL3qVrdq+H88sCY0Xjwynmla0ShiuCeeCvhYRVux4lebTt1PVHY1vodUT3dLuUm+iqt3F79Sd6H2Jp3sOsdTvpUc/s12pHKVvK0V9+h968HlKikNMjWH1RupCskzew/VCWX9myVOJh55MO4LI67F62tHQta4+bIU1qM7S1fZ2gh//+hnV9uUdET9I1RtWM7NjPYnLSTr0DeWIuX3OaFqiIff44nv6I1AONfwjSVV3iK5lCbjcVf8jfH1w== 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=wBOt2ROfqXbeX9OPPX0QFrnrg/Q/z8lccH3jUZFDrlw=; b=ENj4uncbG8H+2bQX9UbjycJOjNThVqk6HRgm+aFxNGAjQNhZy3CbotMITLmyEW5s309twanS3KKzEFgaE6Mdd44+EneBY+Ae0fAysFPZ5eA1V9f2FY1vN1mudIHR64uzTPP4xfOACEUBDst8zDQI48+v5YK9X5tO5nJRKSQBWZQ= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by SA3PR10MB7022.namprd10.prod.outlook.com (2603:10b6:806:317::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6678.24; Mon, 14 Aug 2023 13:02:40 +0000 Received: from DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::ebfd:c49c:6b8:6fce]) by DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::ebfd:c49c:6b8:6fce%7]) with mapi id 15.20.6678.022; Mon, 14 Aug 2023 13:02:40 +0000 Message-ID: <8a4ebdbc-c2c9-9f61-329f-8fd235f5f65c@oracle.com> Date: Mon, 14 Aug 2023 14:02:34 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [PATCH v5 5/6] perf vendor events arm64: Update stall_slot workaround for N2 r0p3 To: James Clark , linux-perf-users@vger.kernel.org, irogers@google.com, renyu.zj@linux.alibaba.com Cc: Will Deacon , Mike Leach , Leo Yan , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Suzuki K Poulose , Kan Liang , Kajol Jain , Nick Forrington , Eduard Zingerman , Sohom Datta , Rob Herring , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org References: <20230811144017.491628-1-james.clark@arm.com> <20230811144017.491628-6-james.clark@arm.com> Content-Language: en-US From: John Garry Organization: Oracle Corporation In-Reply-To: <20230811144017.491628-6-james.clark@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO2P265CA0298.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a5::22) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4313:EE_|SA3PR10MB7022:EE_ X-MS-Office365-Filtering-Correlation-Id: a120b2b1-8bb7-4340-0187-08db9cc6bdba X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZkqnExx63L6+MWeUgryt5yq77r7RPS/8fpD5rMoYjd4jFmxsAkX94GjDQYyWBdnPiISYW529AteQapzfpgioONdKd/2XIE7olsk6iVBtfDD9WUIOQyXIzzNWcnEDukAVBkH97zgXm6Y/Tx+EUN4/3XqyGG0YzJ5OeLeNW9V6IPzuhKmvGY/4IhXwBINqFjAw8Vnh0qvGexEVN1gBC4bEhYQhYpB6hlj/UpI0NDHf1dac70WXVstqc7AzvFz6DlYoIs3wN4eihfeQkAAMVQWbmuL9YdYFge7N4S5nF664K8dq7+wf0kFmfL7ZT4uiA4EQwKUcHQ9xIZxqu12I2WAdgd92vEZWtUemwQIkdlh/GP7mJu2e09VfWSXRUV1NQqKqurxAGWtL/KpkvkVeVLhHGNJmpUnpHDtAxgIldNFl73QLy5PQLm7h22omOlaFxrjgwOI9XFG4Fm0wB3zMsCbTdthvQ/4mJlU2umDSLJfeLzVzD/VGxDcelRIWDT4CTDCoBMLc6ys6LL5UpCIHxXauJVtWyNd//cpauyY/E4TTOHBUhdHAZEQyCFyvDYxX2/xg7JiadpqywJ782P480YyAkG5vkXKQPgHydhuFgu52ABIvmSMhecUXh2iK4NT4cQ4MJX4/kUw9RpuSKxrkvvRQlw== 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)(376002)(346002)(39860400002)(136003)(186006)(451199021)(1800799006)(4326008)(8936002)(6512007)(86362001)(478600001)(6506007)(6486002)(316002)(36916002)(8676002)(66946007)(54906003)(41300700001)(66556008)(6666004)(66476007)(5660300002)(26005)(2616005)(31686004)(31696002)(36756003)(7416002)(83380400001)(2906002)(38100700002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?b1N5dHRTckhNekNsdXN1azNiaWtvNjY5SXBncy8zdUdTalhXQXRyNGQ5dEFT?= =?utf-8?B?OTRQUmkvYU03a2tvVnhyd1NlUXJ2Z2gwZHlIME8zdUhsYXo3V2hXK3kwa0h1?= =?utf-8?B?akplUG1iemRPc3AraTF5bmhvNi9URXcyVUlPdGxFaFdGZ2J5UVB1bFNlZjRB?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lqVWZTa2RWeHFoRko0NmdFOUVqc0h6RUxyejlMK1Rk?= =?utf-8?B?QWVxcU0yTittdis0NkJMZ1hmQWMxV29TVlQ4emhFYThOazI0cTlrRzcxS2h2?= =?utf-8?B?V0JkRlc0K3BVV294ajBYdEpVbStZZVE9PQ==?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: a120b2b1-8bb7-4340-0187-08db9cc6bdba X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Aug 2023 13:02:40.6378 (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: KnRcIK3z1jlpDN78NrdH5fvdqiuAFd7WgqOqBdqh+QIrO4CqdVuJtXWRce23t2W3eLT5XZeKyRsHkcgK2VwdEA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR10MB7022 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-14_09,2023-08-10_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 phishscore=0 mlxlogscore=999 bulkscore=0 adultscore=0 spamscore=0 malwarescore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308140120 X-Proofpoint-GUID: f74aFBR_0WfwMWHpNnXrVDT-Aw6zZxK2 X-Proofpoint-ORIG-GUID: f74aFBR_0WfwMWHpNnXrVDT-Aw6zZxK2 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE 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 > try: > parsed = ast.parse(py, mode='eval') > except SyntaxError as e: > diff --git a/tools/perf/util/expr.c b/tools/perf/util/expr.c > index 7410a165f68b..0985a3cbc6f9 100644 > --- a/tools/perf/util/expr.c > +++ b/tools/perf/util/expr.c > @@ -13,6 +13,8 @@ > #include > #include > #include "util/hashmap.h" > +#include "util/header.h" > +#include "util/pmu.h" > #include "smt.h" > #include "tsc.h" > #include > @@ -495,3 +497,19 @@ double expr__has_event(const struct expr_parse_ctx *ctx, bool compute_ids, const > evlist__delete(tmp); > return ret; > } > + > +double expr__strcmp_cpuid_str(const struct expr_parse_ctx *ctx __maybe_unused, > + bool compute_ids __maybe_unused, const char *test_id) > +{ > + double ret; > + struct perf_pmu *pmu = pmu__find_core_pmu(); > + char *cpuid = perf_pmu__getcpuid(pmu); > + > + if (!cpuid) > + return NAN; > + > + ret = !strcmp_cpuid_str(test_id, cpuid); It seems that strcmp_cpuid_str() is only added in arm64 arch code - should there be a weak version for other archs? > + > + free(cpuid); > + return ret; > +} > diff --git a/tools/perf/util/expr.h b/tools/perf/util/expr.h > index 3c1e49b3e35d..c0cec29ddc29 100644 > --- a/tools/perf/util/expr.h > +++ b/tools/perf/util/expr.h > @@ -55,5 +55,6 @@ double expr_id_data__value(const struct expr_id_data *data); > double expr_id_data__source_count(const struct expr_id_data *data); > double expr__get_literal(const char *literal, const struct expr_scanner_ctx *ctx); > double expr__has_event(const struct expr_parse_ctx *ctx, bool compute_ids, const char *id); > +double expr__strcmp_cpuid_str(const struct expr_parse_ctx *ctx, bool compute_ids, const char *id); > > #endif > diff --git a/tools/perf/util/expr.l b/tools/perf/util/expr.l > index dbb117414710..0feef0726c48 100644 > --- a/tools/perf/util/expr.l > +++ b/tools/perf/util/expr.l > @@ -114,6 +114,7 @@ if { return IF; } > else { return ELSE; } > source_count { return SOURCE_COUNT; } > has_event { return HAS_EVENT; } > +strcmp_cpuid_str { return STRCMP_CPUID_STR; } > {literal} { return literal(yyscanner, sctx); } > {number} { return value(yyscanner); } > {symbol} { return str(yyscanner, ID, sctx->runtime); } > diff --git a/tools/perf/util/expr.y b/tools/perf/util/expr.y > index 65d54a6f29ad..6c93b358cc2d 100644 > --- a/tools/perf/util/expr.y > +++ b/tools/perf/util/expr.y > @@ -39,7 +39,7 @@ int expr_lex(YYSTYPE * yylval_param , void *yyscanner); > } ids; > } > > -%token ID NUMBER MIN MAX IF ELSE LITERAL D_RATIO SOURCE_COUNT HAS_EVENT EXPR_ERROR > +%token ID NUMBER MIN MAX IF ELSE LITERAL D_RATIO SOURCE_COUNT HAS_EVENT STRCMP_CPUID_STR EXPR_ERROR > %left MIN MAX IF > %left '|' > %left '^' > @@ -207,6 +207,12 @@ expr: NUMBER > $$.ids = NULL; > free($3); > } > +| STRCMP_CPUID_STR '(' ID ')' > +{ > + $$.val = expr__strcmp_cpuid_str(ctx, compute_ids, $3); > + $$.ids = NULL; > + free($3); > +} > | expr '|' expr > { > if (is_const($1.val) && is_const($3.val)) { > diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c > index b6654b9f55d2..b6948021fe29 100644 > --- a/tools/perf/util/pmu.c > +++ b/tools/perf/util/pmu.c > @@ -1779,3 +1779,20 @@ void perf_pmu__delete(struct perf_pmu *pmu) > zfree(&pmu->alias_name); > free(pmu); > } > + > +struct perf_pmu *pmu__find_core_pmu(void) Why was this relocated? I don't see anywhere changed which referenced pmu__find_core_pmu() in this patch > +{ > + struct perf_pmu *pmu = NULL; > + > + while ((pmu = perf_pmus__scan_core(pmu))) { > + /* > + * The cpumap should cover all CPUs. Otherwise, some CPUs may > + * not support some events or have different event IDs. > + */ > + if (RC_CHK_ACCESS(pmu->cpus)->nr != cpu__max_cpu().cpu) > + return NULL; > + > + return pmu; > + } > + return NULL; > +} > diff --git a/tools/perf/util/pmu.h b/tools/perf/util/pmu.h > index 203b92860e3c..580b8d65bd65 100644 > --- a/tools/perf/util/pmu.h > +++ b/tools/perf/util/pmu.h > @@ -288,5 +288,6 @@ int perf_pmu__pathname_fd(int dirfd, const char *pmu_name, const char *filename, > struct perf_pmu *perf_pmu__lookup(struct list_head *pmus, int dirfd, const char *lookup_name); > struct perf_pmu *perf_pmu__create_placeholder_core_pmu(struct list_head *core_pmus); > void perf_pmu__delete(struct perf_pmu *pmu); > +struct perf_pmu *pmu__find_core_pmu(void); > > #endif /* __PMU_H */