Messages in this thread Patch in this message | | | From | Qais Yousef <> | Subject | [PATCH 7/7] sched: export the newly added tracepoints | Date | Sun, 5 May 2019 12:57:32 +0100 |
| |
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
| |