sched: Export hidden tracepoints to modules
PATCH 1/1 sched: Export hidden tracepoints to modules
The tracepoints sched_entry, sched_exit and sched_set_need_resched are not exported to tracefs as trace events, this allows only kernel code to access them. Helper modules like [1] can be used to still have the tracepoints available to ftrace for debugging purposes, but they do rely on the tracepoints being exported.
Export the 3 not exported tracepoints.
Note that sched_set_state is already exported as the macro is called from modules.
[1] - https://github.com/qais-yousef/sched_tp.git
Cc Qais Yousef <[email protected]>
Cc Phil Auld <[email protected]>
Cc Vincent Donnefort <[email protected]>
Signed-off-by Gabriele Monaco <[email protected]>
--- kernel/sched/core.c | 3 +++ 1 file changed, 3 insertions(+)
kernel/sched/core.c +3 -0
@@ -117,6 +117,9 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(sched_util_est_cfs_tp);EXPORT_TRACEPOINT_SYMBOL_GPL (sched_util_est_se_tp);EXPORT_TRACEPOINT_SYMBOL_GPL (sched_update_nr_running_tp);EXPORT_TRACEPOINT_SYMBOL_GPL (sched_compute_energy_tp); +EXPORT_TRACEPOINT_SYMBOL_GPL (sched_entry_tp); +EXPORT_TRACEPOINT_SYMBOL_GPL (sched_exit_tp); +EXPORT_TRACEPOINT_SYMBOL_GPL (sched_set_need_resched_tp); DEFINE_PER_CPU_SHARED_ALIGNED(struct rq, runqueues);
base-commit: c17b750b3ad9f45f2b6f7e6f7f4679844244f0b9
Signature · 1 line
2.50.1