From patchwork Wed Jan 27 10:57:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joakim Zhang X-Patchwork-Id: 12049691 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2B46AC433DB for ; Wed, 27 Jan 2021 11:00:52 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D3A052074B for ; Wed, 27 Jan 2021 11:00:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D3A052074B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=lELM9nrMOV4bL6vh/OQkfln+1ETc/i0GXg3U0ab2ikI=; b=UhpfB8dfH1AJRMaOjuH4oOW0C iACzUBt7aq9evNJLHj0JQInPRiX9JndvR/GUsMd8utiGCNOalzfjldUyZeXY0ol64GyYXAhTh0LX7 G/Q2UMEmIvZ/JTI8CBwfvo6Omvb5+kkv2USMDyObkF/5EbGCQ6lm80Mnh6wLz+1L/KLUEUnqjdg/s pdEb2OBTuOqKyTELtPJefaFm+Ojns1OlAxmI51lW4euhx93hmDYvqWNaAx/eCRfbY5VvfvUF/oF6m 75nZw21ItpprqBSekk06i7ck5CW9VzQ1b29uLUzruEkqO37d7jCwMkchvQDcxNcHzAx92YsmassWs 9PNZpMNxw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l4iX6-0002tv-Lh; Wed, 27 Jan 2021 10:58:44 +0000 Received: from mail-eopbgr130058.outbound.protection.outlook.com ([40.107.13.58] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l4iX1-0002t1-AS for linux-arm-kernel@lists.infradead.org; Wed, 27 Jan 2021 10:58:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=liXQ4PYHHwo3XE1dSJQEoz3EJCrKPTVCw6mNbD1yF0dxk2Dnn04gZOc63HXd1OdS9WmA2hQex4JMqpRoL+6+x+NCypQUxpRy/RycY3gR3rujHrTR35lGaSnMvPHCNkKXsVR4dpz2chbzrxh9x7leakA+HCe404yESpjhBrZuqKOU+g7VcTX7iV/aY9im5hpnWqpYEDqQCBUIdyHxyp3U2+ietd2ET5DSx1uZKbjWZdtQSiTD9lNbrXlMwRSCbPkoJCbF+FzZmHKMJc3Dhafs3oSEbZyEP8XMV4P3NlP6vLEafRiXmxFMfHpPMMSGBLdo23UPB477JuBE5ELJa01iKQ== 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-SenderADCheck; bh=VT9m9cF0Kc0jm3bqJhb/OVvJufFPLtY58gbuDBTQaGA=; b=TFyw8GqAhSp/Hu/gmdAZB91S/otwf9ts4jeWSDP28qdRAHJ36VVF2Pxx1L9whkKbb1H3gaOMIzNIE6qkMHksU3yr8aBBCo2qkR7l8x/f2wsuZ8ftPiL+Z005ESEN5eoZUWH/v3JVn+7RfWDZSz1CtytoJ32OnvHJG6OSkpQQG+Vd8C7nFeEBY4NeBLWRxQdXZi0ZCAGpeLxFlSXOTIWfLM1oLuyWt7NicqJpAUUAsTVzmjqggIJX78U0JP9DLjX3fNLCwAlC90BhYbgjPDow11XZ3lp11Ju2zLfl71aw4nRVf2Z3+ojGxKHdk61reGRluX5F3PtcgcvI2mfbLJPSZA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VT9m9cF0Kc0jm3bqJhb/OVvJufFPLtY58gbuDBTQaGA=; b=csiFR19rNpnzEbS5CAAMxL+hMEZVxQyERMfg9ZB0TJOjRvPf3U+e1nKKoPvZWL19Ux3rKaLWbw+vOMyClx1CC0myuPoyk7UiXshGUqG3YWIpu1DeU7hPHkB8A7E4vE+tr/kM41DuERRx8ezPiQKNDQFOEmVpaoEYg8DhejM4WfA= Authentication-Results: huawei.com; dkim=none (message not signed) header.d=none;huawei.com; dmarc=none action=none header.from=nxp.com; Received: from DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) by DB7PR04MB4108.eurprd04.prod.outlook.com (2603:10a6:5:21::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.11; Wed, 27 Jan 2021 10:58:35 +0000 Received: from DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::9d2b:182e:ba3b:5920]) by DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::9d2b:182e:ba3b:5920%3]) with mapi id 15.20.3805.017; Wed, 27 Jan 2021 10:58:35 +0000 From: Joakim Zhang To: john.garry@huawei.com, will@kernel.org, mathieu.poirier@linaro.org, leo.yan@linaro.org, peterz@infradead.org, mingo@redhat.com, acme@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de Subject: [PATCH V3 1/4] perf vendor events: Fix indentation of brackets in imx8mm metrics Date: Wed, 27 Jan 2021 18:57:31 +0800 Message-Id: <20210127105734.12198-2-qiangqing.zhang@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210127105734.12198-1-qiangqing.zhang@nxp.com> References: <20210127105734.12198-1-qiangqing.zhang@nxp.com> X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SGBP274CA0020.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::32) To DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.71) by SGBP274CA0020.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.16 via Frontend Transport; Wed, 27 Jan 2021 10:58:29 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 9e236592-39b3-4f30-e8c8-08d8c2b27dfb X-MS-TrafficTypeDiagnostic: DB7PR04MB4108: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:923; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uxe6ir+fRkyvt+ZHBtASxPMpoDEzy4b7M8zHH6fE4Gi+PItnZ5svrHezIjYkZF0DIsYg5Nvn5QoOSlPJQmAlOUyJ5thzzNG4+3Y6PXYnqVtLScqWfE/9yWza9X1qKVVMPtwscb4OJejwp1w1nb3PzYRj5QeN0pAuL2SWgpkG7m2XU5wohMl4vxCKm7jSZR8e5NvLYzKA0vdBVHtYvVPXv9HzQMjzSgbxlON6lGHxGgaiS5lGGWGKn9+Jz+TR7oGLa3qO4+6bCCiiuHCodjW3ugINdfvoje9HS7zsqKYcNTKUYw/P290L11KXg73tq9dfjn1b0htBIcDJpSyX0LcPUWlMmLuEsUlhAJFwAyPCEu7iX4shKZGm/D19p2EEDrNrsK4szFI8N+rjm3srLhdWVB070HLqXxdUbeWeNvBjZA8ru8MgH3fTxW9gz8IkEG9fP3vTSLH0ruCmks/1D4wyK36kX6FVnPe8GsB4JOYKtro= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB8PR04MB6795.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(396003)(136003)(376002)(346002)(366004)(52116002)(66476007)(921005)(26005)(66946007)(66556008)(6666004)(4326008)(8936002)(8676002)(1076003)(478600001)(956004)(36756003)(2616005)(16526019)(69590400011)(6506007)(86362001)(6512007)(83380400001)(4744005)(2906002)(316002)(6486002)(7416002)(186003)(5660300002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: puG3ovnGd4FlOm+QxE/qXocc0jtXek4cGzup7A5fqzq385IFHsbhx/iT6iGrX951xWPlZRTHCTEDDvh8gfZ4Vs6D5EmP9yMMALt7xtKi6BslnjTTtj0j/gBqsXBdu2ig9xcF/r4NTwxPUa5byx9MotTCFG40SgCK5SN72yYQch1qAeYFcB2bDqBToPIP5GpUjaRG5FalZHR+RJn3i7HCUhO8noAkTjJrdlpBG1T9fncxjQN6y+YSUWyPAZAZHVF9AUPmKQ2HzvQuJeS9cqtAz0qjULimID7EdyexHGht+KVprUpiMWj+/Mb0jP1uh8aOZv8ls9/kAA/IDugl8LaWrg+7EHEdq+5S1RSW62NyS/zji5DXCFx2chMjzX5pQgopj6V/ZuzPI7CH42RunhHhTm+0Z0w6YI19avPLdNB6upWpsPBgRzmEe2kjFTGLsi8pbw/h0EpzYRv4sn4a7bbl9ms4/lN3rSArE/7739+2HrxtUoaRI4SAjjeDMJLWWx9A7A7OPCV72h4Qd/SdI9YQ1Wtlap+B7ViudfRGH2yDjb+pDwrrEySlxBAq63I5cPAhhSwIXS84YcNsTISSw0lCmLHhdDMNWthWWJy7k0q+6j50HAZ/zEZk4c2JqD2Ffc+Hd5yY39eLxqFaIQrF/p4/Gevmi52RVxpkWTmHOwswHVn6ZHKvzPFkGfZ6YiGw354/EZqWno0CMSvaz7XF6s2b+YcMck3LbEp6NhRdlbE42qjgQugTAFKPrd4/8bKrkAJpaI3oYEQlIAMj4vhCpdjX7cwVjTbmBZk2L4pvwBQzqM9Y6Cfm6onJEoP4bwq/qX7eZfaE2sL3fuIYvWuVVrPisyD8iKinMEQYUu3oRTfQzZj+razcMKNHKbZA1Ysz+i9u9gpJGw261eBgnGfNlwgEaGquwohOb7vfK2PuOALKtRon9URObxP0UP5yhEs1Qk76JPSBTd8NCf43LcwqR2HjnovC7xvVYQMaIrym3R+d2pdSrUl4mepkksA52uBimHnWNeXIER4NZF3akEKxLj58Arm/KfY1k7sE/GiGPn426ywOhWdE8ZMpJEPqzyYnTLNC X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9e236592-39b3-4f30-e8c8-08d8c2b27dfb X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB6795.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jan 2021 10:58:34.9371 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: qZ9kC6OdetYrOSKqEjko77Gz6/canpU5FFBh4yt/fdGnYLSHWP9UYTCnoxR7VtBwI/eGR7cmti5TwhLW//wPZQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4108 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210127_055839_404551_F0E3DCB9 X-CRM114-Status: GOOD ( 12.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kjain@linux.ibm.com, linux-kernel@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, festevam@gmail.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Fix indentation of brackets in imx8mm metrics. Signed-off-by: Joakim Zhang --- .../pmu-events/arch/arm64/freescale/imx8mm/sys/metrics.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/pmu-events/arch/arm64/freescale/imx8mm/sys/metrics.json b/tools/perf/pmu-events/arch/arm64/freescale/imx8mm/sys/metrics.json index 8e553b67cae6..f416fa052337 100644 --- a/tools/perf/pmu-events/arch/arm64/freescale/imx8mm/sys/metrics.json +++ b/tools/perf/pmu-events/arch/arm64/freescale/imx8mm/sys/metrics.json @@ -6,7 +6,7 @@ "ScaleUnit": "9.765625e-4KB", "Unit": "imx8_ddr", "Compat": "i.MX8MM" - }, + }, { "BriefDescription": "bytes all masters write to ddr based on write-cycles event", "MetricName": "imx8mm_ddr_write.all", @@ -14,5 +14,5 @@ "ScaleUnit": "9.765625e-4KB", "Unit": "imx8_ddr", "Compat": "i.MX8MM" - } + } ] From patchwork Wed Jan 27 10:57:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joakim Zhang X-Patchwork-Id: 12049695 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7CEAC433E0 for ; Wed, 27 Jan 2021 11:00:53 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 763D32076D for ; Wed, 27 Jan 2021 11:00:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 763D32076D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=oGDrJl5SEY0qUMMrWvsrikhOfHyWHXIkCkwvEENQKtY=; b=wZSbBBOLZkiriifl81tG+yNsS INrpe+cz3s5Cx3zLHdScpRMfOF6DpI8eijklgbQlP9TmAubvX9u+lZ3mSlh8aiJ/c9mpvto+4iKf9 Eq6RJcV7xiNm/ZGmA84zKBrb6qvI/sbSdnOE7djAqJWnrmYoeRCpF8GQftNfqq9eyyiprgmvNOyCr m90jxNQQlOtCdukUoH7XMXjq3UNNf5HGkKiJzcv2+hGFlksjHX/Gra1KQ111NQZ20+LM2LPFY4H5L QnEXV4kHfay2ibTbPYsmn1DfqzQOQq8tiVjeOIkNQvRGyIj8SDAKgQ8UBmgutLW0dqIHIyjEKX9Bv 6bc7K59bA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l4iXC-0002vI-Oj; Wed, 27 Jan 2021 10:58:50 +0000 Received: from mail-eopbgr70077.outbound.protection.outlook.com ([40.107.7.77] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l4iX6-0002ts-PS for linux-arm-kernel@lists.infradead.org; Wed, 27 Jan 2021 10:58:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gNjQ7iJ+FUrGM4KpeEKLsPr8Ap6K9M9t927n/hocC2HxGyfdH7lKQXCvPGVSr+Dto1mQEIQmDU6ygRkmmGwjUNiYSiReli1YRzCO8dwhZAExJAYMrVwBL0t1TbTHxT/oy0rAmtsKqPwtjufMezc8flc7dB/5Py3eWwl3uwe6PX3FlNd4JdzlATBifcTkPbN5DT4IR60ws+y724RVz7qwpFRPxwOjk0ZKRyW/2KKvUnhEtHjSTvhcDstusT/6U7NIR1jJZ1IXdrxn2ze0xbDTaL0NfHpH591bCiacHkShGFFh4UN4RpoPKI8vic0UCqH0OjtGau+BdiL0ccrDg5+Ipw== 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-SenderADCheck; bh=g3F7j9sr75mtrlnzrgG/sVqRSxCLXmOLum8l1RirD3A=; b=O12LWk0bQW5VP/C4ngb5JgY0AjRLN0EMFQ7Vh+HgvM0NWIvhSKmKnrPLUO5r3auoDLH8PPwZAu9AXlWODfwU7b3bJW+4+320KaGdUYNEMB5Uimgm7cspJOqKWVto2+rqLKQfjHznN6dgfQS1shyKPY6lPcAJDzLVUz76CCy8liRsbE1sJEG3PQ16Lb7A1VnI1KI2uT9ZfOPdO5SxYtEuI8kCfKoMHkhyXpZ1Ns4g69ePtqkEBlSVdZMrDG47U1bhPX6pWh4IzsjTVcrGYlqVUtMpohDT8aFX4+k+Mx9onlmDW/VMh0vKDf81U+J7S8xJHM3QFJwQaUpwi4N7gKK8fQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=g3F7j9sr75mtrlnzrgG/sVqRSxCLXmOLum8l1RirD3A=; b=IHR24K/Z11NpPvblGQxs+hxHXnPAesmgcHcVE8zVYm7zsFufg4NVN/2QyN4rdRy7iHN8lCquiFRM2bydaR04Feyc0eh6X6JIIC4CH69BhF1QevJsUMGqEZAQipelqWzPoSdnDsGCK3u5LUiNhOMcBY+Tt46nRev0yJyWSRNp7w0= Authentication-Results: huawei.com; dkim=none (message not signed) header.d=none;huawei.com; dmarc=none action=none header.from=nxp.com; Received: from DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) by DB7PR04MB4108.eurprd04.prod.outlook.com (2603:10a6:5:21::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.11; Wed, 27 Jan 2021 10:58:40 +0000 Received: from DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::9d2b:182e:ba3b:5920]) by DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::9d2b:182e:ba3b:5920%3]) with mapi id 15.20.3805.017; Wed, 27 Jan 2021 10:58:40 +0000 From: Joakim Zhang To: john.garry@huawei.com, will@kernel.org, mathieu.poirier@linaro.org, leo.yan@linaro.org, peterz@infradead.org, mingo@redhat.com, acme@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de Subject: [PATCH V3 2/4] perf vendor events: Add JSON metrics for imx8mn DDR Perf Date: Wed, 27 Jan 2021 18:57:32 +0800 Message-Id: <20210127105734.12198-3-qiangqing.zhang@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210127105734.12198-1-qiangqing.zhang@nxp.com> References: <20210127105734.12198-1-qiangqing.zhang@nxp.com> X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SGBP274CA0020.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::32) To DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.71) by SGBP274CA0020.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.16 via Frontend Transport; Wed, 27 Jan 2021 10:58:35 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: ff490f8c-dbdd-474e-1a67-08d8c2b2816e X-MS-TrafficTypeDiagnostic: DB7PR04MB4108: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1247; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /HvAq9abK9i4jS9eFlRMaPfq0pjj7CD9Dd2GS7Q5Mxtg1/rH4HJ9HcQnIhlZIC6c6ArEzMC0e5IHqs/1B2o1CfRYL7gjy3CMhlYgFWpATRQ2mqbo0GuUZv9hkdOkjxJ1EK0XGsX9X1T2z6OsVPQLq0RswAOI27dPjufXUEO/jmmheNgfVTxdWYmBRSKnUkWlBLLwyukFZBmnRbZssmwtDNSJj8/OVd6MuQsESQ6JLC4dzZvHGST5+mWL6tpAhzvP5+6/cfL4wF8Ui9Izx5zmnOkpfCV5ur+TkGpoKRwuAC6DZyUzLz8FofxCb417KsvkYT81le3OkjXloDhPSOQoVwyxmgOrvy1M69sXJ9LwmJozyw0UWhk2zAIxvRxKpR36hO7bANZydA7XKy5wNRlRxbQtqI8rUqvFx8GLQH7aGEmGrjWPVDvwdH0JLHzdhhmbxj1u6hpBuCVUNOhzCeT2q/AfqSTqjOtu88U0vPgpi+Y= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB8PR04MB6795.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(396003)(136003)(376002)(346002)(366004)(52116002)(66476007)(921005)(26005)(66946007)(66556008)(6666004)(4326008)(8936002)(8676002)(1076003)(478600001)(956004)(36756003)(2616005)(16526019)(69590400011)(6506007)(86362001)(6512007)(2906002)(316002)(6486002)(7416002)(186003)(5660300002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: Jyni2iCt9DEf4NxG0NIMgbBnnWEVhMN8UFvXXaHD27e+Zm4LWdUp8QrfWzjTTW05FNOqxRJGIThe7FogxUryYozWkZtSMu8F/PC9//ODapiUOqpObcdz3MfOoVlhBLTljGVpmWsZIHQMmg6fUMDzMe0txk0ngA0wUift1606uBZv9UzqE6zsU4Q7+HbC1imPkO6lv6UTfDSaYsKR31xqXnq7OiIe/4T/XgwE96xFuNjknaivmORQAehsj+p1JWlQM1AK7ZRn4QpKaoSpGrhwbNCRw8RQmJwF4d1LPT0FfKHidFMRC4E1zA1d8XIrXItgKUl25jpwRLx2r4chS15vseAt8SlS+svevWiPD1ZCcPLiLz4lm/u0D0fZUGqRMCacfdQl4hESbY4yWfRnthf9J8gikG1swLLntZUIlhldFKmC9vUp9wH7m2di5Iz1ibz2OAAMG0q+nXt4Xo5reWrSSAZc1eYjEmWCGTRFEYLoy6FmdZcXadY9G++X+HbPItfrSyUBdJss18V4Z4a76V7h7rSZZPRcXJUdIIUsz1gLVyVyzhBgiCVS0fW7sbeevoLJ/DL8jhv9wZ3y1OG9mY7g84j29/9PtbvY/JZzbGqaGRTB+pG0KQsuGJ2zItSRz9EDut8BXWksZ0rAt8MacZh7MF4SkPhwoaZiCN012sD7khJmTNcSRr5kMclyt1aSExqS9oNF9iI264XwVXOx3vaWAeezq0lNKMTczeeMVLNQfooTpCZqdir4tCz2m/KnZdBh6s/5LB+LrFBtMXP6xGPg4NydelHwVB83+aMqtoDUD6RL4ylhuTihUm+xJFKTRjfUdcHIwRdQ3z/+/hYZRKChJtGjM9tS7asJFgSp7QuaxJ5rcJ58Dj20+SfA2apRWbEdCCpELpNSQX6XLSjmOdoLhwJZ+0Y7yhb4K+z3HDbsZjSyusueQfeY1atflRw/5qluD4O3ChkCijjt0Lqw+7fcADu8Il0L55Rn5w7J0BYWMFceuPkRZt7r12g33leW3GPVH5w6aXZJIhzzPf0kCUHpueR6wi9TViHaDkVLuVOqS47le16SEhdD3rnopRe4VQQM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ff490f8c-dbdd-474e-1a67-08d8c2b2816e X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB6795.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jan 2021 10:58:40.6111 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: sIABc5K/5QAqlTeWXYuHlg0BzYmpvO//sAusW5FkQFCvhQWqO7zeBWWtOzyrkfTLm/Ho2CKK3Jjr4g18xq2S6A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4108 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210127_055844_867871_A19C23EC X-CRM114-Status: GOOD ( 15.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kjain@linux.ibm.com, linux-kernel@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, festevam@gmail.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add JSON metrics for imx8mn DDR Perf. Signed-off-by: Joakim Zhang --- .../arch/arm64/freescale/imx8mn/sys/ddrc.json | 37 +++++++++++++++++++ .../arm64/freescale/imx8mn/sys/metrics.json | 18 +++++++++ 2 files changed, 55 insertions(+) create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx8mn/sys/ddrc.json create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx8mn/sys/metrics.json diff --git a/tools/perf/pmu-events/arch/arm64/freescale/imx8mn/sys/ddrc.json b/tools/perf/pmu-events/arch/arm64/freescale/imx8mn/sys/ddrc.json new file mode 100644 index 000000000000..8352e73d6d35 --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/freescale/imx8mn/sys/ddrc.json @@ -0,0 +1,37 @@ +[ + { + "BriefDescription": "ddr cycles event", + "EventCode": "0x00", + "EventName": "imx8mn_ddr.cycles", + "Unit": "imx8_ddr", + "Compat": "i.MX8MN" + }, + { + "BriefDescription": "ddr read-cycles event", + "EventCode": "0x2a", + "EventName": "imx8mn_ddr.read_cycles", + "Unit": "imx8_ddr", + "Compat": "i.MX8MN" + }, + { + "BriefDescription": "ddr write-cycles event", + "EventCode": "0x2b", + "EventName": "imx8mn_ddr.write_cycles", + "Unit": "imx8_ddr", + "Compat": "i.MX8MN" + }, + { + "BriefDescription": "ddr read event", + "EventCode": "0x35", + "EventName": "imx8mn_ddr.read", + "Unit": "imx8_ddr", + "Compat": "i.MX8MN" + }, + { + "BriefDescription": "ddr write event", + "EventCode": "0x38", + "EventName": "imx8mn_ddr.write", + "Unit": "imx8_ddr", + "Compat": "i.MX8MN" + } +] diff --git a/tools/perf/pmu-events/arch/arm64/freescale/imx8mn/sys/metrics.json b/tools/perf/pmu-events/arch/arm64/freescale/imx8mn/sys/metrics.json new file mode 100644 index 000000000000..2bbba4d8ea5b --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/freescale/imx8mn/sys/metrics.json @@ -0,0 +1,18 @@ +[ + { + "BriefDescription": "bytes all masters read from ddr based on read-cycles event", + "MetricName": "imx8mn_ddr_read.all", + "MetricExpr": "imx8mn_ddr.read_cycles * 4 * 2", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MN" + }, + { + "BriefDescription": "bytes all masters write to ddr based on write-cycles event", + "MetricName": "imx8mn_ddr_write.all", + "MetricExpr": "imx8mn_ddr.write_cycles * 4 * 2", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MN" + } +] From patchwork Wed Jan 27 10:57:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joakim Zhang X-Patchwork-Id: 12049717 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9F6DEC433E0 for ; Wed, 27 Jan 2021 11:15:40 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3D92E20729 for ; Wed, 27 Jan 2021 11:15:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3D92E20729 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=hvRWrE1Zkcnj9973uCA5/jPksy/aTjhxKKSeKf536M8=; b=mkC8T/oZddh+FQCkSrRGxg1VF kcYxKB1hIypOkVGg2zyoAHwuWY8W3vJKWRzbj1qBGBvs8skqMfzEazW6mQvsVTb4nN1gBFXFhmv43 8gD2p58J6SjPxar3y4asWSJMDIli7zAR7mthv2MR4CU4caP7Y/8VQiOets8ME3PHc6zd1y/RFveJU dKr0Z7ppXm9m8MDR+gWfKonhayNmWe6CE2Q9jhhCEYwBPIr8i2EOfOtkaCxRN4nq5Nvpwzrb47DOS joX6Fxv/dy8/d6ccOwrDc6h89SUrGPVi5KlWxdyQroICbWR+lMTBAbJH33POe13nrnQMkN2y6RUHt 2c2Q9hqIA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l4ilo-0005oU-Sp; Wed, 27 Jan 2021 11:13:56 +0000 Received: from mail-am6eur05on2074.outbound.protection.outlook.com ([40.107.22.74] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l4ilm-0005mg-0t for linux-arm-kernel@lists.infradead.org; Wed, 27 Jan 2021 11:13:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hrhpcFQLdlS6YbT9funIA6VZdEBZOjzR5q660iVLmHJlw19ydoqHZxDgewbdyDxTY43K0kkPpwPBNTGqf37Js5vawsxSXf2qBMDIYKTM8J4WMLOrck7wMiQbE5TcK3NWUgy2RIJns/CsEZ8rqeztdzY4kZ7LFb6g+dHK2e17cuxThRD3Qw1+WPSx1O7QTouywWacidznnXHzqW37LoUAateLS2xR2APrq71/SXWZaznU27Iv+sRepGrNBZCiI8DrwewY9wBrnywN6yy2FutM8VQcGMU2Efdvl/gx8+l1Y1bRa3KBNTxN49jTMPW1/snF2EQw+xBIE1LDav9g5ocC/A== 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-SenderADCheck; bh=Xtj79xuZInN6B+XVYTfqBLh9adH5iY7mutTyImwfCsE=; b=UpizpVFbdOn4GajzIf1a0uWsJQuvq4nCrWhgWY71qkOSVG+T2aS4FpUXH+VugGd4EWVFUe9J0rWRINywjpi3N01pEFAEFEMcDDdDFE1wGONX6MaDTnsPudJyu7wGXmszHhv9z66BFQHZ+YIzEo8moBYo/KNmlHpYODck9k/GMEREoGoMHzAs9A1+OZuTUIi3cIFTNLAdnQUK+eswBpxYgPBX6obIQBZz/DXg5gK3xhZJBwDqtmrgA4FTsUGQoHtXDQTCGGDA6hy3ndDT1JhvfTHAQjACbEnhUhben3hvIBJbQ467rr71ukuPmtaP2FHRMu1bAU2NoxFTq7uVtuCUuA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Xtj79xuZInN6B+XVYTfqBLh9adH5iY7mutTyImwfCsE=; b=BX/pLvanEkg99+za0rfQHsP7OOxnSLweavM723NUBSDdf5Ysl0d6gVxKHH8x0D5Rdyt03kaAAax0OgiXi8Cb9VcdDgRXusZ5t0hdG6ARO4wyUSgHeuBuZ+i8Nj5jsuufFci+J46wPtCnTZHIrEqR2hQfisrZOMW0NtLzoBpWRKI= Authentication-Results: huawei.com; dkim=none (message not signed) header.d=none;huawei.com; dmarc=none action=none header.from=nxp.com; Received: from DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) by DB7PR04MB4108.eurprd04.prod.outlook.com (2603:10a6:5:21::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.11; Wed, 27 Jan 2021 10:58:46 +0000 Received: from DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::9d2b:182e:ba3b:5920]) by DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::9d2b:182e:ba3b:5920%3]) with mapi id 15.20.3805.017; Wed, 27 Jan 2021 10:58:46 +0000 From: Joakim Zhang To: john.garry@huawei.com, will@kernel.org, mathieu.poirier@linaro.org, leo.yan@linaro.org, peterz@infradead.org, mingo@redhat.com, acme@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de Subject: [PATCH V3 3/4] perf vendor events: Add JSON metrics for imx8mq DDR Perf Date: Wed, 27 Jan 2021 18:57:33 +0800 Message-Id: <20210127105734.12198-4-qiangqing.zhang@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210127105734.12198-1-qiangqing.zhang@nxp.com> References: <20210127105734.12198-1-qiangqing.zhang@nxp.com> X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SGBP274CA0020.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::32) To DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.71) by SGBP274CA0020.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.16 via Frontend Transport; Wed, 27 Jan 2021 10:58:40 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 6591b006-b63d-4db6-affc-08d8c2b284d3 X-MS-TrafficTypeDiagnostic: DB7PR04MB4108: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1247; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dbrE3eAJo1Fs9QThn/LbIek8Vbq1NbTeRQnZgFl8coxkm1vzTQ8UT9tRYXwiVQI6CM/ZiXKeEwYeY/XcM1A6gmc/ZcB4Q6jubkdv2tffV252TQ6TQ+YGql85xhAkRFnDl28QGRbZz4jzGnXiHIAwivFT2OCPJDAuNv5Pl+XweVD1f7sMOA0FoWsS86GcOPU8EBontAb998WQXZ5OR6TNx+DDBg24vamyjx6LP6wqDuXKkI7jckb9kGhdboM8F7eMYieHc+F3F4gq/sY0D55xtMTVrVXxXTofMgRhPlKYk98r0g3aC3W7H5wS0zLDjQAdlYI67T8NLRAMz6/ooLiBxsLdf/xdJiSgmKUKQEigAH4y2vyKpYqjE3ZbY4bXzH0VG8kDnIlZETQXQ+0fdZewQxjZfqLkXq6EV0d5O/Xy404x2TDknaQgCZ6eLWKJoTNObAzzFJF/uUUU0Hcol0LfETBscWcFPllu2w1Xqc4gfSg= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB8PR04MB6795.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(396003)(136003)(376002)(346002)(366004)(52116002)(66476007)(921005)(26005)(66946007)(66556008)(6666004)(4326008)(8936002)(8676002)(1076003)(478600001)(956004)(36756003)(2616005)(16526019)(69590400011)(6506007)(86362001)(6512007)(2906002)(316002)(6486002)(7416002)(186003)(5660300002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: nXEn/LT1rdFCWH1Y8xANVLyHwNGOVvCKJ8oSNEu1YCB2rbXos92uOk78EnfU+MeqEpkdLUNBzQosjQl7fPdi0Xdeeyx3TcWJbFDhY0FOt3Oqofojg3dPXJElZvdvwGfjesmRiQJek1cJD3y8pyGJNVUWOkUueBXFMCiOyzq8jbz2IHNO39kbl+OzeHMYWTJ3h72jKMoZPWrbHo/5kfPb79QPp2IhdM1lhFXVw8w+VYjsQ0FGfHNpoRlE99vWD5zVHlluimg1nD3NsMhuBeOJtazR4hI4qcXudaJN0zYoRLqzOB6qNP038FkabFmRg4mc5LEVQxCDjeoIhtSwn096QZOQzro7evo+kQoNX/knI2QrFI5kfl+2TXzb836msaJG52FgwC0ySfWdecLe8h0kXdo38c/M1/gU7zk2ZxXjs+wKsSXdFV6wHdoxBmoF5eLeTFjil8NVXYr79lTWNh/TJ/L0hM8H5qcvxz/0wvk0MYi688OihlnBRpd1arEjCKhy23RuUV13RBke3BbpqwVoMxp8+/dVtIpW2NPBfB86aMWjvASJQOjZVeyF+CkReoO37F2ih+nDrY0LJxE/iT+Bg9cA6jQerXZA1vYpUX6MPKgWBKLkxf06HPVXd6JBFXeO0xFrp60Bj7yvf5HaSuiOlg1xJGD9yDzTwU/EYGK/peLS0dgvCTcnLATR9jN0AIoeWeBKA4fiGS5FXs8e6fBM8ClLpMlTv6nxrMitPlWHEKkPXNE6gUilR7uhPXaoiMrtvLBREUS+uEqYZ/a+BVn6ZkZpXKdNUkPrXzZdfdtitDTn9BAwc2SoydRptUK8sP/I5chVPnidNlTUn7wwTtQ4zqlddnNexGzxrbII37I+z4yGD+vvWBhSGINcFmc4uNa1Y05lw3celW11aAcYkQoHSU2EG2fSjk+ugJlUk5mVnPThVbtuE4nkOA+gHzuiDokjNrJhhaDfj2T/LbXOs/QtXvLpw8BWbEWFH5KKNs/0GCPCzQepOoMVKp3FNMHMkGSObNayFAA6XmdsYu7C14FY+OTlibA+0jzYgrpo4mDyNDtCqb3ICg63K7/wNct2+Opd X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6591b006-b63d-4db6-affc-08d8c2b284d3 X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB6795.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jan 2021 10:58:46.2990 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: o0afBAX5NXKO8vsvvCAQ0IpXAwq35rAta4gw+HOLfpt8Yh6cWkN7Cf+5LNVtXaGOfR4qjtwfL5iQbNr8DoCKbA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4108 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210127_061354_088009_0EC5E318 X-CRM114-Status: GOOD ( 15.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kjain@linux.ibm.com, linux-kernel@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, festevam@gmail.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add JSON metrics for imx8mq DDR Perf. Signed-off-by: Joakim Zhang --- .../arch/arm64/freescale/imx8mq/sys/ddrc.json | 37 +++++++++++++++++++ .../arm64/freescale/imx8mq/sys/metrics.json | 18 +++++++++ 2 files changed, 55 insertions(+) create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx8mq/sys/ddrc.json create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx8mq/sys/metrics.json diff --git a/tools/perf/pmu-events/arch/arm64/freescale/imx8mq/sys/ddrc.json b/tools/perf/pmu-events/arch/arm64/freescale/imx8mq/sys/ddrc.json new file mode 100644 index 000000000000..c8682728ddad --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/freescale/imx8mq/sys/ddrc.json @@ -0,0 +1,37 @@ +[ + { + "BriefDescription": "ddr cycles event", + "EventCode": "0x00", + "EventName": "imx8mq_ddr.cycles", + "Unit": "imx8_ddr", + "Compat": "i.MX8MQ" + }, + { + "BriefDescription": "ddr read-cycles event", + "EventCode": "0x2a", + "EventName": "imx8mq_ddr.read_cycles", + "Unit": "imx8_ddr", + "Compat": "i.MX8MQ" + }, + { + "BriefDescription": "ddr write-cycles event", + "EventCode": "0x2b", + "EventName": "imx8mq_ddr.write_cycles", + "Unit": "imx8_ddr", + "Compat": "i.MX8MQ" + }, + { + "BriefDescription": "ddr read event", + "EventCode": "0x35", + "EventName": "imx8mq_ddr.read", + "Unit": "imx8_ddr", + "Compat": "i.MX8MQ" + }, + { + "BriefDescription": "ddr write event", + "EventCode": "0x38", + "EventName": "imx8mq_ddr.write", + "Unit": "imx8_ddr", + "Compat": "i.MX8MQ" + } +] diff --git a/tools/perf/pmu-events/arch/arm64/freescale/imx8mq/sys/metrics.json b/tools/perf/pmu-events/arch/arm64/freescale/imx8mq/sys/metrics.json new file mode 100644 index 000000000000..862c98171e0d --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/freescale/imx8mq/sys/metrics.json @@ -0,0 +1,18 @@ +[ + { + "BriefDescription": "bytes all masters read from ddr based on read-cycles event", + "MetricName": "imx8mq_ddr_read.all", + "MetricExpr": "imx8mq_ddr.read_cycles * 4 * 4", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MQ" + }, + { + "BriefDescription": "bytes all masters write to ddr based on write-cycles event", + "MetricName": "imx8mq_ddr_write.all", + "MetricExpr": "imx8mq_ddr.write_cycles * 4 * 4", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MQ" + } +] From patchwork Wed Jan 27 10:57:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joakim Zhang X-Patchwork-Id: 12049697 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D90BCC433E0 for ; Wed, 27 Jan 2021 11:00:57 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6F9562076D for ; Wed, 27 Jan 2021 11:00:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6F9562076D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=WFvVJ8p9fPEC+dlmaMO7/IxQEz2ASyUftbv6D8SiwvU=; b=xRlqAdNv95OUQ+6ofBToLojhi 18QFxbVwHatpvicJ1HK2Nl0TQqoOpwwCZFvuHliYXePrlAT+0QEe51GLC8mdlgUCMhiej2GIU2mL3 CletYvYWAvycpAze0/z0CFG0cMtsp+uWdLJFG0UA2YteHC3M3v+M1Fw8INdhB4vM5nfa6YtTMAwxk 9VaveSvb851mDABNOU1bjUqblBZKWMGxwade7WjAL5Co1CszSGJF561rzFow7spGNXR5Kgw/0TUL6 rzlbeR20SNcbIweyVv96KgOqhayfrbMgbp4oFKNSy+tZiyVr0r28lKxA8be2JRLuMH6+n53KEgEIP o6HymIakQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l4iXL-0002x4-9s; Wed, 27 Jan 2021 10:58:59 +0000 Received: from mail-eopbgr130059.outbound.protection.outlook.com ([40.107.13.59] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l4iXI-0002wR-Lh for linux-arm-kernel@lists.infradead.org; Wed, 27 Jan 2021 10:58:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k4EX1iIbWfcerqslD1lpuk9hVOidf9Koix7RcQN39TPAD3JWo8YL0XAapTnCmqPLyLeawIzCkyQIGMUdy4dGG61boGjN0BRFUBW91A2/ofV6JzdFfr65VF35ClaqGuzwEoGCa9eVMQRMMG57S49FJbDHLRIrEHlXNtrKfYulPqpNQun///3S4Yf21I1BcYcbc8d/MZUWCvgO8oRh/9muiiC7x1yEu8eX1Chc1blOGQw1o3jz20vXpw0rlwknueGavQWXKYEBJ6PXKRDG9Y7yuX71I545gynW30ClCdCgYIAxAMoTVPYkw2/WiKQbLh/oOtenWVIYNaCAOLNpelNnMQ== 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-SenderADCheck; bh=KEGTMWiLpYFYRSGXWEoWmgl4qaheWwh5CNvYEDCRCn4=; b=S4Fr/Pfmx7DzRA/1A/W79eArxnK5AhP+cT6oruJ3BPSVYNZ5RxHbRMLu/eVubZU0omgA+TxUM6aTDuGtIY0qun3Y0h6k2u2pByLOjLtBHj3qyJU2ip5nncCzGc/vivF+XMpa8thY39p3NIFzIN8gPxO343Xn73SdBMEYo0EpV/kf0XfZ6jpmq6V3PDt4VpNvoqyKLLTHEUP9IvCPQw6dX3n/lXcmBXrr5QU1TWJl3e3VwFPqJde5MHIGUOGXSHJ0akhvs0vDBw/YDxE0XHJ2NjNHFLenTZoL/YCY/nlZmtReqOOwAhWHneK5v2Z16Y/BgpoFutFH4nGZnY9FLkvzLg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KEGTMWiLpYFYRSGXWEoWmgl4qaheWwh5CNvYEDCRCn4=; b=N6Hw8A6SWDLqkjqq8k8hGYe5XmE3e/aKuJram8Jz6D60CGkEdbwiNryUxg91V6QmfbUUL39iuO30FQA8kqn6IsaNHj6PXN9GHfetZq+28nBGWYGPlWVRkBnERQRZV+s7EJ0VKG2Yei6dHDMsIEdBpcKn2NYgK6g1f4QinSacrCY= Authentication-Results: huawei.com; dkim=none (message not signed) header.d=none;huawei.com; dmarc=none action=none header.from=nxp.com; Received: from DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) by DB7PR04MB4108.eurprd04.prod.outlook.com (2603:10a6:5:21::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.11; Wed, 27 Jan 2021 10:58:52 +0000 Received: from DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::9d2b:182e:ba3b:5920]) by DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::9d2b:182e:ba3b:5920%3]) with mapi id 15.20.3805.017; Wed, 27 Jan 2021 10:58:52 +0000 From: Joakim Zhang To: john.garry@huawei.com, will@kernel.org, mathieu.poirier@linaro.org, leo.yan@linaro.org, peterz@infradead.org, mingo@redhat.com, acme@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de Subject: [PATCH V3 4/4] perf vendor events: Add JSON metrics for imx8mp DDR Perf Date: Wed, 27 Jan 2021 18:57:34 +0800 Message-Id: <20210127105734.12198-5-qiangqing.zhang@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210127105734.12198-1-qiangqing.zhang@nxp.com> References: <20210127105734.12198-1-qiangqing.zhang@nxp.com> X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SGBP274CA0020.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::32) To DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.71) by SGBP274CA0020.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.16 via Frontend Transport; Wed, 27 Jan 2021 10:58:46 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 7f7a2973-6539-4701-2b80-08d8c2b28835 X-MS-TrafficTypeDiagnostic: DB7PR04MB4108: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1443; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aqKpV5ulEmNSYI1NhSXWxfBgZNa3OUSNAFiTgYjitpdS/K8RPd9t26nKE8kdaQB9/miKmmQQlhvwGqlj3GhNsy5Clnfc07wrlG0Bqk2PdakfJ/nQamlZbA6hA2NSV/YYTN0on6wluGbqYldtFFsryUYmeP/htu50mYk1DEb+Sp4QRGL+xojobk0OLu3N8IYss/QPxwmVU+O7PcMhZc5b1qRLG2WDhtWygSBLwzelt4TsShnEY3AVil/X0cuaXNk221NmghmtNVn7XLorryiM/BIMMNTio345j4DCi7xIush0V2GO4MO+P/SKWA7/Rog4yWhqd3KPQtnpcaJPaE5qTZT7QF7YHV3icuulOquL8nP32AQBbLSW+e4eBMlRZVLGOmBAYdsQoF9KMkhNllJWtWGICqbP92DXogzqhKpOQcYPyu7qALEp9p14NvQvgNfPaqnfcWzWMZ2kanF8/+FYhsOhgKmVozCyqvXli1n3260= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB8PR04MB6795.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(396003)(136003)(376002)(346002)(366004)(52116002)(66476007)(921005)(26005)(66946007)(66556008)(6666004)(4326008)(8936002)(8676002)(1076003)(478600001)(30864003)(956004)(36756003)(2616005)(16526019)(69590400011)(6506007)(86362001)(6512007)(2906002)(316002)(6486002)(7416002)(186003)(5660300002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 3X6T2EqnBm2IdfOto1AodRkLbvuWwDDbpKEte9UPMwg4CMeRD+a5YZtpfj85bB+vMyja4p4ebdtKSVeLkKtfjUaYWrFx46H5uLIu9pS4oR4oy7ypE/9PqxXYkpOFLya2ddzlp98RkV7SenMdc7cgfXJJYX+Hhw+0NhXIbSSeoSj2W6eRAsBUDpk/JPEscH+I0qd2wwWu971NrC44+1uIuAG6FHKe+bqOVJ1BPdO00ylcaZhl3Dyx11ukah5ARQFx/0w6kvp9dcXc7H1xA1bh0kOZhKIxlME/W4v6DqXFLSIrCpEoaFu8z2Uenar1ex0oy9T3zU4/GCQ82D3ygYLtekKipv6dkumEQEdXfst16iKearxJTfP5+T1d6gSUfMZU/VCOlInKUMwE9wvbG9h1SHbq89XTJfjXC7zjTDb7NU1Q2llOKJsY8/liiwxBTodE6xzvDYeDHXANZQB9nemMJlDeNjcuUhVXZn54xDdObWdfoaAEX9U3s7auoX+YiXMyEjvQQ0q46QyumpNgMByWtRAEgqsLiA9YoasR0SSzRBWFUfdqEoSAzGEXET8WgcJwtNlS0tQ5djnxy2GNCvIy40k477NPdMXIstRw9LAHMAepDVOaoDmHFzWSxh9UneSweoUUOyoJEywrUnqOJ9ssapVYIIw0+9dn2N0EQycxtEIiWRsVWPg4yiEXtCjcv61AqxvuK4OotKNktRoDIyHhw8CqL2qZtCkHpPUHKOb9Uhb2LjaNNRnMsIV69E7+2S1nky4zgGMZ+cAIslqnAKdZzI4H1JgsVlMqtoQTNbrYYsEHZ5IeJ/8tC65HWZLOh0A8pZzYeEMC5CqT+4nZthLf4YDjz2cQaLni0bHfaLhOCR/hhz6dP/6MTgd3zioYN3vPDEPMzbwYcjfAEQwb/lPfSSRlnAvPXmAMdud3+Mo9oogybULamfYqxc+4qdPTUiUAc84T0BMY76gNa9UmKsk/0t54/JfAZPrPkz7g8p/cfFTUQwdFGKA2NJEqDPYEM9UBGQ7ScTFHkmMh9ILGvz2Fjz/Es7xdOe4cXc64PhsTwJsOKmQht+NWrODRnP9NBjzV X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7f7a2973-6539-4701-2b80-08d8c2b28835 X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB6795.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jan 2021 10:58:52.1921 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: WnOjA7bt7aOiEBzeXQ+O6e4xz+EeQMT9OSuZg3aHt/tMfJ9xXIxQy+2DOpIEEUwbvdjxO0NPhWS7tcwTLNXhCA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4108 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210127_055856_835002_69CF4878 X-CRM114-Status: GOOD ( 15.14 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kjain@linux.ibm.com, linux-kernel@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, festevam@gmail.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add JSON metrics for imx8mp DDR Perf. Signed-off-by: Joakim Zhang --- .../arch/arm64/freescale/imx8mp/sys/ddrc.json | 37 ++ .../arm64/freescale/imx8mp/sys/metrics.json | 466 ++++++++++++++++++ 2 files changed, 503 insertions(+) create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx8mp/sys/ddrc.json create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx8mp/sys/metrics.json diff --git a/tools/perf/pmu-events/arch/arm64/freescale/imx8mp/sys/ddrc.json b/tools/perf/pmu-events/arch/arm64/freescale/imx8mp/sys/ddrc.json new file mode 100644 index 000000000000..f9a89efc9b24 --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/freescale/imx8mp/sys/ddrc.json @@ -0,0 +1,37 @@ +[ + { + "BriefDescription": "ddr cycles event", + "EventCode": "0x00", + "EventName": "imx8mp_ddr.cycles", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "ddr read-cycles event", + "EventCode": "0x2a", + "EventName": "imx8mp_ddr.read_cycles", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "ddr write-cycles event", + "EventCode": "0x2b", + "EventName": "imx8mp_ddr.write_cycles", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "ddr read event", + "EventCode": "0x35", + "EventName": "imx8mp_ddr.read", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "ddr write event", + "EventCode": "0x38", + "EventName": "imx8mp_ddr.write", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + } +] diff --git a/tools/perf/pmu-events/arch/arm64/freescale/imx8mp/sys/metrics.json b/tools/perf/pmu-events/arch/arm64/freescale/imx8mp/sys/metrics.json new file mode 100644 index 000000000000..8b9544424b3f --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/freescale/imx8mp/sys/metrics.json @@ -0,0 +1,466 @@ +[ + { + "BriefDescription": "bytes of all masters read from ddr", + "MetricName": "imx8mp_ddr_read.all", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0xffff\\,axi_id\\=0x0000@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of all masters write to ddr", + "MetricName": "imx8mp_ddr_write.all", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0xffff\\,axi_id\\=0x0000@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of a53 core read from ddr", + "MetricName": "imx8mp_ddr_read.a53", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0000@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of a53 core write to ddr", + "MetricName": "imx8mp_ddr_write.a53", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0000@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of supermix(m7) core read from ddr", + "MetricName": "imx8mp_ddr_read.supermix", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x000f\\,axi_id\\=0x0020@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of supermix(m7) write to ddr", + "MetricName": "imx8mp_ddr_write.supermix", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x000f\\,axi_id\\=0x0020@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of gpu 3d read from ddr", + "MetricName": "imx8mp_ddr_read.3d", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0070@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of gpu 3d write to ddr", + "MetricName": "imx8mp_ddr_write.3d", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0070@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of gpu 2d read from ddr", + "MetricName": "imx8mp_ddr_read.2d", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0071@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of gpu 2d write to ddr", + "MetricName": "imx8mp_ddr_write.2d", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0071@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display lcdif1 read from ddr", + "MetricName": "imx8mp_ddr_read.lcdif1", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0068@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display lcdif1 write to ddr", + "MetricName": "imx8mp_ddr_write.lcdif1", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0068@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display lcdif2 read from ddr", + "MetricName": "imx8mp_ddr_read.lcdif2", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0069@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display lcdif2 write to ddr", + "MetricName": "imx8mp_ddr_write.lcdif2", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0069@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display isi1 read from ddr", + "MetricName": "imx8mp_ddr_read.isi1", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x006a@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display isi1 write to ddr", + "MetricName": "imx8mp_ddr_write.isi1", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x006a@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display isi2 read from ddr", + "MetricName": "imx8mp_ddr_read.isi2", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x006b@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display isi2 write to ddr", + "MetricName": "imx8mp_ddr_write.isi2", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x006b@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display isi3 read from ddr", + "MetricName": "imx8mp_ddr_read.isi3", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x006c@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display isi3 write to ddr", + "MetricName": "imx8mp_ddr_write.isi3", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x006c@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display isp1 read from ddr", + "MetricName": "imx8mp_ddr_read.isp1", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x006d@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display isp1 write to ddr", + "MetricName": "imx8mp_ddr_write.isp1", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x006d@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display isp2 read from ddr", + "MetricName": "imx8mp_ddr_read.isp2", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x006e@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display isp2 write to ddr", + "MetricName": "imx8mp_ddr_write.isp2", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x006e@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display dewarp read from ddr", + "MetricName": "imx8mp_ddr_read.dewarp", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x006f@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display dewarp write to ddr", + "MetricName": "imx8mp_ddr_write.dewarp", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x006f@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of vpu1 read from ddr", + "MetricName": "imx8mp_ddr_read.vpu1", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x007c@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of vpu1 write to ddr", + "MetricName": "imx8mp_ddr_write.vpu1", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x007c@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of vpu2 read from ddr", + "MetricName": "imx8mp_ddr_read.vpu2", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x007d@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of vpu2 write to ddr", + "MetricName": "imx8mp_ddr_write.vpu2", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x007d@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of vpu3 read from ddr", + "MetricName": "imx8mp_ddr_read.vpu3", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x007e@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of vpu3 write to ddr", + "MetricName": "imx8mp_ddr_write.vpu3", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x007e@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of npu read from ddr", + "MetricName": "imx8mp_ddr_read.npu", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0073@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of npu write to ddr", + "MetricName": "imx8mp_ddr_write.npu", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0073@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of hsio usb1 read from ddr", + "MetricName": "imx8mp_ddr_read.usb1", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0078@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of hsio usb1 write to ddr", + "MetricName": "imx8mp_ddr_write.usb1", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0078@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of hsio usb2 read from ddr", + "MetricName": "imx8mp_ddr_read.usb2", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0079@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of hsio usb2 write to ddr", + "MetricName": "imx8mp_ddr_write.usb2", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0079@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of hsio pci read from ddr", + "MetricName": "imx8mp_ddr_read.pci", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x007a@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of hsio pci write to ddr", + "MetricName": "imx8mp_ddr_write.pci", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x007a@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of hdmi_tx hrv_mwr read from ddr", + "MetricName": "imx8mp_ddr_read.hdmi_hrv_mwr", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0074@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of hdmi_tx hrv_mwr write to ddr", + "MetricName": "imx8mp_ddr_write.hdmi_hrv_mwr", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0074@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of hdmi_tx lcdif read from ddr", + "MetricName": "imx8mp_ddr_read.hdmi_lcdif", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0075@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of hdmi_tx lcdif write to ddr", + "MetricName": "imx8mp_ddr_write.hdmi_lcdif", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0075@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of hdmi_tx tx_hdcp read from ddr", + "MetricName": "imx8mp_ddr_read.hdmi_hdcp", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0076@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of hdmi_tx tx_hdcp write to ddr", + "MetricName": "imx8mp_ddr_write.hdmi_hdcp", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0076@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of audio dsp read from ddr", + "MetricName": "imx8mp_ddr_read.audio_dsp", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0041@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of audio dsp write to ddr", + "MetricName": "imx8mp_ddr_write.audio_dsp", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0041@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of audio sdma2_per read from ddr", + "MetricName": "imx8mp_ddr_read.audio_sdma2_per", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0062@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of audio sdma2_per write to ddr", + "MetricName": "imx8mp_ddr_write.audio_sdma2_per", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0062@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of audio sdma2_burst read from ddr", + "MetricName": "imx8mp_ddr_read.audio_sdma2_burst", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0063@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of audio sdma2_burst write to ddr", + "MetricName": "imx8mp_ddr_write.audio_sdma2_burst", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0063@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of audio sdma3_per read from ddr", + "MetricName": "imx8mp_ddr_read.audio_sdma3_per", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0064@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of audio sdma3_per write to ddr", + "MetricName": "imx8mp_ddr_write.audio_sdma3_per", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0064@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of audio sdma3_burst read from ddr", + "MetricName": "imx8mp_ddr_read.audio_sdma3_burst", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0065@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of audio sdma3_burst write to ddr", + "MetricName": "imx8mp_ddr_write.audio_sdma3_burst", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0065@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of audio sdma_pif read from ddr", + "MetricName": "imx8mp_ddr_read.audio_sdma_pif", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0066@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of audio sdma_pif write to ddr", + "MetricName": "imx8mp_ddr_write.audio_sdma_pif", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0066@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + } +]