From patchwork Fri Jun 14 14:07:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 10995633 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6B63614BB for ; Fri, 14 Jun 2019 14:10:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5ABC8286CF for ; Fri, 14 Jun 2019 14:10:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4E6A7283C9; Fri, 14 Jun 2019 14:10:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CFD09286CF for ; Fri, 14 Jun 2019 14:10:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.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=FX3h1EF9HF5q7Khf4Dgj5Im2E4g6FFBJG4qYRKwigUo=; b=ZPp2mo6YsjaRCM /UIqNhMB9b5iZ+33TmwTs0MYJZWhovjQZ+1ydwjbzgAQGDjMVipLuZBdAtTsR2FCk0uEt4ygohWLO s/MZ9fBRRscDpkEVQN4FIJSLOxrChGYo/9XUXbq2XwAUNf8VseXWW4SsOPiqPXU0LlFBZw6DTtbDW 9sT2Kb6ry/IIh5SBzopfsG/zl7iNlzXvX/qmQxWqI4jxXdnBmTu0zPLKt3lM5UZ1IRzth0pmNd20C 7OGuq9KisPDxTWosvOpVWpzsOQuoPp1hoLpZOLHtty/5h6LJgytGnhmj5pMUaFQ+ey3BtNFhC6itF 6lOUdHm570FM8JnMKUDg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hbmtv-0003tu-Au; Fri, 14 Jun 2019 14:09:55 +0000 Received: from szxga06-in.huawei.com ([45.249.212.32] helo=huawei.com) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hbmte-0003i1-0l for linux-arm-kernel@lists.infradead.org; Fri, 14 Jun 2019 14:09:39 +0000 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id D91F2BC617D8266AF79E; Fri, 14 Jun 2019 22:09:29 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.439.0; Fri, 14 Jun 2019 22:09:22 +0800 From: John Garry To: , , , , , , , , , , , , Subject: [PATCH v2 0/5] Perf uncore PMU event alias support for Hisi hip08 ARM64 platform Date: Fri, 14 Jun 2019 22:07:58 +0800 Message-ID: <1560521283-73314-1-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190614_070938_333715_01D2736A X-CRM114-Status: UNSURE ( 9.23 ) X-CRM114-Notice: Please train this message. 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: zhangshaokun@hisilicon.com, John Garry , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxarm@huawei.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patchset adds support for uncore PMU event aliasing for HiSilicon hip08 ARM64 platform. We can now get proper event description for uncore events for the perf tool. For HHA, DDRC, and L3C JSONs, we don't have all the event info yet, so I will seek it out to update the JSONs later. Changes to v2: - Use strtok_r() in pmu_uncore_alias_match() - from "sccl" from uncore aliases John Garry (5): perf pmu: Fix uncore PMU alias list for ARM64 perf pmu: Support more complex PMU event aliasing perf jevents: Add support for Hisi hip08 DDRC PMU aliasing perf jevents: Add support for Hisi hip08 HHA PMU aliasing perf jevents: Add support for Hisi hip08 L3C PMU aliasing .../arm64/hisilicon/hip08/uncore-ddrc.json | 44 ++++++++++++++ .../arm64/hisilicon/hip08/uncore-hha.json | 51 +++++++++++++++++ .../arm64/hisilicon/hip08/uncore-l3c.json | 37 ++++++++++++ tools/perf/pmu-events/jevents.c | 3 + tools/perf/util/pmu.c | 57 +++++++++++++------ 5 files changed, 176 insertions(+), 16 deletions(-) create mode 100644 tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-ddrc.json create mode 100644 tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-hha.json create mode 100644 tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-l3c.json