Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5761012rwb; Wed, 9 Aug 2023 08:47:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFeYRL2Xk3n89pMPgAA/CatSt7N1ZnJQpAJymrdYDZKX0oKdlehinLBaQz33971PsqaVE0U X-Received: by 2002:ac2:4a7a:0:b0:4fd:cb46:57dd with SMTP id q26-20020ac24a7a000000b004fdcb4657ddmr2279774lfp.30.1691596023840; Wed, 09 Aug 2023 08:47:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1691596023; cv=pass; d=google.com; s=arc-20160816; b=AQbDfBxWIsGtLmp2CKrFjqXLpNnyn2L4s0AxDI382/tfLNMBo0oVIg9heQPVfOLfB3 W7DxeC6bU5Wm8G/JI9MfHgW9YdTaHVPU4t8Wviil3w7cuUBgXmIWWuVZEST0TCAPnl7Q ue8aG8hXpwoe7vhMGdFmWyB02OtEPxZhSLup30QZ4/g8RDSczCRQ0Du+fKiySa1kShsK dYDkerHeHGbhQlDXxN5G9nmmycW44W6REA704sXVgJehfDkZARcuV8AIN3udfLCnQJqO jhxPTZkguxSv26D/F/NiqfR2zFvOvFpL2caHNf0oHxi15OfUrrhnwSf1rC9YsbK3XGPx Mqcg== 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=uVqvPJ3jC/VNExBOwA9B0cLLyE7vMv1tifsGLky94Ns=; fh=YDgX30hYskuESrcJjxYmS0lESQm6Ql4eFnmg5Rz3IoA=; b=AB5+q//xBEgCmKQz72sgkdZAmegngNl+yVF3HhZeHr7tH1u+QRkFxhUcoMRcGkG/Os /1vhtJW/WjH6VcyAcxad6szU8+i3O9+NVVa1KEys7sp+9wAuUkrOJw5ctcgKD/6KHxPo JWh07UWQSzI/QmTKXuKWjAsTgr1UXxSNOVDu9K4lVMPw77aTYurMDqZB5Nh59na75YM3 +nikC5FINUbhsYcV6MRwA1XTJhat2qpEx+Ew8xiK1VusTCvDPXpERPqBJSIfDtpGfMwu d1OqaUHzaVdyMRGkqmIKlrFMmvw1cpTP3FHrnJ/KyYtl5wCl5urZTd+ekNStoFSaVuHl 35UA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=Y+8NVZ7Z; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=S420eOG4; 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 u23-20020aa7d0d7000000b0051debd3e95asi8475340edo.146.2023.08.09.08.46.38; Wed, 09 Aug 2023 08:47:03 -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=Y+8NVZ7Z; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=S420eOG4; 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 S232739AbjHINzB (ORCPT + 99 others); Wed, 9 Aug 2023 09:55:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232763AbjHINy6 (ORCPT ); Wed, 9 Aug 2023 09:54:58 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 382092110; Wed, 9 Aug 2023 06:54:57 -0700 (PDT) Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 379CxYFQ016709; Wed, 9 Aug 2023 13:54:24 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=uVqvPJ3jC/VNExBOwA9B0cLLyE7vMv1tifsGLky94Ns=; b=Y+8NVZ7ZvsXkU7c2Hsedo73MkUsB94u05zc6/TG5pIcAEcpetyEk8t+ohVSykJTdbBXu DvMbhkBLuaNg8QPx+fjqlmGDjsEQN2mRH3O9cRrBcxPMA7fpJcxykaj7AvgyJAX1Fb1p VJ4o5LmkaNxLDMyQ5F5CD+PH+4mNznuXZIbNjpJbneU+Fe6oe5iJJSrRLTQXf8OSeVoh DMq1OE3hU9t7VK0s0ZcqZUOmHbvh2ljRV9vjnUPVm19u0Aq89EJVXmZio87PqJIbJqi8 MytsgeXTyo73cpPDwXMxXNY26MdvAV0P0GEURGHHle3hfxQK4Ag8OnYjVcfr1AmGvCYJ WA== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3s9cuernky-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 09 Aug 2023 13:54:23 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 379CvoZM021499; Wed, 9 Aug 2023 13:54:23 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2168.outbound.protection.outlook.com [104.47.58.168]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3s9cv7arw6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 09 Aug 2023 13:54:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RiqIxTsCdFTkHKvEOu5P8ZCs1kwJUgipQhZWbwwaFdVH8rXJImjfxr17r8dHUeIj8YM9IqgbDxAJRb/CRd5E5NHiMngCIxJ7HQKYXJVSW52gz+iH2fYZteNO+I3S+chKpYKhhvcv03+M+cdzQPHFH0QHHiPDCqBsM0GrVFY773bGA+WJjszFqCjk8kylSHpTW5IdspwPkUi5xfTdWFOu3Y5G1C1BlFHNgb/7IOy52OhrGM4+GJtFaNxHRArTibYYnQPh1TE40nzwhiBw4ChBO1OX/B19+MFjriOsKOgB5syPflqHr2pjNutq0sfvz5P1em1Q23EHWRleCK/15EwUkA== 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=uVqvPJ3jC/VNExBOwA9B0cLLyE7vMv1tifsGLky94Ns=; b=N3ZehYMcJdokhxXzoTSKimruGDpcaJHvXemDBW67GUkKkli9NPPy5aqAswDX74oQBYwQf+vJJHBT1Q0XRq4sb5cdVrzNI0EH2oLdxgi2TTwiDPIZvPsVvKlLKAF1W4BTJC0pzErzB1Bp0nuPNjHAm8IIGpDyXmTzvLAl3j56obLQ+juKuh7QKtZJ/6V3dfWuf/YsIhxqHMujc4mhvloOKd5v9xabuytgf9vQ71Q3LJ5//2feCwxpkKeLVhsWmmm1Q/GqWISEtE0JiuavPcczOVbA4bn8fOSCuqAzDn5nWUWuKklAeZA0oeHEkolkEsF2ofqS3xceQj9WOfRadLZjlA== 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=uVqvPJ3jC/VNExBOwA9B0cLLyE7vMv1tifsGLky94Ns=; b=S420eOG4tyGfmSmCPKi8T7/O2S+HKLFmIHNr4EbwrEOyE2bZTZyvnaSFk6/4H8/odkeGMnNQyQkAQqPH/mTHnUdbs/nllQVHx2wvuTsUqxAqN+WdakZRoL2hgz+Nea5eTbD/55vxI742omJ21zMFPuE9x8EBVNlz0ReIRPqnsr0= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by PH7PR10MB6154.namprd10.prod.outlook.com (2603:10b6:510:1f5::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.27; Wed, 9 Aug 2023 13:54:20 +0000 Received: from DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::ebfd:c49c:6b8:6fce]) by DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::ebfd:c49c:6b8:6fce%6]) with mapi id 15.20.6652.026; Wed, 9 Aug 2023 13:54:20 +0000 Message-ID: <80e089f6-12ab-b33c-d299-3f762e3a8d4f@oracle.com> Date: Wed, 9 Aug 2023 14:54:11 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [PATCH v4 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 , Kajol Jain , Kan Liang , Nick Forrington , Eduard Zingerman , Rob Herring , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org References: <20230807142138.288713-1-james.clark@arm.com> <20230807142138.288713-6-james.clark@arm.com> <6b3d8f28-9a38-d544-e396-706022f2e5f5@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: 7bit X-ClientProxiedBy: LO2P265CA0395.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:f::23) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4313:EE_|PH7PR10MB6154:EE_ X-MS-Office365-Filtering-Correlation-Id: 95daf4f4-24bf-4430-95ee-08db98e0217b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +2XZUwL5AWhxyuNdr8EqCT7tvEOkai1sk/sJWVh4Oqk60vlxqPnG2mc9y/P8smJXDgJg0moP8S7f7WQCUAk7a3upCcqhrMCCsOViVvEnrIRlgYSwm7IJ5g2rCMW8DtWlj/1k9bnCVvazp17dqUSrkvn7z+8EpUcXS0DjpXIVj2o489qibmQ7xyVEIrfIj7so+nkpikmzVhb1u61C0MZVxpe+jgQbda5gfT5g+UlHNZV4brqcWI0kcg2UAC5UzCbx18KsetsPURoRI4WlfUblO7jjCNVMJc+tppObaLMOvDQgAfWFjCUtkCBXgGCVIMcj8sWYEIk2oGAGgD6gd/oa+Ge4JvJZ+5mUUc3hkrq3Vz6bOmnSB0uTCDfZIEFEuidn+NDXF7NSFaSVm0SfT8NMXgwslghZpwJBLFvy2IVb/h9rgefRLwsKb6/gn/llR7DN+hEZXfvIRUFnfbJQQPLMCR9u+L7vRx7DdkrV4y3L/YgIddd9Sa91HhMmcYINOUU4rDtE8hCQ1ju3i3hY8iyHFLz4PKRC040aHpSv5Mc1IBm290xYo5fiIQuZ4UGzX+7BxfoE4Ht5py+kXba7GJSqaM3wI4dzVLex3POixGTE7TgXM3vIOBO9BSPh+5ddDTvDfMwWqJDfPUNL9qFHxeRQzg== 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)(396003)(39860400002)(136003)(376002)(346002)(366004)(1800799006)(451199021)(186006)(2616005)(6666004)(8936002)(86362001)(36916002)(6512007)(31696002)(41300700001)(6486002)(966005)(6506007)(36756003)(26005)(478600001)(53546011)(7416002)(316002)(8676002)(54906003)(38100700002)(5660300002)(2906002)(4326008)(66556008)(66946007)(66476007)(83380400001)(31686004)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?SWV6aFh2SkU1ckRjUmNlM0lJMkxUOU1PYjE4bUJ2MndlNmxDYWpnckNKbWhQ?= =?utf-8?B?NGdaT0l1d3dPTkY1c0dRaVRMd0c5SFdaVkk0bjFsVndhSEVZNzd6K2dBbjla?= =?utf-8?B?QWpMZWZYMlB3QS9YL0lKZU9iRzJ4V1ZV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?= =?utf-8?B?RWJhTmVGdVlCbUNQRWJYV25XVkgxQ2N0SzZFOWJGUlZMZmo2MGR2dFdQZ3dk?= =?utf-8?B?NXViL0JXOERIZUJjekRKU3pHU0VYWGt4bFdNdkJoRERSeUtlUFhycURJaWIv?= =?utf-8?B?RFNWRkgvSkxCb096UUdsdlE2Rk9VRkE9PQ==?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 95daf4f4-24bf-4430-95ee-08db98e0217b X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Aug 2023 13:54:20.7799 (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: JR2MLNxYoItK1wvDcA8xcksSRl4gml2wEojAIDIWy1O8dqdysS5CyzQB2KyYzDsqaMcJRxj8o/q3d7sQRnZHUw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR10MB6154 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-09_10,2023-08-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 bulkscore=0 adultscore=0 mlxscore=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308090123 X-Proofpoint-ORIG-GUID: oI2FQycGmHXLylLI44BXd4LQ_my6mRT8 X-Proofpoint-GUID: oI2FQycGmHXLylLI44BXd4LQ_my6mRT8 X-Spam-Status: No, score=-3.6 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, URIBL_BLOCKED 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/08/2023 14:06, James Clark wrote: >> "MetricExpr": "(op_retired / op_spec) * (1 - (stall_slot if >> (cpuid_less_than(410fd493)) else (stall_slot - cpu_cycles)) / (#slots * >> cpu_cycles))" >> >> I'm currently figuring out how cpuid_less_than() would be implemented >> (I'm no great python wrangler), but it would be along the lines of what >> Ian added for "has_event" in >> https://urldefense.com/v3/__https://lore.kernel.org/linux-perf-users/20230623151016.4193660-1-irogers@google.com/__;!!ACWV5N9M2RV99hQ!PlOppEWtIj9jDW2Zlon0zRZVpzPTzPvm5Ho5NnRIN0vD78iFcEzMEAtsrW_MrRPiW84XhWpbhc3seQcmLu-BfQ$ >> >> Thanks, >> John > Yeah it looks like it could be done that way. Also, the way I added it, > it doesn't have access to the PMU type, it just does a generic > pmu__find_core_pmu() so won't work very well for heterogeneous systems. I haven't been keeping a close eye on the hybrid PMU support, but AFAIK metrics for hybrid arm64 system, i.e. bL, aren't supported - maybe that has changed. The gating for bL support was in pmu__find_core_pmu() returning NULL for a hybrid system. > > If we're going to do a deeper modification of the expression parser like > with has_event() it might be possible to pass in the actual CPU ID that > the metric is running on which would be better. > > I'll have a look. Thanks. I was playing with this yesterday, but I was making slow progress. I was essentially following the has_event example, but the argument type causes an issue, in that has_event expected an event name, while we want to pass a hex string. If you could check this then that would be great. Thanks, John