From: Qais Yousef <qais.yousef@arm.com>
To: Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@redhat.com>,
Steven Rostedt <rostedt@goodmis.org>
Cc: linux-kernel@vger.kernel.org,
Pavankumar Kondeti <pkondeti@codeaurora.org>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
Uwe Kleine-Konig <u.kleine-koenig@pengutronix.de>,
Qais Yousef <qais.yousef@arm.com>
Subject: [PATCH 7/7] sched: export the newly added tracepoints
Date: Sun, 5 May 2019 12:57:32 +0100 [thread overview]
Message-ID: <20190505115732.9844-8-qais.yousef@arm.com> (raw)
In-Reply-To: <20190505115732.9844-1-qais.yousef@arm.com>
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.
Signed-off-by: Qais Yousef <qais.yousef@arm.com>
---
kernel/sched/core.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 4778c48a7fda..1841a4e9918e 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -22,6 +22,14 @@
#define CREATE_TRACE_POINTS
#include <trace/events/sched.h>
+/*
+ * 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(sched_load_rq);
+EXPORT_TRACEPOINT_SYMBOL_GPL(sched_load_se);
+EXPORT_TRACEPOINT_SYMBOL_GPL(sched_overutilized);
+
DEFINE_PER_CPU_SHARED_ALIGNED(struct rq, runqueues);
#if defined(CONFIG_SCHED_DEBUG) && defined(CONFIG_JUMP_LABEL)
--
2.17.1
prev parent reply other threads:[~2019-05-05 11:58 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-05 11:57 [PATCH 0/7] Add new tracepoints required for EAS testing Qais Yousef
2019-05-05 11:57 ` [PATCH 1/7] sched: autogroup: Make autogroup_path() always available Qais Yousef
2019-05-05 11:57 ` [PATCH 2/7] sched: fair: move helper functions into fair.h Qais Yousef
2019-05-05 11:57 ` [PATCH 3/7] sched: fair.h: add a new cfs_rq_tg_path() Qais Yousef
2019-05-05 11:57 ` [PATCH 4/7] sched: Add sched_load_rq tracepoint Qais Yousef
2019-05-06 9:08 ` Peter Zijlstra
2019-05-06 9:18 ` Peter Zijlstra
2019-05-08 13:38 ` Qais Yousef
2019-05-06 13:52 ` Steven Rostedt
2019-05-06 14:42 ` Qais Yousef
2019-05-06 14:46 ` Steven Rostedt
2019-05-06 15:33 ` Qais Yousef
2019-05-06 16:01 ` Steven Rostedt
2019-05-06 17:23 ` Qais Yousef
2019-05-06 14:38 ` Qais Yousef
2019-05-10 8:51 ` Dietmar Eggemann
2019-05-10 9:14 ` Qais Yousef
2019-05-05 11:57 ` [PATCH 5/7] sched: Add sched_load_se tracepoint Qais Yousef
2019-05-05 11:57 ` [PATCH 6/7] sched: Add sched_overutilized tracepoint Qais Yousef
2019-05-05 11:57 ` Qais Yousef [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190505115732.9844-8-qais.yousef@arm.com \
--to=qais.yousef@arm.com \
--cc=bigeasy@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=pkondeti@codeaurora.org \
--cc=rostedt@goodmis.org \
--cc=u.kleine-koenig@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®