Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

Fixes: adcc3bfa8806 ("sched: Adapt sched tracepoints for RV task model")
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Phil Auld <pauld@redhat.com>
Link: https://patch.msgid.link/20251205131621.135513-9-gmonaco@redhat.com

authored by

Gabriele Monaco and committed by
Peter Zijlstra
6c125b85 7dadeaa6

+3
+3
kernel/sched/core.c
··· 119 119 EXPORT_TRACEPOINT_SYMBOL_GPL(sched_util_est_se_tp); 120 120 EXPORT_TRACEPOINT_SYMBOL_GPL(sched_update_nr_running_tp); 121 121 EXPORT_TRACEPOINT_SYMBOL_GPL(sched_compute_energy_tp); 122 + EXPORT_TRACEPOINT_SYMBOL_GPL(sched_entry_tp); 123 + EXPORT_TRACEPOINT_SYMBOL_GPL(sched_exit_tp); 124 + EXPORT_TRACEPOINT_SYMBOL_GPL(sched_set_need_resched_tp); 122 125 123 126 DEFINE_PER_CPU_SHARED_ALIGNED(struct rq, runqueues); 124 127 DEFINE_PER_CPU(struct rnd_state, sched_rnd_state);