Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp264435pxf; Thu, 25 Mar 2021 03:40:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzYUDPlVErisg8iOzmKfdtzAhGu3ZS9YK9idteyMYaPZp0Ukhhw1Z5vq1oCYy52d4vEAxk X-Received: by 2002:aa7:cf16:: with SMTP id a22mr8112525edy.288.1616668813666; Thu, 25 Mar 2021 03:40:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616668813; cv=none; d=google.com; s=arc-20160816; b=oeNqHMMD6uPd4NGpMxo3zg9p6pyvb7unRDLEWIN0QP6c3/A7AeZZmllSerakrAxO08 DTNzFqDOA985mFehURhv/vlV+qwW0c/5DDIkseZDvpHppJYR5gPYtR+Jlwg7w+BuJ/aX RIJEb+8A9EgsdEOGiWT8+fW33caIan/ViAB9hDWaMh9IoSuUgAdj1EN7b62B1oZDcSls FYecsREt6crfNW0MD1xDwRtXAJJNIUXFfj0/Lo61KFts/aTajFs29/zPEXJTI18kuhnf hK+36hOmQEgoCqxhlcLFz03VE2Bf5CgvKsysJW54/Avw52kQec0iE9j7z/AfnoVDbDXI ZWaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=82M3K+NVnsu9v1GyehrGy/BNaDN0mWQRBNbCA9ZevWg=; b=u0zsQor+rn56SxKoqf6LqLZsKtzOVDWaoSuIYTHJx8iyLbfSGOK6BgWk7PPRgK2z+s Fwdb/TASmW2GRkBwO8ISXYtSkqGRuPnSnR2zsGKg3PbRCzLl/4zlYTyQSODXNa9j+TTi aYSSaJ+ATGV603gXn3px0bdJZcKNrhI71u4MLzFjV6R3uGw0C4+puctHC/rxdYyBfltS yH+/eVmhSOSlICQafTWWanJgABMx99sMAzmUXviYbvKzi18ShcowiFLV1gK7bz9SNdGG YBrL57YpeWvXr9WpDu8mKM/LYR3Qk6STB26QBjXUSzF+QrzNi1KYrRLUOZbPtgrk4ykQ tpgg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m19si3899063eds.451.2021.03.25.03.39.49; Thu, 25 Mar 2021 03:40:13 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230222AbhCYKiv (ORCPT + 99 others); Thu, 25 Mar 2021 06:38:51 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:14897 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230076AbhCYKiS (ORCPT ); Thu, 25 Mar 2021 06:38:18 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4F5hNj4dxFzkfSr; Thu, 25 Mar 2021 18:36:37 +0800 (CST) Received: from localhost.localdomain (10.69.192.58) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.498.0; Thu, 25 Mar 2021 18:38:08 +0800 From: John Garry To: , , , , , , , , , , CC: , , , , , , , John Garry Subject: [PATCH v2 5/6] perf vendor events arm64: Add Hisi hip08 L2 metrics Date: Thu, 25 Mar 2021 18:33:17 +0800 Message-ID: <1616668398-144648-6-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1616668398-144648-1-git-send-email-john.garry@huawei.com> References: <1616668398-144648-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.58] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add L2 metrics. Signed-off-by: John Garry --- .../arch/arm64/hisilicon/hip08/metrics.json | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/tools/perf/pmu-events/arch/arm64/hisilicon/hip08/metrics.json b/tools/perf/pmu-events/arch/arm64/hisilicon/hip08/metrics.json index dc5ff3051639..dda898d23c2d 100644 --- a/tools/perf/pmu-events/arch/arm64/hisilicon/hip08/metrics.json +++ b/tools/perf/pmu-events/arch/arm64/hisilicon/hip08/metrics.json @@ -27,4 +27,46 @@ "MetricGroup": "TopDownL1", "MetricName": "backend_bound" }, + { + "MetricExpr": "armv8_pmuv3_0@event\\=0x201d@ / CPU_CYCLES", + "PublicDescription": "Fetch latency bound L2 topdown metric", + "BriefDescription": "Fetch latency bound L2 topdown metric", + "MetricGroup": "TopDownL2", + "MetricName": "fetch_latency_bound" + }, + { + "MetricExpr": "frontend_bound - fetch_latency_bound", + "PublicDescription": "Fetch bandwidth bound L2 topdown metric", + "BriefDescription": "Fetch bandwidth bound L2 topdown metric", + "MetricGroup": "TopDownL2", + "MetricName": "fetch_bandwidth_bound" + }, + { + "MetricExpr": "(bad_speculation * BR_MIS_PRED) / (BR_MIS_PRED + armv8_pmuv3_0@event\\=0x2013@)", + "PublicDescription": "Branch mispredicts L2 topdown metric", + "BriefDescription": "Branch mispredicts L2 topdown metric", + "MetricGroup": "TopDownL2", + "MetricName": "branch_mispredicts" + }, + { + "MetricExpr": "bad_speculation - branch_mispredicts", + "PublicDescription": "Machine clears L2 topdown metric", + "BriefDescription": "Machine clears L2 topdown metric", + "MetricGroup": "TopDownL2", + "MetricName": "machine_clears" + }, + { + "MetricExpr": "(EXE_STALL_CYCLE - (MEM_STALL_ANYLOAD + armv8_pmuv3_0@event\\=0x7005@)) / CPU_CYCLES", + "PublicDescription": "Core bound L2 topdown metric", + "BriefDescription": "Core bound L2 topdown metric", + "MetricGroup": "TopDownL2", + "MetricName": "core_bound" + }, + { + "MetricExpr": "(MEM_STALL_ANYLOAD + armv8_pmuv3_0@event\\=0x7005@) / CPU_CYCLES", + "PublicDescription": "Memory bound L2 topdown metric", + "BriefDescription": "Memory bound L2 topdown metric", + "MetricGroup": "TopDownL2", + "MetricName": "memory_bound" + }, ] -- 2.26.2