Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5277917ybi; Tue, 4 Jun 2019 04:18:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVhc7zQDKsOr3pirCWFUN64DQUvv0gk/wXtlyTJ0u4ohb4BlFJfyXwzYWz/M6KszXWla9F X-Received: by 2002:a62:8643:: with SMTP id x64mr1578851pfd.7.1559647114571; Tue, 04 Jun 2019 04:18:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559647114; cv=none; d=google.com; s=arc-20160816; b=XLCMP83bj6M0/KzAbOAglY0WVbnucDCZzGCAuV8FVSdAcEEnNLCMxx5DYxS1FJOY67 7gNzr+Z7GEfzvImjy87uPcmYnqT2AkkuBIR+Yrt0VitcBt21GtdAN8D/YTUI4sreoNGE 6IJ7a41k+Pli2bNy9QgR4Y8fLb7Vfj0i2XAtC3g7WMLAxrq0B0wpLmcicDHAnCWR1DjJ rmG++K1hG1qG8WjD0oDLdWpFxwzmOdeSEbbn6/Z6oTMBRUpP/HVOcvQfTaDPhHyUCfcU C9Rg+2F5oNvbY6rxTnYPKReCVPSa8aBFsS+aQAIKVz1qqHA7BwHro8maMmwxSo1dk2XQ N3YA== 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; bh=SJE/UlmjGPppUBuviyWPBw4M/Mg6nU4pJnDPaGKNkrM=; b=mDQorEwhUbedPiw8Q5B1VlfHc9TWRy9y+L8pwPzYxKLuM9CeVJbmeOo1fxJgu9MR/3 7sWZe8Z7Vnut0Gs8T1nk8nblQaQl+sFpJHKkFPd6fLXtUR5/s13PlgNJkrhq6nYtYliI 631NDb0ViE/BD/htMChB3XUvocanhlYDmzT8GfujNWoT2MYOJBXXY3TohPW8OjZGhbwW HyJ5JTPK2JhA0SoiV8nAGrrJvPVKJaFo0SzqSo8f2K5ftw0p9sbw2sqvyO8s6bcd36fb qc4Ojmi2g7NoSCNqmel+zaIqWYoqHxQcyf4RhQmDimUBipA2FgfsyZNziIoa/kpU+XMY tszA== 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 9si7159538pjy.36.2019.06.04.04.18.17; Tue, 04 Jun 2019 04:18:34 -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 S1727661AbfFDLP1 (ORCPT + 99 others); Tue, 4 Jun 2019 07:15:27 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:40604 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727612AbfFDLPU (ORCPT ); Tue, 4 Jun 2019 07:15:20 -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 84C291715; Tue, 4 Jun 2019 04:15:20 -0700 (PDT) Received: from e107158-lin.cambridge.arm.com (e107158-lin.cambridge.arm.com [10.1.195.51]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B6BC03F690; Tue, 4 Jun 2019 04:15:18 -0700 (PDT) From: Qais Yousef To: Peter Zijlstra , Ingo Molnar , Steven Rostedt Cc: linux-kernel@vger.kernel.org, Pavankumar Kondeti , Sebastian Andrzej Siewior , Uwe Kleine-Konig , Dietmar Eggemann , Quentin Perret , Qais Yousef Subject: [PATCH v3 6/6] sched: export the newly added tracepoints Date: Tue, 4 Jun 2019 12:14:59 +0100 Message-Id: <20190604111459.2862-7-qais.yousef@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190604111459.2862-1-qais.yousef@arm.com> References: <20190604111459.2862-1-qais.yousef@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org So that external modules can hook into them and extract the info they need. Since these new tracepoints have no events associated with them exporting these tracepoints make them useful for external modules to perform testing and debugging. There's no other way otherwise to access them. BPF doesn't have infrastructure to access these bare tracepoints either. Signed-off-by: Qais Yousef --- kernel/sched/core.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 874c427742a9..bc831d913088 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -23,6 +23,17 @@ #define CREATE_TRACE_POINTS #include +/* + * Export tracepoints that act as a bare tracehook (ie: have no trace event + * associated with them) to allow external modules to probe them. + */ +EXPORT_TRACEPOINT_SYMBOL_GPL(pelt_cfs_tp); +EXPORT_TRACEPOINT_SYMBOL_GPL(pelt_rt_tp); +EXPORT_TRACEPOINT_SYMBOL_GPL(pelt_dl_tp); +EXPORT_TRACEPOINT_SYMBOL_GPL(pelt_irq_tp); +EXPORT_TRACEPOINT_SYMBOL_GPL(pelt_se_tp); +EXPORT_TRACEPOINT_SYMBOL_GPL(sched_overutilized_tp); + DEFINE_PER_CPU_SHARED_ALIGNED(struct rq, runqueues); #if defined(CONFIG_SCHED_DEBUG) && defined(CONFIG_JUMP_LABEL) -- 2.17.1