From patchwork Thu Apr 6 16:18:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 96995 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp807056qgd; Thu, 6 Apr 2017 09:18:13 -0700 (PDT) X-Received: by 10.99.56.66 with SMTP id h2mr28601397pgn.40.1491495493849; Thu, 06 Apr 2017 09:18:13 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d24si1095941plj.243.2017.04.06.09.18.13; Thu, 06 Apr 2017 09:18:13 -0700 (PDT) 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 S933772AbdDFQSK (ORCPT + 14 others); Thu, 6 Apr 2017 12:18:10 -0400 Received: from foss.arm.com ([217.140.101.70]:45410 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752345AbdDFQSC (ORCPT ); Thu, 6 Apr 2017 12:18:02 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2DA8928; Thu, 6 Apr 2017 09:18:02 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id EA5B03F3E1; Thu, 6 Apr 2017 09:18:01 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id BFAB31AE33BA; Thu, 6 Apr 2017 17:18:20 +0100 (BST) From: Will Deacon To: linux-arm-kernel@lists.infradead.org Cc: marc.zyngier@arm.com, mark.rutland@arm.com, kim.phillips@arm.com, alex.bennee@linaro.org, christoffer.dall@linaro.org, tglx@linutronix.de, peterz@infradead.org, alexander.shishkin@linux.intel.com, robh@kernel.org, suzuki.poulose@arm.com, pawel.moll@arm.com, mathieu.poirier@linaro.org, mingo@redhat.com, linux-kernel@vger.kernel.org, Will Deacon Subject: [PATCH v2 0/6] Add support for the ARMv8.2 Statistical Profiling Extension Date: Thu, 6 Apr 2017 17:18:10 +0100 Message-Id: <1491495496-1524-1-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, This is the fourth posting of the patches previously posted here: rfcv1: http://lists.infradead.org/pipermail/linux-arm-kernel/2017-January/476450.html rfcv2: http://lists.infradead.org/pipermail/linux-arm-kernel/2017-January/479387.html v1: http://lists.infradead.org/pipermail/linux-arm-kernel/2017-January/483684.html Changes since v1 include: * Rebased onto new perf_aux_output_flag API (in -next via -tip and included here) * Fixed allocation of COLLISION flag * Fixed buffer draining in IRQ handler * Rebased onto v4.11-rc5 The architecture documentation is now available here: https://developer.arm.com/products/architecture/a-profile/docs/ddi0586/latest/arm-architecture-reference-manual-supplement-statistical-profiling-extension-for-armv8-a and there's a high-level overview on this official ARM blog: https://community.arm.com/processors/b/blog/posts/statistical-profiling-extension-for-armv8-a All comments welcome, Will --->8 Will Deacon (6): perf/core: Keep AUX flags in the output handle genirq: export irq_get_percpu_devid_partition to modules perf/core: Export AUX buffer helpers to modules perf/core: Add PERF_AUX_FLAG_COLLISION to report colliding samples drivers/perf: Add support for ARMv8.2 Statistical Profiling Extension dt-bindings: Document devicetree binding for ARM SPE Documentation/devicetree/bindings/arm/spe-pmu.txt | 20 + arch/x86/events/intel/bts.c | 16 +- arch/x86/events/intel/pt.c | 17 +- arch/x86/events/intel/pt.h | 1 - drivers/hwtracing/coresight/coresight-etb10.c | 9 +- drivers/hwtracing/coresight/coresight-etm-perf.c | 9 +- drivers/hwtracing/coresight/coresight-priv.h | 2 - drivers/hwtracing/coresight/coresight-tmc-etf.c | 7 +- drivers/perf/Kconfig | 8 + drivers/perf/Makefile | 1 + drivers/perf/arm_spe_pmu.c | 1253 +++++++++++++++++++++ include/linux/coresight.h | 2 +- include/linux/perf_event.h | 8 +- include/uapi/linux/perf_event.h | 1 + kernel/events/ring_buffer.c | 38 +- kernel/irq/irqdesc.c | 1 + 16 files changed, 1344 insertions(+), 49 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/spe-pmu.txt create mode 100644 drivers/perf/arm_spe_pmu.c -- 2.1.4