Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp463864iob; Fri, 13 May 2022 05:42:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyt4y4MVTrL7xNWzCGryymo5UjswPwpwgmL+sZAjpIMRSd4VlLMtaTOQr6BVzmGw+4mLW/y X-Received: by 2002:a17:907:7d89:b0:6f3:ef24:ddd2 with SMTP id oz9-20020a1709077d8900b006f3ef24ddd2mr4236443ejc.550.1652445776348; Fri, 13 May 2022 05:42:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652445776; cv=none; d=google.com; s=arc-20160816; b=wXTNsr50cHVsJWgRf55CtxAsLASOg5oKiQVzHhO6Bp1m1taUGWvy/up4aea65q2OTc 1KzrL8u0VjQmr7xXAnNXD97MuyA30Fj8VOp39tPfitB1XG6bMekBJxh0Jd8Apug7VVjp Z9cyE0A1R3VXaTARBUU4g+lRz6tCEkaDBf84sQK6neWlrdT3UWm4EDO64Yud9TCg9GZp RLxBSnbPwBvVqQqogjEeF7dpcSBbrJ4QrUxCh3nMzTlAes5dK86ZpJIT3yBJh4gF8WZo +4sP5qiVZJDPoKdtAqhp2gOmQw+y9OJ0qT3a0i2CLHYsO6wYG+bDyO4TR3E5ZwsIBaC/ 6fOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=C2LEy4MczGEiZWPbpS9Fg0LFV/BAzaqm8jPOtCuW3Rs=; b=d8DVNgNF7eXSSzcSgCJE8vCgFd3mIaV0aVTBq7+PJKi1H5akDVQSEk7ufwbG/+ivil Hv2gtFfTeWAptJHmHUQMWsZtLXW4bzUJfV/tnS8gmrpzOfd2yXmxwnQ7LbaWzY43xbKf 1EKVoPVIdjPTCHPf6VTpkITezsX4hyIDrSGUxpqCTbAagRSvw+RmojAyfn5WrffOwU7u 5F2DR6wKmfLKcQPqhqSf7p7exShVLbwDjKbUDwlAiaoCdT8zvq90J4VF2z7C7IHXhFQq glPwqXwHCUD+ZRbzRhPJhoc1vrPeoNIZMVKOF/ZEjZdAZ/+c4HnZKL2NxDnSqg2N2ScB rN5Q== ARC-Authentication-Results: i=1; mx.google.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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r17-20020a05640251d100b00427e1b17847si2128406edd.202.2022.05.13.05.42.29; Fri, 13 May 2022 05:42:56 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355954AbiELPcS (ORCPT + 99 others); Thu, 12 May 2022 11:32:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355646AbiELPcR (ORCPT ); Thu, 12 May 2022 11:32:17 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A36420F758; Thu, 12 May 2022 08:32:15 -0700 (PDT) Received: from fraeml712-chm.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4KzbKp6Spvz67ycC; Thu, 12 May 2022 23:29:18 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml712-chm.china.huawei.com (10.206.15.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 12 May 2022 17:32:13 +0200 Received: from [10.47.25.226] (10.47.25.226) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 12 May 2022 16:32:11 +0100 Message-ID: Date: Thu, 12 May 2022 16:32:09 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH 01/20] perf vendors events arm64: Arm Cortex-A5 To: Nick Forrington , , , CC: Will Deacon , Mathieu Poirier , Leo Yan , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , "Namhyung Kim" , Andi Kleen , Kajol Jain , James Clark , Andrew Kilroy References: <20220510104758.64677-1-nick.forrington@arm.com> <20220510104758.64677-2-nick.forrington@arm.com> From: John Garry In-Reply-To: <20220510104758.64677-2-nick.forrington@arm.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.25.226] X-ClientProxiedBy: lhreml748-chm.china.huawei.com (10.201.108.198) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 10/05/2022 11:47, Nick Forrington wrote: > --- a/tools/perf/pmu-events/arch/arm64/common-and-microarch.json > +++ b/tools/perf/pmu-events/arch/arm64/common-and-microarch.json > @@ -35,6 +35,18 @@ > "EventName": "L1D_TLB_REFILL", > "BriefDescription": "Attributable Level 1 data TLB refill" > }, This is a comment on the general situation of pmu-events support for arm64: > + { > + "PublicDescription": "Instruction architecturally executed, condition code check pass, load", > + "EventCode": "0x06", > + "EventName": "LD_RETIRED", > + "BriefDescription": "Instruction architecturally executed, condition code check pass, load" > + }, > + { > +[ > + { > + "ArchStdEvent": "L1I_CACHE_REFILL" > + }, The JSONs for some cores list these common arch events and some don't. The effect (if we do) is that the perf tool creates the alias for the event and we get all the event info in "perf list", which is useful. It would be good to have consistency here, but so many arm implementations exist and it's tricky to have all cores supported in pmu-events. So I had a patch series which makes perf read the armv8 pmu sysfs event file to learn all the events which the core supports and create the aliases from that. So, in this, we don't require the JSONs to list these events explicitly. Maybe I'll revisit it soon. Thanks, John