Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp146502pxb; Thu, 21 Jan 2021 03:42:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXf8QffGHT+GKNratx0w/LSHYFdbXyL9FZMeYb2mJegnLm0atMQx+eCfV2dixWdqo7ZTVr X-Received: by 2002:a50:a684:: with SMTP id e4mr10638577edc.148.1611229352435; Thu, 21 Jan 2021 03:42:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611229352; cv=none; d=google.com; s=arc-20160816; b=PBc6xiDMTNcx5/dGGZlomT78umqz4HiFORsR2Pd49JFTXYc7/UH47lntP+iQZiLbhi T+wGOFYhZ5FsH5fxwLitd8gY1YTtvvovRhHS1PGiG4icXyY2lAKN3FlQm+jbfEyIm/am Whw79YK7SF/kYWpbiUR7IPLRlzUR5IYBQ/7bOlYvSynDzo2fOJEwRXgM1mzuxBVM7L9Z LKoigHWLesK9yXMe845HNSvbtI575RIfoKfwQnVmtDiWZWB+dXbuBlkzshaGcoPWiAS4 wivBrhTvh7LHRfGLeoK60e03GqdrKrsbqdBSkiI6k9YGb7kPh4+EHMbn/psyKjb66HsX BrmQ== 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 :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=K01iuJNkezcyPa7NuKQjZlXln9jMjXGvSuwaLC9KvKk=; b=sueRPmjg0vUUUzSG4PKNuZY4Rhs4t1g/UuidvhXtWK0isWb4ETradjEgkkJze0hJ5d UmR53QoeecGuK42FON36TeQboMNSE/MxjkD5Awcb4tTwRQvdd3Aq77juK1aLLq/htv0R qQIEDbqabT4SPu0QoPIRcqmrmQpamAqI8hUKRuoDAG3Eth2hfP+cKsb1YymFSYvmwpN+ 0B6GRZx9RlnAowP7ucDVHi9zETtJyVnvI4vtuSiZGQUKV0AD2UOUvPMPBc3xD+9uwg63 a7ts7YPwhFGYQFbl31FEBA1VIKtlYMW8tWk0Qct7niEA8yVQj7CBIwyt4Caf8I8Vk7RE 2wwQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a8si1658476ejv.701.2021.01.21.03.42.08; Thu, 21 Jan 2021 03:42:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729696AbhAULlK (ORCPT + 99 others); Thu, 21 Jan 2021 06:41:10 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:11423 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730405AbhAULk3 (ORCPT ); Thu, 21 Jan 2021 06:40:29 -0500 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4DM0lJ6bCLzj9Kr; Thu, 21 Jan 2021 19:38:36 +0800 (CST) Received: from [10.67.77.175] (10.67.77.175) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.498.0; Thu, 21 Jan 2021 19:39:21 +0800 Subject: Re: [PATCH v2 1/3] perf vendor events: Add cache refill and DCZVA events To: Shunsuke Nakamura , CC: , , , , References: <20210121105425.2695843-1-nakamura.shun@jp.fujitsu.com> <20210121105425.2695843-2-nakamura.shun@jp.fujitsu.com> From: Shaokun Zhang Message-ID: Date: Thu, 21 Jan 2021 19:39:20 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: <20210121105425.2695843-2-nakamura.shun@jp.fujitsu.com> Content-Type: text/plain; charset="gbk" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.77.175] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, ?? 2021/1/21 18:54, Shunsuke Nakamura ะด??: > Adds L1 data cache refill prefetch, L2 data cache refill prefetch, > and DCZVA instruction events. A silly question, Does Arm define these events? I checked Arm ARM document(DDI0487Fc) that these event numbers are reserved. Or maybe I miss something. Thanks, Shaokun > > Signed-off-by: Shunsuke Nakamura > --- > .../perf/pmu-events/arch/arm64/armv8-recommended.json | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/tools/perf/pmu-events/arch/arm64/armv8-recommended.json b/tools/perf/pmu-events/arch/arm64/armv8-recommended.json > index d0a1986..ee0e67d 100644 > --- a/tools/perf/pmu-events/arch/arm64/armv8-recommended.json > +++ b/tools/perf/pmu-events/arch/arm64/armv8-recommended.json > @@ -54,6 +54,12 @@ > "BriefDescription": "L1D cache invalidate" > }, > { > + "PublicDescription": "This event counts L1D_CACHE_REFILL caused by software or hardware prefetch.", > + "EventCode": "0x49", > + "EventName": "L1D_CACHE_REFILL_PRF", > + "BriefDescription": "This event counts L1D_CACHE_REFILL caused by software or hardware prefetch." > + }, > + { > "PublicDescription": "Attributable Level 1 data TLB refill, read", > "EventCode": "0x4C", > "EventName": "L1D_TLB_REFILL_RD", > @@ -120,6 +126,12 @@ > "BriefDescription": "L2D cache invalidate" > }, > { > + "PublicDescription": "This event counts L2D_CACHE_REFILL caused by software or hardware prefetch.", > + "EventCode": "0x59", > + "EventName": "L2D_CACHE_REFILL_PRF", > + "BriefDescription": "This event counts L2D_CACHE_REFILL caused by software or hardware prefetch." > + }, > + { > "PublicDescription": "Attributable Level 2 data or unified TLB refill, read", > "EventCode": "0x5c", > "EventName": "L2D_TLB_REFILL_RD", > @@ -408,6 +420,12 @@ > "BriefDescription": "Release consistency operation speculatively executed, Store-Release" > }, > { > + "PublicDescription": "This event counts architecturally executed zero blocking operations due to the 'DC ZVA' instruction.", > + "EventCode": "0x9f", > + "EventName": "DCZVA_SPEC", > + "BriefDescription": "This event counts architecturally executed zero blocking operations due to the 'DC ZVA' instruction." > + }, > + { > "PublicDescription": "Attributable Level 3 data or unified cache access, read", > "EventCode": "0xa0", > "EventName": "L3D_CACHE_RD", >