From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 32429C433FE for ; Fri, 21 Oct 2022 08:56:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=f+axIc8vVPq32V+5CihojDOIz43vgRizL8QQ7Il8m2k=; b=W+OfaLdEMPlijP TMYqI0nMU09meeGXxmg8u2/3ZCKsUsmCKxTLZwv9h5QEWdw2Nn5+3LTR0h96TrIqvEkYuu80eYYv1 fl//aClCGWm8WQszbl3l8okeyMhBcze/xa7LXnY8bNTtCRC1Rfx+jlX5Bo5FZ+zMN+h3rzBYM+eY3 M/EA09THNYpG77xzj7lhRnhj2kkwcTtMujZOLXV2NKDBx5sUFEDOzLTl4Rcm/Fc2oGnMVFXsuTxaY 7AkybKIW7Fv2Z/1l0ETvwcGf3yt6qTEBvp/RU3qhpfCVabM9/A1J5Q/1MoEtdDsq+5aX+vmaaBXnJ KbjwkF+tI/sH4ZGijTNQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1olnnr-006YZw-7G; Fri, 21 Oct 2022 08:54:55 +0000 Received: from szxga01-in.huawei.com ([45.249.212.187]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1olnnT-006YKr-Kw for linux-arm-kernel@lists.infradead.org; Fri, 21 Oct 2022 08:54:35 +0000 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Mtynw0SpJzmVJb; Fri, 21 Oct 2022 16:49:40 +0800 (CST) Received: from kwepemm600008.china.huawei.com (7.193.23.88) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 21 Oct 2022 16:54:17 +0800 Received: from huawei.com (10.175.100.227) by kwepemm600008.china.huawei.com (7.193.23.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 21 Oct 2022 16:54:16 +0800 From: Shang XiaoJing To: , , , , , , , , , , , , , , CC: Subject: [PATCH 3/3] perf vendor events arm64: Use event name instead of event code Date: Fri, 21 Oct 2022 16:53:26 +0800 Message-ID: <20221021085326.17139-4-shangxiaojing@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221021085326.17139-1-shangxiaojing@huawei.com> References: <20221021085326.17139-1-shangxiaojing@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.100.227] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm600008.china.huawei.com (7.193.23.88) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221021_015432_092646_C5A6E795 X-CRM114-Status: UNSURE ( 8.32 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Use the event name instead of the corresponding event code for more clear, which makes the result of perf more readable. Signed-off-by: Shang XiaoJing --- .../arch/arm64/hisilicon/hip08/metrics.json | 50 +++++++++---------- 1 file changed, 25 insertions(+), 25 deletions(-) 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 6443a061e22a..4629349005d0 100644 --- a/tools/perf/pmu-events/arch/arm64/hisilicon/hip08/metrics.json +++ b/tools/perf/pmu-events/arch/arm64/hisilicon/hip08/metrics.json @@ -28,7 +28,7 @@ "MetricName": "backend_bound" }, { - "MetricExpr": "armv8_pmuv3_0@event\\=0x201d@ / CPU_CYCLES", + "MetricExpr": "FETCH_BUBBLE_EXCEEDMIW / CPU_CYCLES", "PublicDescription": "Fetch latency bound L2 topdown metric", "BriefDescription": "Fetch latency bound L2 topdown metric", "MetricGroup": "TopDownL2", @@ -42,7 +42,7 @@ "MetricName": "fetch_bandwidth_bound" }, { - "MetricExpr": "(bad_speculation * BR_MIS_PRED) / (BR_MIS_PRED + armv8_pmuv3_0@event\\=0x2013@)", + "MetricExpr": "(bad_speculation * BR_MIS_PRED) / (BR_MIS_PRED + OOO_FLUSH)", "PublicDescription": "Branch mispredicts L2 topdown metric", "BriefDescription": "Branch mispredicts L2 topdown metric", "MetricGroup": "TopDownL2", @@ -56,14 +56,14 @@ "MetricName": "machine_clears" }, { - "MetricExpr": "(EXE_STALL_CYCLE - (MEM_STALL_ANYLOAD + armv8_pmuv3_0@event\\=0x7005@)) / CPU_CYCLES", + "MetricExpr": "(EXE_STALL_CYCLE - (MEM_STALL_ANYLOAD + MEM_STALL_ANYSTORE)) / 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", + "MetricExpr": "(MEM_STALL_ANYLOAD + MEM_STALL_ANYSTORE) / CPU_CYCLES", "PublicDescription": "Memory bound L2 topdown metric", "BriefDescription": "Memory bound L2 topdown metric", "MetricGroup": "TopDownL2", @@ -91,53 +91,53 @@ "MetricName": "bp_misp_flush" }, { - "MetricExpr": "(armv8_pmuv3_0@event\\=0x2013@ * 5) / CPU_CYCLES", + "MetricExpr": "(OOO_FLUSH * 5) / CPU_CYCLES", "PublicDescription": "OOO flush L3 topdown metric", "BriefDescription": "OOO flush L3 topdown metric", "MetricGroup": "TopDownL3", - "MetricName": "ooo_flush" + "MetricName": "ooo_flush_ratio" }, { - "MetricExpr": "(armv8_pmuv3_0@event\\=0x1001@ * 5) / CPU_CYCLES", + "MetricExpr": "(IF_BP_PRED_BR_SP * 5) / CPU_CYCLES", "PublicDescription": "Static predictor flush L3 topdown metric", "BriefDescription": "Static predictor flush L3 topdown metric", "MetricGroup": "TopDownL3", "MetricName": "sp_flush" }, { - "MetricExpr": "armv8_pmuv3_0@event\\=0x1010@ / BR_MIS_PRED", + "MetricExpr": "IF_BP_MISP_BR_IND / BR_MIS_PRED", "PublicDescription": "Indirect branch L3 topdown metric", "BriefDescription": "Indirect branch L3 topdown metric", "MetricGroup": "TopDownL3", "MetricName": "indirect_branch" }, { - "MetricExpr": "(armv8_pmuv3_0@event\\=0x1013@ + armv8_pmuv3_0@event\\=0x1016@) / BR_MIS_PRED", + "MetricExpr": "(IF_BP_MISP_BR_BLR + IF_BP_MISP_BR_BL) / BR_MIS_PRED", "PublicDescription": "Push branch L3 topdown metric", "BriefDescription": "Push branch L3 topdown metric", "MetricGroup": "TopDownL3", "MetricName": "push_branch" }, { - "MetricExpr": "armv8_pmuv3_0@event\\=0x100d@ / BR_MIS_PRED", + "MetricExpr": "IF_BP_MISP_BR_RET / BR_MIS_PRED", "PublicDescription": "Pop branch L3 topdown metric", "BriefDescription": "Pop branch L3 topdown metric", "MetricGroup": "TopDownL3", "MetricName": "pop_branch" }, { - "MetricExpr": "(BR_MIS_PRED - armv8_pmuv3_0@event\\=0x1010@ - armv8_pmuv3_0@event\\=0x1013@ - armv8_pmuv3_0@event\\=0x1016@ - armv8_pmuv3_0@event\\=0x100d@) / BR_MIS_PRED", + "MetricExpr": "(BR_MIS_PRED - IF_BP_MISP_BR_IND - IF_BP_MISP_BR_BLR - IF_BP_MISP_BR_BL - IF_BP_MISP_BR_RET) / BR_MIS_PRED", "PublicDescription": "Other branch L3 topdown metric", "BriefDescription": "Other branch L3 topdown metric", "MetricGroup": "TopDownL3", "MetricName": "other_branch" }, { - "MetricExpr": "armv8_pmuv3_0@event\\=0x2012@ / armv8_pmuv3_0@event\\=0x2013@", + "MetricExpr": "NUKE_FLUSH / OOO_FLUSH", "PublicDescription": "Nuke flush L3 topdown metric", "BriefDescription": "Nuke flush L3 topdown metric", "MetricGroup": "TopDownL3", - "MetricName": "nuke_flush" + "MetricName": "nuke_flush_ratio" }, { "MetricExpr": "1 - nuke_flush", @@ -147,53 +147,53 @@ "MetricName": "other_flush" }, { - "MetricExpr": "armv8_pmuv3_0@event\\=0x2010@ / CPU_CYCLES", + "MetricExpr": "SYNC_STALL / CPU_CYCLES", "PublicDescription": "Sync stall L3 topdown metric", "BriefDescription": "Sync stall L3 topdown metric", "MetricGroup": "TopDownL3", - "MetricName": "sync_stall" + "MetricName": "sync_stall_ratio" }, { - "MetricExpr": "armv8_pmuv3_0@event\\=0x2004@ / CPU_CYCLES", + "MetricExpr": "ROB_STALL / CPU_CYCLES", "PublicDescription": "Rob stall L3 topdown metric", "BriefDescription": "Rob stall L3 topdown metric", "MetricGroup": "TopDownL3", - "MetricName": "rob_stall" + "MetricName": "rob_stall_ratio" }, { - "MetricExpr": "(armv8_pmuv3_0@event\\=0x2006@ + armv8_pmuv3_0@event\\=0x2007@ + armv8_pmuv3_0@event\\=0x2008@) / CPU_CYCLES", + "MetricExpr": "(INT_PTAG_STALL + CC_PTAG_STALL + VFP_PTAG_STALL) / CPU_CYCLES", "PublicDescription": "Ptag stall L3 topdown metric", "BriefDescription": "Ptag stall L3 topdown metric", "MetricGroup": "TopDownL3", "MetricName": "ptag_stall" }, { - "MetricExpr": "armv8_pmuv3_0@event\\=0x201e@ / CPU_CYCLES", + "MetricExpr": "SAVEOP_QUEUE_STALL / CPU_CYCLES", "PublicDescription": "SaveOpQ stall L3 topdown metric", "BriefDescription": "SaveOpQ stall L3 topdown metric", "MetricGroup": "TopDownL3", "MetricName": "saveopq_stall" }, { - "MetricExpr": "armv8_pmuv3_0@event\\=0x2005@ / CPU_CYCLES", + "MetricExpr": "PCBUF_STALL / CPU_CYCLES", "PublicDescription": "PC buffer stall L3 topdown metric", "BriefDescription": "PC buffer stall L3 topdown metric", "MetricGroup": "TopDownL3", "MetricName": "pc_buffer_stall" }, { - "MetricExpr": "armv8_pmuv3_0@event\\=0x7002@ / CPU_CYCLES", + "MetricExpr": "EXE_STALL_DIV / CPU_CYCLES", "PublicDescription": "Divider L3 topdown metric", "BriefDescription": "Divider L3 topdown metric", "MetricGroup": "TopDownL3", "MetricName": "divider" }, { - "MetricExpr": "armv8_pmuv3_0@event\\=0x7003@ / CPU_CYCLES", + "MetricExpr": "FSU_STALL / CPU_CYCLES", "PublicDescription": "FSU stall L3 topdown metric", - "BriefDescription": "FSU stall L3 topdown metric", + "BriefDescription": "FSU stall L3 topdown metric", "MetricGroup": "TopDownL3", - "MetricName": "fsu_stall" + "MetricName": "fsu_stall_ratio" }, { "MetricExpr": "core_bound - divider - fsu_stall", @@ -224,7 +224,7 @@ "MetricName": "mem_bound" }, { - "MetricExpr": "armv8_pmuv3_0@event\\=0x7005@ / CPU_CYCLES", + "MetricExpr": "MEM_STALL_ANYSTORE / CPU_CYCLES", "PublicDescription": "Store bound L3 topdown metric", "BriefDescription": "Store bound L3 topdown metric", "MetricGroup": "TopDownL3", -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel