From patchwork Tue Apr 22 14:23:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Drew Richardson X-Patchwork-Id: 28822 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f71.google.com (mail-oa0-f71.google.com [209.85.219.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5C99D20341 for ; Tue, 22 Apr 2014 14:23:27 +0000 (UTC) Received: by mail-oa0-f71.google.com with SMTP id j17sf35051504oag.6 for ; Tue, 22 Apr 2014 07:23:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:date:from:to:subject:message-id :mime-version:user-agent:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe:content-type:content-disposition; bh=j5aTh1L9u34ri1jQaZOawxYFAUlxS132s1dDDk+YT/g=; b=FkiCmEIwno9z+qSGDSILl2Q9L0i9jPe/xwf0Ky0yNy/g42a8R/H4O3ddSV13NCEWqu NyD3tURP33ReNVN+7IbtcMcjl1JxBfu4F3yNsHV5iYBgaf6qKgVAy/xm9DgNMH6qt6aP Ssb/L2DL6b7dT71S8xvH7BW3NrlNINgKYEiSSNkNKAttvxHJac+2bB6n4B6/Hx+bDQuu jmnAOyxAQY8zfi3d2f7YBjXMtc6rCNipec6yQhWfXRFcLWrpJLbZpxpGEhF1mQ2udaQm 9rxKLiMTXokvHX1KET68qtqFeph3pl0In3hIKov9/ERBsplNVv3c/sCH8tEyPruyI9v9 JAwg== X-Gm-Message-State: ALoCoQlGidTWSYTF6fjpgPM8rO2A3c6QF2yBoUmNtK4Bnm4VU98scFmSRp5cyYCV3Gl5VjO0yE/S X-Received: by 10.43.161.202 with SMTP id mh10mr16983032icc.23.1398176606910; Tue, 22 Apr 2014 07:23:26 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.32.67 with SMTP id g61ls105412qgg.12.gmail; Tue, 22 Apr 2014 07:23:26 -0700 (PDT) X-Received: by 10.52.7.69 with SMTP id h5mr52743vda.68.1398176606701; Tue, 22 Apr 2014 07:23:26 -0700 (PDT) Received: from mail-ve0-f170.google.com (mail-ve0-f170.google.com [209.85.128.170]) by mx.google.com with ESMTPS id v14si6924887vco.111.2014.04.22.07.23.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 22 Apr 2014 07:23:26 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.170; Received: by mail-ve0-f170.google.com with SMTP id pa12so9910124veb.29 for ; Tue, 22 Apr 2014 07:23:26 -0700 (PDT) X-Received: by 10.52.18.68 with SMTP id u4mr239645vdd.58.1398176606606; Tue, 22 Apr 2014 07:23:26 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp28657vcb; Tue, 22 Apr 2014 07:23:26 -0700 (PDT) X-Received: by 10.69.17.230 with SMTP id gh6mr44936261pbd.0.1398176605780; Tue, 22 Apr 2014 07:23:25 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u6si22947866paa.257.2014.04.22.07.23.25; Tue, 22 Apr 2014 07:23:25 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756694AbaDVOXT (ORCPT + 26 others); Tue, 22 Apr 2014 10:23:19 -0400 Received: from fw-tnat.austin.arm.com ([217.140.110.23]:13833 "EHLO collaborate-mta1.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756328AbaDVOXO (ORCPT ); Tue, 22 Apr 2014 10:23:14 -0400 Received: from localhost (dreric01-precision-t1600.usa.arm.com [10.99.3.180]) by collaborate-mta1.arm.com (Postfix) with ESMTP id D42E613F7F3; Tue, 22 Apr 2014 09:23:13 -0500 (CDT) Date: Tue, 22 Apr 2014 07:23:13 -0700 From: Drew Richardson To: Ingo Molnar , Peter Zijlstra , linux-kernel@vger.kernel.org, Pawel Moll Subject: [PATCH] Export sched tracepoints for use by kernel modules Message-ID: <20140422142313.GB21121@dreric01-Precision-T1600> MIME-Version: 1.0 User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: drew.richardson@arm.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Content-Disposition: inline After commit de7b2973903c6cc50b31ee5682a69b2219b9919d ("tracepoint: Use struct pointer instead of name hash for reg/unreg tracepoints"), any tracepoints used in a kernel module must be exported. Signed-off-by: Drew Richardson Acked-by: Pawel Moll --- kernel/sched/core.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 268a45ea238c..cdb8e92ff24a 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -90,6 +90,31 @@ #define CREATE_TRACE_POINTS #include +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_kthread_stop); +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_kthread_stop_ret); +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_wakeup); +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_wakeup_new); +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_switch); +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_migrate_task); +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_process_free); +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_process_exit); +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_wait_task); +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_process_wait); +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_process_fork); +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_process_exec); +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_stat_wait); +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_stat_sleep); +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_stat_iowait); +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_stat_blocked); +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_stat_runtime); +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_pi_setprio); +#ifdef CONFIG_DETECT_HUNG_TASK +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_process_hang); +#endif /* CONFIG_DETECT_HUNG_TASK */ +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_move_numa); +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_stick_numa); +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_swap_numa); + void start_bandwidth_timer(struct hrtimer *period_timer, ktime_t period) { unsigned long delta;