Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3002467pxb; Mon, 25 Jan 2021 04:37:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJyFqifskNG+MtFvksrUt/g6dD722ykKvzCJQUVJcfMUvzOCbIgfAPgw/0crzAlWmgFfhJ5p X-Received: by 2002:a05:6402:b07:: with SMTP id bm7mr315408edb.104.1611578225726; Mon, 25 Jan 2021 04:37:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611578225; cv=none; d=google.com; s=arc-20160816; b=mASluQPQwad9CwegKsrS8TPj5WVk/RCFqiJBx11TUuYFK9pH923Tv3b7c+Fu3TJtAh DpVU/9hSHhKdf9MOMwxNn15mDG3Ddxwq9KvneUXOo2G6QtwuCOWXXqNzb/3ZUfc3vUXV 0iDQMsTCJbjCufs7aqcUllJCaGK7irLEgRmzIvyhyTAE9cBxa4j5oBpWQqesBiOlFeDe fJvdUW+yDONrvNRuYOkMasp1MkYevPTkIJ0O7h70wT88HhA56CefZtvZZ0Ba091irgjX HNGDssOl86RBDU5qeIFPcZb13BTBUs7nINmVKpo4bCb61wNulHCgNvKUpJsdtz6YFVN7 Me5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=1Mw0005SoWHBJBq6dvXaOTXxLyobisSYjmq5rqfhQq8=; b=FHy8Qfl5s40Ajti+MvFUzg6OrbfrXRMHQpO+kE5FpssSjNM9/03SpsWRENmeVbD1IA wipbh9VZW1zkzTommBtYNZnYf+aihqvqACi9UIaSCp2850IjvX2NeOk4R6u+2LmbfuYu /z3Gy1ktLn/xuu09IQf+UA36An2TdqQ+R3OZpmj9RRmTMX4If+JD6ItgUj3tDBJY5+BH kj2PUggBmXuAc1pDvMpYJwpVf8X8Aj/uQtMTKpLJepVw3tfTqAADbUXGoPMKU1UtZ//s 4cBWeRurM9+zvv5fQ9/Voxp8djCnPz0VLZuAVcAs7DBY5t0kr7vWOJZ3JifD/nfUfjEg kKHA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t7si7294171edy.137.2021.01.25.04.36.41; Mon, 25 Jan 2021 04:37:05 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728030AbhAYMbD (ORCPT + 99 others); Mon, 25 Jan 2021 07:31:03 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:11869 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727937AbhAYMTc (ORCPT ); Mon, 25 Jan 2021 07:19:32 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4DPSxv69Jgz7Zrn; Mon, 25 Jan 2021 19:56:19 +0800 (CST) Received: from localhost.localdomain (10.69.192.58) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.498.0; Mon, 25 Jan 2021 19:57:23 +0800 From: John Garry To: , , , , , , , , CC: , , , , John Garry Subject: [PATCH 0/4] perf vendor events arm64: Some tidy-up/refactoring Date: Mon, 25 Jan 2021 19:53:16 +0800 Message-ID: <1611575600-2440-1-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 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 There is much event duplication in the common and uarch events for A76 and Ampere eMag support, so factor out into a common JSON. Since the wording for events may differ between CPU datasheet and the architecture reference manual, the current wording is kept. This is unless there are minor differences. In addition, event names are renamed to be same as architecture reference manual, to keep commonality. Also a minor fix is included for the Ampere eMag JSON. John Garry (4): perf vendor events arm64: Fix Ampere eMag event typo perf vendor events arm64: Add common and uarch event JSON perf vendor events arm64: Reference common and uarch events for Ampere eMag perf vendor events arm64: Reference common and uarch events for A76 .../arch/arm64/ampere/emag/branch.json | 8 +- .../arch/arm64/ampere/emag/bus.json | 5 +- .../arch/arm64/ampere/emag/cache.json | 58 +--- .../arch/arm64/ampere/emag/clock.json | 4 +- .../arch/arm64/ampere/emag/exception.json | 10 +- .../arch/arm64/ampere/emag/instruction.json | 34 +-- .../arch/arm64/ampere/emag/memory.json | 11 +- .../arch/arm64/arm/cortex-a76-n1/branch.json | 12 +- .../arch/arm64/arm/cortex-a76-n1/bus.json | 19 +- .../arch/arm64/arm/cortex-a76-n1/cache.json | 118 +++------ .../arm64/arm/cortex-a76-n1/exception.json | 10 +- .../arm64/arm/cortex-a76-n1/instruction.json | 45 +--- .../arch/arm64/arm/cortex-a76-n1/memory.json | 6 +- .../arch/arm64/arm/cortex-a76-n1/other.json | 4 +- .../arm64/arm/cortex-a76-n1/pipeline.json | 12 +- .../arm64/armv8-common-and-microarch.json | 248 ++++++++++++++++++ 16 files changed, 356 insertions(+), 248 deletions(-) create mode 100644 tools/perf/pmu-events/arch/arm64/armv8-common-and-microarch.json -- 2.26.2