Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3820489rdb; Thu, 14 Sep 2023 03:53:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFcxWJBoqgd4fRyD6Vm2owiUaQF9lxUnLN5EwR70wCAYgu49UDRtGFv/o4RXRzoN6PxxosW X-Received: by 2002:a05:6358:5284:b0:13a:6cb:4d91 with SMTP id g4-20020a056358528400b0013a06cb4d91mr6253101rwa.7.1694688813049; Thu, 14 Sep 2023 03:53:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1694688813; cv=pass; d=google.com; s=arc-20160816; b=QhHSu7Uuxh/ZGQjDVcosrt3dVuS1J2SLdsZOUQzSJ3q/nQ5LEt9XLmP6PSRaJ75tCn d9k1wXUBoZPwBUnwPgwfb9vvJogpMWJuULPPRCaRCq9UT+0uBhvMSEEALB6KTillaqFU +ZqZ9LIaWoZ+GAveaY8KOMjP2n8Ak978eEYnFrVr3OYckWoVH+avomrPN5KS5Qa3/Hs0 5dxhuLyMl1ORzS94zXzRpvSulWDsnV8KweY5dc19l1HgDqeAIMsuFjN86YSACLwlN11m VLm8wv/IQRrM7Vu98x0WMxsrzz9DR/XhuMGvQmRWcq2fXk31qjSDlJWYUr803q/pj7Qx 38AA== 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=n4gpomVaGRZCPAZfrZ1eIRn/7c3Q+vomeaztCsuvNH8=; fh=OlG8wA/d4Gmiqh+kjG6OCxmgPPBrL7zbYhPE6tM2KOc=; b=P1wuoTWLw+6589ZOeMnJRVHqYWK29xF51qRSe2/wBlF9lDjwBCSuuZm6DDTKC0RNqV E0WJgtqI4QuAplJgPSmPws7EgLFPs9PLpDn4jl00XuneCW4l+kAdoWpg51r/JCs5Qatv b8s6msPPJTdtyaU1JZc+XFH0mv/1sfe2wMmMvQZXzid9QJaRwlNU0x0Cpqxr0534ktGS WZVDihVNev81wrS/C+M+fcgZEPB1b6rUqyJK44g/n1XDZKzTE29/32h0bSOgdtWIrw/O zmlZP929fpRq/776cKQFIXBJY7rW1OPO5UzlzSvtXgVBJB9FBrIrZnAGgSLaPsJEZ4oo Q3AQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=Fm0byI7I; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=SyuxImOF; 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::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id l28-20020a63701c000000b00573faa3bb52si1295008pgc.395.2023.09.14.03.53.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 03:53:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=Fm0byI7I; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=SyuxImOF; 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::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 2CEFC8021EEF; Wed, 13 Sep 2023 23:41:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235804AbjINGl0 (ORCPT + 99 others); Thu, 14 Sep 2023 02:41:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235781AbjINGlY (ORCPT ); Thu, 14 Sep 2023 02:41:24 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92346CD8; Wed, 13 Sep 2023 23:41:20 -0700 (PDT) Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38E1SuSZ014717; Thu, 14 Sep 2023 06:40:52 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=n4gpomVaGRZCPAZfrZ1eIRn/7c3Q+vomeaztCsuvNH8=; b=Fm0byI7IZUjMUjpczsR4C2pCqS0OdtNUuEDQ9NKWBsv86nBNrAdr7ZDspIWulIV+6EV0 ypsPh2IrFEldgIi1he5fBDa7ZIA2ryswa+7+JeLz3aNtvaetDpUUaRtO8Tr+ye98sMlU 8AcCfLj4Fqy7uDXdcQSPedloEfJIQi4aRNFJJ7C+zANrMtr19pbjC4XWk2lKoYAu7tuN NVvrwqZtBBNzgPc0QJQoDj7QCPYVOIJTiyeSdV/KBIEbdbYKm2pqq7XX/lzRtsIjpC7z sNPLNAworNKDJtZzV82CS7OUpgNSXCAhjHxcW0b4Y2M8Npu2zWoB1eW+IypiMQkQAp8X Og== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3t2y7pm9jv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 Sep 2023 06:40:51 +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 38E6Qjbk002299; Thu, 14 Sep 2023 06:40:50 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2046.outbound.protection.outlook.com [104.47.66.46]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3t0f5ehtyv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 Sep 2023 06:40:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hgKXkcecFOoQ0o9+LYP0u+SuuQdDQ7hVR1H26IP4vocxtI3S9g6PhIApbYXkreO/baDvmWEUep9JEbKfv1whDAXnnNF6RF4aA2Yyp7ulbCWKzAmTjym7S5JFcdlKDglfUNEDPaKPFr1We8pmQQ+gCgUPCuFpvVZNPCwEhXaT+fLDSji+nz9fZtWmiotHCw5w+E9LX7YZ4m0b7JCCrnpPJa4NwSE1McKWxaz/Y9aq5PqeZAsBkr2eCPf9f1/QYyEA1ChrXt8v6JIYM7Th6nb+T3GViJ5sNX6rtbDy6EXAQtGx5b6uaXxx8I0L42ceQ6AFwla9zbU/JN3JU4rMaWNFHQ== 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=n4gpomVaGRZCPAZfrZ1eIRn/7c3Q+vomeaztCsuvNH8=; b=RjftcbRC2yBS7xBW2ylbvxyqxXwB4MzpCRkXuBzLyhIVaqGY4pfPTQuQCs+9vLDnx7n/H0+vIAM0I4yTevX353VPwYUPMjl0Wd6d8xQtWC8qsCtzQky92ITHiOgz8/FzfSLlj59ZkvBKDMuaj/eBQo9HKSzjFo83nMpwIu3djjEdss5ID6OBjei5I/oEyY3UdfFjXEib8mmeCDETa/jBkvDlzHNt/wPbCvsd9tl+VnZbuwMb4HFdPjujvpW+hS66axzfpOCzt9z/FvtXym9U7L69GiD3nnDV2Ib5KijsM6vG6q2HlGn2F+4AK3ng995L6LnrcERGsfDn5EQRv9Qc1Q== 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=n4gpomVaGRZCPAZfrZ1eIRn/7c3Q+vomeaztCsuvNH8=; b=SyuxImOFbYutz/nZieY5kjq3jouZvlp1NyI/r1xDrCX57EOZQReuj8ZNikrs31/nDfC7MF0FcQpNjgJmkPOGw3R+wl7A4sCOT12JTh2P99A4Vv/agCi13CaexfbtlWFEdb9OZhJ8aATQ0sjkPWKhmxgZf6hA3x0EVd4BYS6PK8I= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by MN2PR10MB4286.namprd10.prod.outlook.com (2603:10b6:208:1d6::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6768.34; Thu, 14 Sep 2023 06:40:48 +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.6792.019; Thu, 14 Sep 2023 06:40:48 +0000 Message-ID: Date: Thu, 14 Sep 2023 07:40:41 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: [PATCH v3 2/3] perf pmus: Simplify perf_pmus__find_core_pmu() Content-Language: en-US To: James Clark , linux-perf-users@vger.kernel.org, irogers@google.com, acme@kernel.org Cc: Will Deacon , Mike Leach , Leo Yan , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Kan Liang , Jing Zhang , Haixin Yu , Eduard Zingerman , Ravi Bangoria , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20230913153355.138331-1-james.clark@arm.com> <20230913153355.138331-3-james.clark@arm.com> From: John Garry Organization: Oracle Corporation In-Reply-To: <20230913153355.138331-3-james.clark@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: AM0PR04CA0130.eurprd04.prod.outlook.com (2603:10a6:208:55::35) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4313:EE_|MN2PR10MB4286:EE_ X-MS-Office365-Filtering-Correlation-Id: 0e1e76c5-f897-4783-9bdb-08dbb4ed8777 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GnIMtVUhsEX7ruXGn4YzpJuXaTrK2bunUnkf3UHI3t0axqzypOwJ1uzQMr46xf4vYksP3HpyzkfSXSdJw2qkz+YyNCxj58XGqeSfmS71/JD9vDrD8B3zQFHzZmOT2aTYE7x8qfOGOWx1GufGzIpU3Y6LvB5kAEPkVWRcnpX7KmfwMR8OIRzwDlHJNycsVorgZmykABQk9oQz42JR100tpY4BSrYFCvuX9oCWYrUA9cXI8LTFQbQvIOB1RY6uD0dIEC2udAK3ogcnI0+sr6GXGO0mCeR4DLI0xG+TQsj8kHD8uo18z3ttIYu8jbr+GXWPI/X+uczGD3n7fHMmS5fg5KkBUMTl2Q84765CLfxShuprQJkbTanD0hdrhZed85vwre71L7hZjCbVU+Jn20Uf45KenAlSZrK38erDx1p24zL2D4Yi/fIrALErKt9BRNt+kns5cRmM5Y7QXINYC5ppPQstXxZ1iVedaQ3crJ/7gA/Ej24lX9i7sdjkar7wbZU8GTCsW1HWwcHyAfBOkCj2tZmiwXxlWVIE9POGnMiLZHd5cESrUByZkmSiBJV/rtWAICNvTyAUKA3r8LigU/wq13u2droE/19MNDiemY9yoJ8wnT7M77Un0lNFVIMBEUW9Xqlje8wyEB5+6reHu0DyDdaS2wdaqwraLLIaUQn00cpYwXM7GJRCfTxEWsfDCMPA 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:(13230031)(396003)(136003)(366004)(376002)(346002)(39860400002)(451199024)(1800799009)(186009)(31686004)(6486002)(53546011)(6666004)(36916002)(6506007)(36756003)(31696002)(86362001)(38100700002)(2616005)(478600001)(2906002)(4744005)(83380400001)(6512007)(8676002)(316002)(5660300002)(4326008)(8936002)(7416002)(41300700001)(26005)(54906003)(66556008)(66476007)(66946007)(101420200003)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?SEVRMGtSOFVVVEdxTGVoaFBGSWxGZ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-8?B?Y2xYUnVwVU5DOFRuMVlueTBFTTAvblpEQmdEaDlzaGpBa0hGQ2ltSy82TU5S?= =?utf-8?B?VThXM241NmNJeDQ5MEZ2RXBEWTRnVHJSaklhT1o2eXkxN1EvcHBjNnhUT1gx?= =?utf-8?B?ODNsa04yTXBnNVBHdWUxN2FUTUkwLzVMMlBHRUdRVUJEcGc5Vzl4cHUwbVJK?= =?utf-8?B?SFc0QT09?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0e1e76c5-f897-4783-9bdb-08dbb4ed8777 X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2023 06:40:48.0285 (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: QxcNQBdl5yMyvHkz9AZV4bNds0mDBrFtTbKio1yzH/UrW4RUBAQAi0eHNy1d6rEOugUHqsVa4EdTpC4sYa8b2Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR10MB4286 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-14_03,2023-09-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxscore=0 bulkscore=0 adultscore=0 phishscore=0 spamscore=0 mlxlogscore=999 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309140058 X-Proofpoint-GUID: UDECaUVqMiTCsoHeEMVTIfp6WkUPcI8P X-Proofpoint-ORIG-GUID: UDECaUVqMiTCsoHeEMVTIfp6WkUPcI8P Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 13 Sep 2023 23:41:32 -0700 (PDT) X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email On 13/09/2023 16:33, James Clark wrote: > Currently the while loop always either exits on the first iteration with > a core PMU, or exits with NULL on heterogeneous systems or when not all > CPUs are online. > > Both of the latter behaviors are undesirable for platforms other than > Arm so simplify it to always return the first core PMU, or NULL if none > exist. > > This behavior was depended on by the Arm version of > pmu_metrics_table__find(), so the logic has been moved there instead. > > Suggested-by: Ian Rogers > Reviewed-by: Ian Rogers > Signed-off-by: James Clark Reviewed-by: John Garry