Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6350022rwl; Mon, 9 Jan 2023 07:19:45 -0800 (PST) X-Google-Smtp-Source: AMrXdXtLn+zJ/tvZoFPFMl/vAM/cNEUpJV0DSyCRLF7TFCmKXIMk4oDjThUUWszDp1SzSL74xxAm X-Received: by 2002:a62:aa12:0:b0:582:7ea5:c298 with SMTP id e18-20020a62aa12000000b005827ea5c298mr25439286pff.32.1673277585623; Mon, 09 Jan 2023 07:19:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1673277585; cv=pass; d=google.com; s=arc-20160816; b=lzKMVG/bdSMaj4mm9ica+JFKrGjYX/f0PqFzYLiRglrHCOwdmEkGxDfdfZOH0TF5H8 Lby6N3f76AmH6PXDWGLbnMkqENYXo6qM9CSie/90nO3DRHs4VffkMRVXnzPjsUzuFp/E ziJegRbgy0X0vvECqxd+DfmQYzDlyqoF7eUY5ehfeSaNa2lefRapWhSemgXWuZmUCjgR XS7RVS/lpXY2GQ/3jvGvmZBjEuR+dE10hvHZ8QExyaUhg8302hUT3SmaAFxeFP51Iqhc rd8li5oEbQBNjhd5iMI/svpuYObtlNuyipN6lm12KhCdi5vMeXAo5IL0YW9Y6OXyjZbr /+Yw== 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=4a4fF2dmxQv4F1cNE8nX3R5TrAwdOhmaCsVW+0xp5I4=; b=suWA38QeUBiEoPkn5fws9/sN/5WWdqd0xaV5JIIeKVa/w/AfyhKdjByllyBnwNSvjp AnKAqoevha7QiGEH5jrzrC6bGqFbyJ6qfdlByQVNGDQvWg/xIRqjYmv9YiSbQMUCkBSm NXAD+XwntIpWQLK2uyS07N3Q7+RF3ABEQ4cHvUPTiWXbpjq6qF4D2KWcR8E+mEjc3KTC v3ZayG5q7+/Qz3LsM9GNshGnjZYX/hhO9l4UIysWA3H+zDEWdCh84EKre/k2/Oo+sdhH IWgc5UMXte6k+/Y0pAg9wy0ccib9MJ+KPATq7+WMQjXR5CFsmk2Cxpfd2lROirzJjPKT IxxQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b=CQVphm4y; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=Rljw5dZs; 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 bm18-20020a656e92000000b004ace066f533si8136116pgb.177.2023.01.09.07.19.36; Mon, 09 Jan 2023 07:19:45 -0800 (PST) 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-2022-7-12 header.b=CQVphm4y; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=Rljw5dZs; 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 S234895AbjAIO7q (ORCPT + 53 others); Mon, 9 Jan 2023 09:59:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235921AbjAIO7l (ORCPT ); Mon, 9 Jan 2023 09:59:41 -0500 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED8AF186DD; Mon, 9 Jan 2023 06:59:38 -0800 (PST) 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 309EpwHY019315; Mon, 9 Jan 2023 14:58:43 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-2022-7-12; bh=4a4fF2dmxQv4F1cNE8nX3R5TrAwdOhmaCsVW+0xp5I4=; b=CQVphm4yfAd3hdhd6H5mw5jmT6pNfh77U2gRs8SngS7eNsbX4py/9t7ZhiYFlNLAwaq/ ZbAClRCGLedKND0iaPZ98w8MRn68oIWl9uFNyTdKq3DvI9lx8aRywuEj1aT5bMpUhRbc LVQWT0Hf2SGQVztM7bbPh0gz01u/0LPQmxupQolUCTtfqbh01lB0HPfiOECxll0Q4COP y4DiW3IQIdRc5c9xAS5/GprHEPCbSLD/tzJM/MRKvBUqcZNDow2Nnlm+u4V0i8IdGFMC jt4C7f8OwIP7dTdibZI29WanF6WE847pquJsrKbbfhoBT5yXgDPqEErFTX7ZEQs21lua 0A== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3n05w0h9ek-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 09 Jan 2023 14:58:43 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 309Dj6ku035330; Mon, 9 Jan 2023 14:58:42 GMT Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2103.outbound.protection.outlook.com [104.47.70.103]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3n0h8u8f2m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 09 Jan 2023 14:58:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DGuEAQlV17NrdS0+HsBCNnhQGZLMc8jmDbZXsMEVoJxyNqTGFICzKVbK1zmpL74lAk295sJBeKaxtr2kjyXZnMxD5H0g6hTsxqPGG9IviLlpn1DcNzv3Wr4bdJCHW1UYp5RNZ23EjrsZYTT0FIvqsqIL0b913SGwC9mCcJoWNpdM0tEj23b3AFILGLxJatRQ5s0KPKfB9IVoH8oEcizZvEh2ihUOfJayT/2yLiRn1L6uGPpvMQbbSRto9JGCwCzTAm9p2MeABO3+wc53/6vdvf3K/GTLlCOLLacXH196oz8NoUwKnJAoucjokDzsXocnNabbw2WPAv4YahjNn3V0cQ== 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=4a4fF2dmxQv4F1cNE8nX3R5TrAwdOhmaCsVW+0xp5I4=; b=YrpSBM4NbMQHVKXNVENexd5m8BHO++alwOj3TpBMTBqtcfgEpa04VVC4+9PF/fit3jrgD9Gnmo3xr2NoPqf/Kwbl6/heI2C33Btq+Z92nDNapoh57V1wCiOuWCiPjySo2cUJSPixQNmixVlq3efiRhz7jkn3D8IY5E80BwtBsDV3bdje25gFPyBQysOMtWQt1t1j35NIwuRmNmD99GONCXIaGxWN3o7Z+yVnLexElVX4PsUxTAgR48YWwCXAurkkoESUsOC8IVDWmR6F2uPb73oc3lPUuZjWaFdRqujzL/LwNpDzdCcGOsQNQLNMhmYpIu89FpGmfFVCAIi67OTuTQ== 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=4a4fF2dmxQv4F1cNE8nX3R5TrAwdOhmaCsVW+0xp5I4=; b=Rljw5dZsLV8MY4fjXVV+Cqnrl1CmdYiRMHUR/DX1HB3Gnzzp92Tnp9EBr6byZLM5YqgLB1x8+cINLg3eiOhMOMh1ttBYLa7knIWUix+nRxYbLHT2G6WYX+8ONFZ0S+cC9FTpIPVJhJdAZHlf6acfsy3kCxNm58hSr3FlBFpbj2g= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by SN4PR10MB5544.namprd10.prod.outlook.com (2603:10b6:806:1eb::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.9; Mon, 9 Jan 2023 14:58:40 +0000 Received: from DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::1040:f0e3:c129:cff]) by DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::1040:f0e3:c129:cff%7]) with mapi id 15.20.5944.019; Mon, 9 Jan 2023 14:58:40 +0000 Message-ID: <758b66bb-6f9e-8a9a-8b0f-10cd79a65613@oracle.com> Date: Mon, 9 Jan 2023 14:58:35 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v6 1/7] perf vendor events arm64: Add common topdown L1 metrics To: Jing Zhang , Ian Rogers Cc: Xing Zhengjun , Will Deacon , James Clark , Mike Leach , Leo Yan , linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Andrew Kilroy , Shuai Xue , Zhuo Song References: <1673017529-1429208-1-git-send-email-renyu.zj@linux.alibaba.com> <1673017529-1429208-2-git-send-email-renyu.zj@linux.alibaba.com> <7f60c97a-18df-4f93-0e95-2a9a6dccbda7@oracle.com> Content-Language: en-US From: John Garry Organization: Oracle Corporation In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO2P265CA0146.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:9::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_|SN4PR10MB5544:EE_ X-MS-Office365-Filtering-Correlation-Id: 59bd12aa-4e9e-427f-bf2b-08daf251fe3e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4MGSD7BqQPpJh7yFFl3CfE2fC1WCqGWLj6mzB1sS2e6GqPbfEqjE24Hb/99LkhSffpAzq/XQeGDY0Pet+s1FS39oC9a0DwMqSdxgMyJodaU5dfy6x3897VMLLuwmUx7P8Gqg1cFF1EqxNECFuw3JXaMbUqdliB1abk01Wkcvw50oswpiAXjePrfJDv9pCWYr0hdTo8eKdEUXXRL5B18KmsW+vMQ7hRor1wKtQxXJAoJaREAHTOkcpmI0AtpMVTGSMD1Wr+KskYjk33wqKrrrzuh59EV5ihbxCjcXfSfsuEbVcbT1LeuhqobSBDVsLI3E3vg4TAVMKOuWeP5rGGUJC2kqtXEAEeIaxmwxlKAxgWrZO3i3d3kdo/kzaqCpIId5TvAsbr05zVGtkax0l4CqHrksKHP5WJa9NLlK5He0SVo6Ed933ypZTidu0jmPp/s6e9lJJoNoGtivQTZJuXHWCok5w95OLbf7CrQlsIZ/lrVKYbFs2LLou1HE+9+148oz1CiLKTnlQJ4R7nHC/fHTx1GusCpUNPBXhi5pKa37jJqR6/YyjbfvQHj8w+n5kB/K/L+n+oD1JycXj+iKyayvCsOosTMTGJIpcKCWTrOqgXkchxItEyDWw+4S6SKQkyVTvM+dtzHwxTfLQed29d3ujPZthWwAanYMxtBJuhtynHAzUD8hC/cuvpwbVxhmHw/yD0VL0XGdbqWJnQpt9yWzVVxPj0MiMHpDazIVqE2uPw0= 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:(13230022)(39860400002)(366004)(396003)(376002)(136003)(346002)(451199015)(38100700002)(31696002)(86362001)(8936002)(2906002)(5660300002)(7416002)(8676002)(4326008)(66946007)(66556008)(66476007)(41300700001)(6512007)(6506007)(186003)(26005)(6666004)(53546011)(2616005)(110136005)(54906003)(478600001)(36916002)(316002)(6486002)(66899015)(31686004)(36756003)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?eHZkTjNVN3R0Q1FoOWo0VjZKQjRmb3hPeUhoditTMXk0azBLZUh5TFFmV1Nl?= =?utf-8?B?QyszV1haZTAyMHIrODQ2QTJnd3dCTHc4c3NaaVdlOTEva3R2aTZzMlh4dFY1?= =?utf-8?B?SkE2T00wdHZFWFhWVjBGRkd0ZG9uYVcxVDFHb3R6QTJGV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UlnPT0=?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 59bd12aa-4e9e-427f-bf2b-08daf251fe3e X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2023 14:58:40.1893 (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: qIXm1owHPPRTd68x5vYnvrWSG6bF8+KJn181bRav4iBHO0dcDOWdHq8FOlIfqs8Zi3ew/ytwibnOXZG/Uj92vQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN4PR10MB5544 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-09_08,2023-01-09_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 bulkscore=0 adultscore=0 mlxlogscore=999 phishscore=0 spamscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301090108 X-Proofpoint-GUID: CJ05WZPZ7LtEegI8fPDH5LKG_3gKfQpv X-Proofpoint-ORIG-GUID: CJ05WZPZ7LtEegI8fPDH5LKG_3gKfQpv X-Spam-Status: No, score=-2.8 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_H2,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 On 09/01/2023 02:53, Jing Zhang wrote: > I'll factor out the pmu_core__find function in tools/perf/arch/arm64/util/pmu.c: > > static const struct perf_pmu *pmu_core__find(void) maybe name as pmu_core__find_same() or similar to indicate that we're only dealing with homogeneous cores > { > struct perf_pmu *pmu = NULL; no need to init to NULL > > while ((pmu = perf_pmu__scan(pmu))) { 1x superfluous level of () > if (!is_pmu_core(pmu->name)) > continue; > > /* > * The cpumap should cover all CPUs. Otherwise, some CPUs may > * not support some events or have different event IDs. > */ > if (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 69ca000..a2f7df8 100644 >>> --- a/tools/perf/util/pmu.h >>> +++ b/tools/perf/util/pmu.h >>> @@ -259,4 +259,5 @@ int perf_pmu__cpus_match(struct perf_pmu *pmu, struct perf_cpu_map *cpus, >>>     char *pmu_find_real_name(const char *name); >>>   char *pmu_find_alias_name(const char *name); >>> +int perf_pmu__get_slots(void); >> I think that this name is a bit too vague. Maybe perf_pmu__cpu_cycles_per_slot() could be better. >> > Does cpu_cycles_per_slot mean "cpu cycles per slot"? In the documemt, Slots mean operation width. > If slots are 5, the largest value by which the STALL_SLOT PMU event may increment in one cycle is 5. > So, maybe perf_pmu__cpu_slots_per_cycle() could be more accurate? ok, yes, fine. Thanks, John