Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2139319rwl; Fri, 6 Jan 2023 02:24:43 -0800 (PST) X-Google-Smtp-Source: AMrXdXsuk/ss87DHX33B1zUxmLWfO8X65sGWZV0ytFNgskq33Mbm4Cjf+/HXAFm5bNP3Yfz3yADA X-Received: by 2002:a17:906:36ce:b0:7c1:727c:5f70 with SMTP id b14-20020a17090636ce00b007c1727c5f70mr47130310ejc.46.1673000683359; Fri, 06 Jan 2023 02:24:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1673000683; cv=pass; d=google.com; s=arc-20160816; b=gfuzy+Q549rGpj7H/uecDLDRSVIGeZkrGZsMoOaU9coqnFcTbqitmJ5dVNGouP+Mcx 1zxbbmfIcF9zfqSIwde+rYKlWIp0D5Pj/2QH9R88gHRjZhFZxveWWzKBvFZptTcIkKhn Jt9mrFIXfypRUP25mnmrnBC9i5NCuWy72Y1YghJf0a8TyPisQGnTaurUAnqJNSCz8xo3 by3MQDsDzf29+rk8/rZbGdQPytfPIFWqOo0QT+JvzbCflr4uR2En+Os87cjMml2KFh3j Q9zYPcuKUaPb7XpacpJW+37UnjUOqun953oolz72MX4gi/iNf0EfbXdBQxVb7HAx4l+/ UNFw== 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=iRUpAKfDd6ruefZSFrPATDSWwjGi0E2wxyatIcxs+wo=; b=s6duMqzty/vH0nqRmHCDjBdK5k+E/Y46yA9IkjM6Ulpp8ygWOP5tOybL+kkVR34re+ btTNj+Db/OdDLnx2WMGOzAeR/+OiRbyQd/qQRfOfqsOMk9hkLZPJkKZhstJuTB/ho97S GQ89HiyvpVgXqAr5HjrcJ6xklo2Pl5Mm2IxuqNu3rQUlu4bbGKo+2vZ7+4NvTM/81/R/ afqECHdF65d3PsGyKSgdOXduW4PQ1fP8S5mO947/KskqE5Cb4WhB+/0auE8RPivqkfXe NRQBXE0FBKNDHk54t077ssc2fFpme1zeoaLsNYQkfgYwYVYZYVurn0KrxQBPHNDEnMdq soyw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b=d5U1vPHi; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=a77W94+A; 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 dr6-20020a170907720600b0084d197a89e2si846361ejc.957.2023.01.06.02.24.30; Fri, 06 Jan 2023 02:24:43 -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=d5U1vPHi; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=a77W94+A; 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 S233252AbjAFKPH (ORCPT + 54 others); Fri, 6 Jan 2023 05:15:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232445AbjAFKPD (ORCPT ); Fri, 6 Jan 2023 05:15:03 -0500 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6217068C8D; Fri, 6 Jan 2023 02:15:02 -0800 (PST) Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3068PrPd015946; Fri, 6 Jan 2023 10:14:38 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=iRUpAKfDd6ruefZSFrPATDSWwjGi0E2wxyatIcxs+wo=; b=d5U1vPHiOa2SU9kBcQCABUEcJdI5Z85I+xAHWmfM5muLh3qscZJclMN4nRYRTsqs8ymL RqSuofpwrEMyVacYqEqMac43x82bvAiz4j34a4dvSUmdh1M5S2BgfW1HyBeW5dhDO/jv hdFQ7e3uBCyN3vxVKnqJzyxwg40taVZpM4rvmiYKVfHuD+K2EjtA3FZqi2DX8FjxCZZM yjjApdDirjtUrd0YwrGVBn/gIMNLEqRU+vS1ZVHlwqbU6HHltbOo8Pr90xweidGSPvOX xH2xJ2vfnRkffr08GuX1M2Gq/2TUXz3dnDXj0MAE7iaQLICccAkVMHohCCz8kVD2SJoO ww== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3mtbp12vsg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 06 Jan 2023 10:14:38 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 3067o49g005022; Fri, 6 Jan 2023 10:14:36 GMT Received: from nam04-dm6-obe.outbound.protection.outlook.com (mail-dm6nam04lp2047.outbound.protection.outlook.com [104.47.73.47]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3mwdf1kfr7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 06 Jan 2023 10:14:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Lm9hKFPgeZrANQKnFQllu0tfN7vGCWBjKsSLBBy7gdvZvYKo9p50xLHJxAGW3hOVD4Dk/JAKTFux68IIdOy/SlS0IidaROTWR3v3TR6o/+pl2NdUQmfn8JI1zzpqLC5r20aahIc8AlSMeUWlfJVbd0WUcgYz+mGk39wMv+wjWUebH4oH98Rch99aF2aXtjB0U4BKV1T05HSXnCuznKsiOT+iStuTK0tRZj1mQfvYZqdsMVeRuoUmIclQvDfW8zcbMMSxe+CSL+EEk/CDTGfhJ/LbSHDpZt0GjrtKgD8jLdQQrwNXRbDsQ1iEBlu86cMJQdf72Rk/gIpQ/NnPD99kOQ== 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=iRUpAKfDd6ruefZSFrPATDSWwjGi0E2wxyatIcxs+wo=; b=g8twrQOCZtLnPpBadvjeCvTcwjPilttQI5awycqqEX/JLAHtKypIXXHOxnUBtnGvuBlU2DyUb/0FSfBcHUZTTthajY7tiEmLpP5X5GuvyHJ3wvTbGgBE8NmcEQpMIF1GWvxzPX4/akwiZ+NlFu1mj5PaPU+RPlAXU7kbbVX52fyoEvsMqMvOSOblQDVf/rF2Qf2hiXFu5bQ2PWvj7xF4/CAvKIcUOdRaC/Rgt6y/XO9ZG13C4ociABYCN7LrSSZrGY5CokopotNDIjQCvIQiVjO7uPrptvwLf2Z/95IYvb4ZqkPy6fzpX1q4yU7iLFsXxdtZIQqcICrAzxF5BZhuLA== 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=iRUpAKfDd6ruefZSFrPATDSWwjGi0E2wxyatIcxs+wo=; b=a77W94+AKk/mwUf6skQwN82LIYUzFTotgPryMInPkSA83qTW3aUDEHUhGgBvkwfCtxya8V+axIyjajuAAyZDSeQLZ6uqiuiJ55QTgoetrf3nD7zmDVyy3Mlg80OLemjJ/1C+SfSU1Z/Zfa0ENFdos3OmTAe3gjKLF9pa5OKAh3E= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by PH7PR10MB6130.namprd10.prod.outlook.com (2603:10b6:510:1f6::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Fri, 6 Jan 2023 10:14:34 +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; Fri, 6 Jan 2023 10:14:34 +0000 Message-ID: <6971b848-2754-6909-d36b-ea80fe157e95@oracle.com> Date: Fri, 6 Jan 2023 10:14:28 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v5 1/6] perf vendor events arm64: Add topdown L1 metrics for neoverse-n2 To: Ian Rogers Cc: Jing Zhang , 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: <1672745976-2800146-1-git-send-email-renyu.zj@linux.alibaba.com> <1672745976-2800146-2-git-send-email-renyu.zj@linux.alibaba.com> <5c5716e5-b2ff-67cd-b608-4eeffa7e04bc@oracle.com> <1f3d53cb-4160-e29d-3934-d6a488d9fd49@linux.alibaba.com> <7aa225df-af25-a6be-9bef-c965488ba43a@oracle.com> <00bf227a-75ce-c63c-c740-89b8d2b27e1c@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: LO4P123CA0661.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:316::15) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4313:EE_|PH7PR10MB6130:EE_ X-MS-Office365-Filtering-Correlation-Id: 644782fa-98cb-43cd-791b-08daefcecee9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aIVnOIIwmcVdUaaWftLFPAEFldTL0dKRyPEISr3fT5Ek81Uvv73IwfHES6leBEXCZhIY8uzwU9RuCBizlE1xQRzSSlRVoXmTZik2WCPvI6peDGEOKm0l5PvDVdLWP7Xh1l+0Bk0Yjdeoq4g6VyU6yKjdFYwwN8VRuTV0g8wQ28a4F5+ImGV4m+dD4a6iJGEUiFHNeLy10LESWasoUJHiMCmG/xKDGDtw2kAwKU8WOPsq70jdfKM+UtnNt7T/UZpJyzpgcv2x0keI3/mtOIRKY4UhZocSI4Uf30ZM17r83PjlQz8pZJkKQPv+mCruhmFAXxmgUCD6iL5mu34IIkYiSqL1qRlsrLj5hjzUK8zRtzeJLAA3mAOfvwrXADH881dhKfdt8sRbjsgSyFIh7H12EIjkKEWuKZd79F9KQnMucVOm3unalJW+EBdnTW9y/GY/PDkt8ALTqOKbY9uJotFP+dEgxYL+DDI8u+K/w3NMCBVV6R4LIVmvFmyJ4i4oVw/Vw+EzOpE2BhAtgEmu76xcJEkyyv/VFvKT/0vXE2NYN7IN6Ukwlx1Bvi+TlzNoL6+nKV0R05tcKn0j0Z/6ugeHymTB064tJQOAgGcpXWgzsNBTNy3YxEzVfjCVnZhdWqtXK+i7J4RoEaOeTogUmvyLCbTnvyNAI8IKCd6q0eomagxu+ImMobachwdmZbD1QvZGom0Gm0NLrLzduW9o6lZWLBWQ1HaPmR+1AHXocsIua50Nz1xLmxwnClEz13XXX3TI 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)(2906002)(5660300002)(7416002)(31686004)(41300700001)(66946007)(8936002)(316002)(4326008)(66476007)(8676002)(66556008)(38100700002)(6916009)(54906003)(53546011)(6512007)(36916002)(36756003)(186003)(6666004)(26005)(6506007)(31696002)(83380400001)(966005)(2616005)(86362001)(6486002)(478600001)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?RTR6N3RMS3FkZzlGU2J4MGxhZ2NaUjNwMUFuSjhpNnU4S3BETXVpbGY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2wrd1d1dGVjOVhMY0VsS3V4a2h3aktR?= =?utf-8?B?RWNrR0hXckJFOFVXUXFnT1p3MEt1TTJrdEVHcGRLK1loT1owVUcvM0hwVUgv?= =?utf-8?B?Zlg4VVJvZms3ZXljdEJPWFdGYndVQzdhSEJNSDVUL3pwb1Z1bW92R2FUSE5z?= =?utf-8?B?MVFEMjVacis4NmlQZG0wRThxNlRXRFRYdW5Rb1NSVEk1dllPbFY1NXh5aEZO?= =?utf-8?B?T3lONkVMc2tUaDhzUVVOZk5La2ZlNVhnTlFYTi9VM2RuMHk0VTM2NzRhTElx?= =?utf-8?B?SzJMTlZXUkN0Z3NUQThreTdtYUpVbkNPaS83andJazBRTi9Pcy82MmNlMlJp?= =?utf-8?B?MURCemJ3N05vT05iejhRZ1QrK1oyeGpyamNjTExYcldDVzg0dyt2ZVlLZ2pD?= =?utf-8?B?akM3eGZEZUlhWS9Mc01jdFQrQnNHbFhUZFJCUGpzNzNNWXIwVWhtV0liZlZk?= =?utf-8?B?VHhBOVpwS3Z1My9xWWUwZEFZeUJMUzdvemNBMnVrU00wWHpuaWVsSjA4TXNZ?= =?utf-8?B?enpwcE51cHFmNzhrdmMwcmR4bTRCbDY5YjJXN2RjSFdwaDZuQ2lLYlFEMXpj?= =?utf-8?Q?0w0LbOGMcko=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 644782fa-98cb-43cd-791b-08daefcecee9 X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jan 2023 10:14:34.2086 (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: I97R8rcmNWfl4n04mVprS+1wyrJzcb8/8tYdMNMrYp9KyxTEuU2e2fabEKk3QYEAKuNyCtgqAgp8+jpGsoAREQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR10MB6130 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-06_05,2023-01-06_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 suspectscore=0 spamscore=0 mlxlogscore=999 malwarescore=0 phishscore=0 adultscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301060081 X-Proofpoint-GUID: zQz9AM0kQz-IIzjo5ILXyWkXxf-QsqhU X-Proofpoint-ORIG-GUID: zQz9AM0kQz-IIzjo5ILXyWkXxf-QsqhU X-Spam-Status: No, score=-5.7 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 05/01/2023 21:13, Ian Rogers wrote: >>> This may be a feasible idea. The value of slots comes from the register PMMIR_EL1, which I can read in >>> /sys/bus/event_source/device/armv8_pmuv3_*/caps/slots. But how do I replace the slots in MetricExpr with the >>> read slots values? Currently I understand that parameters in metricExpr only support events and constants. >>> >> Maybe during runtime we could create a pseudo metric/event for SLOT. > For Intel we do this by just having a different constant for each > architecture. It is fairly easy to add a new "literal", so you could > add a #slots in expr__get_literal: > https://urldefense.com/v3/__https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git/tree/tools/perf/util/expr.c?h=perf*core*n407__;LyM!!ACWV5N9M2RV99hQ!IHcZFuFaLdQDQvVOnHVlbbME2S4aW8GohWUkydlejpi7ifFz61r7RutGXReRt0d88X_vDfkTySCiuD2PqOA$ > Populating it would be the challenge ???? Thanks for the pointer. I think that the challenge in populating it really comes down to whether we would really want to make this generic. I suppose that for arm64 we could have a method which accesses this PMMIR_EL1 register, while for other archs we could have a weak function which just returns NAN. If other archs want to use this key expr, they can add their own method. Out of curiosity, do you know if x86 has such a capability to get this slot info from HW? Thanks, John