From patchwork Tue Jan 19 02:56:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joakim Zhang X-Patchwork-Id: 12028539 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=-11.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, 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 E7BADC433E0 for ; Tue, 19 Jan 2021 03:00:05 +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 A32A22067B for ; Tue, 19 Jan 2021 03:00:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A32A22067B 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: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:In-Reply-To:References:List-Owner; bh=VVaL4Y6FG2x3xLl1fzRlcmmZmaN4VCD0v8/eNKUomIM=; b=sTALgWke93kKFaTIkYIeRq6eji tBw81EVfQqoEYk8kjN34YCXqmlLOLcmSyMFoD/qBrhQCD9rT/X6jObRCMJa7X/F3FalniFE9PJduX 7gxV62I6ec/bzzLok/AhaQ4CpUg/YPf2PD8SAV3Xpz3w5eGvGMphOYSEd+wkeouPyoBN35I8PXDRF eq+VOvwzJwkFfoPsS+l7TEz/fFuLaU/4ItlFdIqU2l4N3Scrqn/3yidzRZTL1BF9GPbPvuPBqJVvJ V0a4VgUAy1gB1eEO6H3Ruy5Z1jcRxtBI6vpNbmEmhhV9VPu5n52ZrZX+B20zjE3ldd8JqRSOy9oBW styy+5Yw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1hDi-0006At-CN; Tue, 19 Jan 2021 02:58:14 +0000 Received: from mail-eopbgr20054.outbound.protection.outlook.com ([40.107.2.54] helo=EUR02-VE1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1hDf-00069F-K3 for linux-arm-kernel@lists.infradead.org; Tue, 19 Jan 2021 02:58:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OPZUxjwGVO9iIutqRkKE+Q4RENNAGLZeggzMKBChzZKMoXsGHdZ8e2c0dpKtCsBm3A83iI5BnlkUokLu/1+JqjXxDP9YmDgR3IvuLqxcN65E53fWza5IPHjEGE2wYF9mUiom29F2THkRnxekSXBygi826c5QlKsh6zUcWcNnGBxW9VSd95t0D6CHzze6+YTjhKaPLdy9LFvDY8UnN46ROhHgegG/RsCt4sHErdE4WI2zXtiqX4l184QsZZRgTV00cdgvAhTYgdYQx2eZ9PoHP3/uezbXQT7hTpzHQBfIPXtQpONa7pvHRzqazt2uqE1q/Ib6tTwcC2Zq8PlzhcZ5Rw== 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=BgnIucgQ+gf+7t185aPSPK/ha93JKPb1gI9kPZ4Wnb8=; b=cmgvp7tFJUsJUJ4+pEtNiRSdxqbPCxNXcnAdUXIGsF24F/wtn2aGtS4SE8gfmwKp5s8iyWkNwMqu69zd8qCHoG1dAZX2z6UNRjG0lfKpV49jKrgBGxNaHiFHfooxBndcNVJNv059rqhfTPfNLCAhg3i/BmahSPEgQHNevzMKYpNfpcWfhR4fHEl1Tei1FQ+qU+FfVw6juTlvdf5cLnTrSnm9QTSK9kS3tNLJRwjd15Rf3oYpqwtI9HrDY69I40Sa1lz+x4/nahomVuozqlx44CSIYVSex2p/9za6Zv+VeVaPvieQzFxbMo7n423x3R4LLAQzo/+WLJg6cgOlCekv4Q== 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=BgnIucgQ+gf+7t185aPSPK/ha93JKPb1gI9kPZ4Wnb8=; b=myp7IxSXBM8KW2j4D4ac2GyV9eyFkWSlCwWx+RvgV+L5DDQbeP4d58Z/0lRQV0ZJhquJajbB+w260Yn4COf33aEwfsKNUs/6EFYSdCLAjspPgL2Y/brGEnkEXn+2IvE3t2LJCJEEwAxGvRxfiO2lUIU2tOCMg0vkJ3P+p69zXIM= 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 DB6PR0402MB2903.eurprd04.prod.outlook.com (2603:10a6:4:9b::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.14; Tue, 19 Jan 2021 02:58:05 +0000 Received: from DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::b83c:2edc:17e8:2666]) by DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::b83c:2edc:17e8:2666%4]) with mapi id 15.20.3763.014; Tue, 19 Jan 2021 02:58:05 +0000 From: Joakim Zhang To: john.garry@huawei.com, acme@kernel.org, jolsa@redhat.com Subject: [PATCH V1 0/4] tools: perf: Add JSON metrics for i.MX8M platforms Date: Tue, 19 Jan 2021 10:56:43 +0800 Message-Id: <20210119025647.12569-1-qiangqing.zhang@nxp.com> X-Mailer: git-send-email 2.17.1 X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SG2PR06CA0231.apcprd06.prod.outlook.com (2603:1096:4:ac::15) 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 SG2PR06CA0231.apcprd06.prod.outlook.com (2603:1096:4:ac::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.9 via Frontend Transport; Tue, 19 Jan 2021 02:58:02 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 897f6e21-6039-4ce1-c75a-08d8bc260b05 X-MS-TrafficTypeDiagnostic: DB6PR0402MB2903: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YxfE3GsvFO453N8W+iIuJZNL1hN2p7jxznRF6smYWCIcXrvW4SKSsUbgIiO9gGGQcSRE5hMRMtre/kua8cfrEME+MezYrqS3Z50v1kMNBydHPJt4IwO7XF9ZOwJnwXX5oSDWruUer6XxH/p+W5iOF/FitnGkuKCVw0fNE2NMRAwBHsxHH4F9zAKEjoJ/A7eMg+G+8HiBvypxz3L3pDY2nhktVvUVdHtMYRLQh+JacBYban1jRBEXgUOcBonYo6Z4SpWUMeq6QhfQr9cWTmP6CgE8BBgdR/8QqfjyV2MdEJfzQ2LMVgMeWWPQH+kUgya8z3/ua4CkZJDldG2jHWQcBsd6mTftM5eWuEVerLtFTbCeKm0Po1gneiqRDZvnI+OXAsWmdgSqkSornE3NrFd9jtjYd5qMDSudEF3ecT3+/nLhj/KyWYuAQV1a6EMM/6YHMZTIYdVpcyHJWBxVnipZdg== 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)(376002)(346002)(136003)(39860400002)(366004)(396003)(36756003)(8936002)(4326008)(6512007)(316002)(8676002)(2906002)(86362001)(66556008)(69590400011)(1076003)(6506007)(6666004)(6486002)(186003)(26005)(5660300002)(478600001)(16526019)(52116002)(83380400001)(2616005)(956004)(66946007)(66476007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: ycl6Z+9X0ke8nWt0SvKd0rhCmmnyqOQckQu2BegYQHiiDmcXIPiTQiTpQ2PKvS0cer/sUdG7S4Ts8Kd0r87yXuC+vYPg+aypyOsqsZrjynUMEBN1NiVTPObWMyFrNqh4RN8ltHp07jjG1vbMXSxgaHk0fN4eSXAwCPGFIio0GBK1mOivoYIVH0ldEv87l17veCZrD0v0q1xdnzvOfBuU8qVNfhVGAXWQNGH5BnuaRRorAu/5QHXV8xaxRwPykPoBWO0UhKU9kSx3pjgmQBKRPbmIPkLm4o99eHLLI3/wgg1HUwGHt9ojZuYt+vOn8dhrytjYTrULqga+2ixGFxwoEM+l9722RToWpzhTkLIr+YdRLQO/9gMpJ8p+qZDn8Jv76b5KG0EQCSqMlfaAGdIqbMoOJV3FjXKfhVfpxCuxSH8lpeZck7BC6l1ZMSH08cO7wA/aaL6gS8iX/bMh3ifu8p4yyRHSHPjPZsQ4r6aMm7qj2n2gI8+WqKfi2dgnSFbrD1tg9QKzXM+0xvnyfaKSaIB11z7TY1Yidwg5lPz6Q01PBSXb9SpKecdQMbS5JrRzw8u+vyXN4bW+lW6j3tw532+T1w1uEzRuSdGtJCpSU9s2Oi6g+A4vBBHZSN8rgdBk3AYGQG47vDUxGPi35f+qwYJzqeJb1rJe0JabhQacOggebiOiwWc1VEVSwYrBSwUwRR8QpqXuvmILDCsIIeOc6eU3MWE/PI9/eVrdSAT2HRuBPN1aYM7SRlwTX6e7dJU5L+Te0tSBmHtlRRFVWT4bR6k/7JiwSv8uglJUCGnkuObUfbvnxQDRaF7clXQqPMpVUcbHRYFVu8H4p4qCdyqnpBokp+07nuKJUDUJLd3ocky84r0CbNOVUhfV7avvT6wA5GNdBt8/MDATmnoN49vlXgjQSFZ8Mw31qTPMkwAke9W3XyYZgWlVFzhJkYjQIX8dJALiBMxv0HsFnxHubXZFP4bpLfy6Xj92NVpZYW1ZPTpHQcss+tB3GSY5hE4Owfe8 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 897f6e21-6039-4ce1-c75a-08d8bc260b05 X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB6795.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2021 02:58:05.5310 (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: q5/DfvscDhnCn0efpqjt2YguZJBP9U95nWRO4B3422kbV9d5HnMNJmEpvXYb6mlXwuBOWK2cDl9FyTsE8eVauw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0402MB2903 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210118_215811_715888_5511CBA1 X-CRM114-Status: GOOD ( 11.19 ) 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: linux-perf-users@vger.kernel.org, mark.rutland@arm.com, will@kernel.org, linux-imx@nxp.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 i.MX8M platforms Joakim Zhang (4): perf vendor events: Add bandwidth metric for imx8mm perf vendor events: Add JSON metrics for imx8mn DDR Perf perf vendor events: Add JSON metrics for imx8mq DDR Perf perf vendor events: Add JSON metrics for imx8mp DDR Perf .../arm64/freescale/imx8mm/sys/metrics.json | 20 +- .../arch/arm64/freescale/imx8mn/sys/ddrc.json | 37 ++ .../arm64/freescale/imx8mn/sys/metrics.json | 34 ++ .../arch/arm64/freescale/imx8mp/sys/ddrc.json | 37 ++ .../arm64/freescale/imx8mp/sys/metrics.json | 474 ++++++++++++++++++ .../arch/arm64/freescale/imx8mq/sys/ddrc.json | 37 ++ .../arm64/freescale/imx8mq/sys/metrics.json | 26 + 7 files changed, 663 insertions(+), 2 deletions(-) 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 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 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