From patchwork Mon Jun 5 15:22:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 102731 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp968973qgd; Mon, 5 Jun 2017 08:23:48 -0700 (PDT) X-Received: by 10.101.91.197 with SMTP id o5mr15184371pgr.206.1496676228026; Mon, 05 Jun 2017 08:23:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496676228; cv=none; d=google.com; s=arc-20160816; b=SQEqKbT3Z3ITLqPHnLjpOIBakJBv7iMd9xvp/O7slCmv7C1t80vnrQdzTlHzg8LShy wvK675Bs0alU5vxXUYzA7dFcpS/Jt+s/8TTGk2vkJ4bGMbNYr684rYbP4JkgXOPKiVCZ 7UGXhfmFShU7di1Q+bYoXRP53i9nr9onLXAeXMvWap36lO1ABzjoQOPXB0Hqic4otUvo weSfkaTHXaH41W+1Rw0cDeXGyvvZAiY045GKfOqXtdrlawaKko9Xz+dBJoU4i3WtY78B CAOLUgaNmMQc5fhu7cehDLSu6XYw+mwqxBH2Hym9xt5F2E5o1vyMjvCB0ULt5KqBtpUH gLdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=AKFNnisl6jpdmfIR5H9J+bFSl2GX4vEiFY9oRX6rCvw=; b=QXAXN+vTylDLaQ26Iku4zKlZzfB4RVXTsfB28IqWCTra/pqFHQJxxMBHH5WDJkhtSK EfEqGuUZzG7ea2+YSvppTpQoX3T2P0e86ZfNI040+49KcQFsLmxS/dM6iHShK/1RsZz8 rX70IkTlYcl3ZbGVUVLuxu0OyHYeWItQWFqCD5SgdEXrhLfrnp440y7CeGPGNf8n/ieY fG+f0+qr6yBj7UXgv3juJVeeU/51E1rvs0DMDaB6DNog212iza5I5m+D0IV3gDrF32gf SS2pmD6NTAOwW7y9U4Z5zvHJkzVDFzZSlpZWYK6jul6ADdVTGWLFj37Tbd6Pgi6/0tCF 1lEQ== 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 n67si295680pfk.216.2017.06.05.08.23.47; Mon, 05 Jun 2017 08:23:48 -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 S1751439AbdFEPXb (ORCPT + 25 others); Mon, 5 Jun 2017 11:23:31 -0400 Received: from foss.arm.com ([217.140.101.70]:34128 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751183AbdFEPWw (ORCPT ); Mon, 5 Jun 2017 11:22:52 -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 4504015B2; Mon, 5 Jun 2017 08:22:51 -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 15E3D3F881; Mon, 5 Jun 2017 08:22:51 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 4CBE91AE11D5; Mon, 5 Jun 2017 16:22:58 +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, 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 v4 2/5] perf/core: Export AUX buffer helpers to modules Date: Mon, 5 Jun 2017 16:22:54 +0100 Message-Id: <1496676177-29356-3-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1496676177-29356-1-git-send-email-will.deacon@arm.com> References: <1496676177-29356-1-git-send-email-will.deacon@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Perf PMU drivers using AUX buffers cannot be built as modules unless the AUX helpers are exported. This patch exports perf_aux_output_{begin,end,skip} and perf_get_aux to modules. Cc: Peter Zijlstra Signed-off-by: Will Deacon --- kernel/events/ring_buffer.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.1.4 diff --git a/kernel/events/ring_buffer.c b/kernel/events/ring_buffer.c index 2831480c63a2..cd5e902a27ac 100644 --- a/kernel/events/ring_buffer.c +++ b/kernel/events/ring_buffer.c @@ -411,6 +411,7 @@ void *perf_aux_output_begin(struct perf_output_handle *handle, return NULL; } +EXPORT_SYMBOL_GPL(perf_aux_output_begin); /* * Commit the data written by hardware into the ring buffer by adjusting @@ -470,6 +471,7 @@ void perf_aux_output_end(struct perf_output_handle *handle, unsigned long size) rb_free_aux(rb); ring_buffer_put(rb); } +EXPORT_SYMBOL_GPL(perf_aux_output_end); /* * Skip over a given number of bytes in the AUX buffer, due to, for example, @@ -498,6 +500,7 @@ int perf_aux_output_skip(struct perf_output_handle *handle, unsigned long size) return 0; } +EXPORT_SYMBOL_GPL(perf_aux_output_skip); void *perf_get_aux(struct perf_output_handle *handle) { @@ -507,6 +510,7 @@ void *perf_get_aux(struct perf_output_handle *handle) return handle->rb->aux_priv; } +EXPORT_SYMBOL_GPL(perf_get_aux); #define PERF_AUX_GFP (GFP_KERNEL | __GFP_ZERO | __GFP_NOWARN | __GFP_NORETRY)