From patchwork Tue Dec 5 16:13:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 120689 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5889282qgn; Tue, 5 Dec 2017 07:31:48 -0800 (PST) X-Google-Smtp-Source: AGs4zMaiiMMVH+9rGAlt9z1AepqbAw2PyHu+kbx5hvYbDRTnaU4xZScq/CEwfrdDMnicN/klVb4S X-Received: by 10.99.112.78 with SMTP id a14mr17349678pgn.302.1512487908829; Tue, 05 Dec 2017 07:31:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512487908; cv=none; d=google.com; s=arc-20160816; b=hhKYwXAJAimHfUM8X4Pl+6cGeSG/kAZhy3Idp3tEO3CPm6VheNYEic9D1c7/mAIvxg qMCMyj7B7iG2VRK7QniN5GAhutOMCxpzl+PBwBfS+5j1oyqaPy7G1G2QPcT1b8OzeWkt 7NxoZTFJquG2pS0ENBa5uCyp9DCNZXz6lu6wo3OoARsiADyfZhbJzOrH113DNWNSg7Qj 1GXIRiQbBi6JOD5tMaz1fofoSjMcxIvnzcoJ+djvUfrdB8gwArqR+vTO/OLKbzYsMddc slsr94EKoL8jd3Lzg52i87GIgb5h/q7F0Rkjb5c+3nr3F9ErgVg7OCxeQjuIc+G3aArr yvBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=XUqouYBk2gIidlHYA33RUge4NfS0UiYUsdR4hp7Oah8=; b=Vq/qJbw5GA5IDX7tVYUtYQ5nZ0WUJlVvPUGU1/3qAb6H6AU+cQ5eRYO1+ml/IOg1AI 2QBTl/UA7Va4ApYCFehUDct+BLlgiB7WYESh5h21050Zg+PkLb60SZw6OA3/Hue9xXlg AtvqJia+xuaMoAr0NcjH9VLYLSxqD3g3bZAbt6Pe2locNk3UZU7MBqCcO0M30AMaxYGs ZVRNGkAXDvkygieb8U2N7ZdA/teNImiFY4+urevvimsU5e2WWJSJSyoWbyEMqqi/sG+J G8giilaJadB2GRyVn6SlTCoBd3cFXGqRoLhu/frN8+m29ClQaLVBfZLMTL8hCX3KWSCI sN7Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 6si234193pfs.283.2017.12.05.07.31.25; Tue, 05 Dec 2017 07:31:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752743AbdLEPbX (ORCPT + 28 others); Tue, 5 Dec 2017 10:31:23 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:2256 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751416AbdLEPbW (ORCPT ); Tue, 5 Dec 2017 10:31:22 -0500 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 46D607ED1C5BA; Tue, 5 Dec 2017 23:31:08 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.361.1; Tue, 5 Dec 2017 23:31:03 +0800 From: John Garry To: , , , , , , , , , , , CC: , , , , , John Garry Subject: [RFC PATCH 0/5] perf events patches for improved ARM64 support Date: Wed, 6 Dec 2017 00:13:14 +0800 Message-ID: <1512490399-94107-1-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset adds support for some perf events features, targeted at ARM64, implemented in a generic fashion. The two main features are as follows: - support for arch/vendor/platform pmu events directory structure - support for parsing architecture recommended pmu events On the back of these, the Cavium ThunderX2 and HiSilicon hip08 JSONs are relocated/added. TODO: - Documentation needs to be updated for recommended events format in the JSON - tidy up patches a bit John Garry (5): perf jevents: add support for pmu events vendor subdirectory perf jevents: add support for arch recommended events perf vendor events arm64: add armv8 recommended events JSON perf vendor events arm64: relocate thunderx2 JSON perf vendor events arm64: add HiSilicon hip08 JSON .../pmu-events/arch/arm64/armv8-recommended.json | 452 +++++++++++++++++++++ .../arch/arm64/cavium/thunderx2-imp-def.json | 62 --- .../arch/arm64/cavium/thunderx2/core-imp-def.json | 32 ++ .../arch/arm64/hisilicon/hip08/core-imp-def.json | 122 ++++++ tools/perf/pmu-events/arch/arm64/mapfile.csv | 3 +- tools/perf/pmu-events/jevents.c | 272 ++++++++++++- 6 files changed, 859 insertions(+), 84 deletions(-) create mode 100644 tools/perf/pmu-events/arch/arm64/armv8-recommended.json delete mode 100644 tools/perf/pmu-events/arch/arm64/cavium/thunderx2-imp-def.json create mode 100644 tools/perf/pmu-events/arch/arm64/cavium/thunderx2/core-imp-def.json create mode 100644 tools/perf/pmu-events/arch/arm64/hisilicon/hip08/core-imp-def.json -- 1.9.1