mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Phil Auld <pauld@redhat.com>
To: Gabriele Monaco <gmonaco@redhat.com>
Cc: linux-kernel@vger.kernel.org,
	Steven Rostedt <rostedt@goodmis.org>,
	Nam Cao <namcao@linutronix.de>, Ingo Molnar <mingo@redhat.com>,
	Peter Zijlstra <peterz@infradead.org>,
	Tomas Glozar <tglozar@redhat.com>, Juri Lelli <jlelli@redhat.com>,
	Clark Williams <williams@redhat.com>,
	John Kacur <jkacur@redhat.com>,
	linux-trace-kernel@vger.kernel.org
Subject: Re: [PATCH v3 08/13] sched: Export hidden tracepoints to modules
Date: Tue, 6 Jan 2026 15:21:24 -0500	[thread overview]
Message-ID: <20260106202124.GA401789@pauld.westford.csb> (raw)
In-Reply-To: <20251211223643.GA557546@pauld.westford.csb>


Ping...

On Fri, Dec 12, 2025 at 07:36:43AM +0900 Phil Auld wrote:
> 
> Hi Peter,
> 
> On Fri, Dec 05, 2025 at 08:35:52AM -0500 Phil Auld wrote:
> > On Fri, Dec 05, 2025 at 02:16:16PM +0100 Gabriele Monaco wrote:
> > > 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
> > > 
> > > Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
> > 
> > This makes sense.
> > 
> > Reviewed-by: Phil Auld <pauld@redhat.com>
> > 
> 
> Any chance we can get this one in even if the rest of the series
> needs more time?
> 
> Without this, out of tree modules fail to link.

Any thoughts on this? Please?

Anything including linux/sched.h fails to link due to
these:
__trace_set_need_resched 
__tracepoint_sched_set_need_resched_tp



Thanks,
Phil

> 
> I don't know if it's worth adding:
> 
> Fixes: adcc3bfa8806 ("sched: Adapt sched tracepoints for RV task model")
> 
> 
> Cheers,
> Phil
> 
> > 
> > Cheers,
> > Phil
> > 
> > > ---
> > >  kernel/sched/core.c | 3 +++
> > >  1 file changed, 3 insertions(+)
> > > 
> > > diff --git a/kernel/sched/core.c b/kernel/sched/core.c
> > > index 41ba0be16911..5516778c19eb 100644
> > > --- a/kernel/sched/core.c
> > > +++ b/kernel/sched/core.c
> > > @@ -119,6 +119,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);
> > >  DEFINE_PER_CPU(struct rnd_state, sched_rnd_state);
> > > -- 
> > > 2.52.0
> > > 
> > > 
> > 
> > -- 
> > 
> 
> -- 
> 
> 

-- 


  reply	other threads:[~2026-01-06 20:21 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-05 13:16 [PATCH v3 00/13] rv: Add Hybrid Automata monitor type, per-object and deadline monitors Gabriele Monaco
2025-12-05 13:16 ` [PATCH v3 01/13] rv: Unify DA event handling functions across monitor types Gabriele Monaco
2025-12-18  1:04   ` Nam Cao
2025-12-22 14:45     ` Gabriele Monaco
2025-12-05 13:16 ` [PATCH v3 02/13] rv: Add Hybrid Automata monitor type Gabriele Monaco
2025-12-18  5:57   ` Nam Cao
2025-12-22 15:26     ` Gabriele Monaco
2025-12-05 13:16 ` [PATCH v3 03/13] verification/rvgen: Allow spaces in and events strings Gabriele Monaco
2025-12-05 13:16 ` [PATCH v3 04/13] verification/rvgen: Add support for Hybrid Automata Gabriele Monaco
2025-12-25  1:05   ` Nam Cao
2025-12-05 13:16 ` [PATCH v3 05/13] Documentation/rv: Add documentation about hybrid automata Gabriele Monaco
2025-12-25  1:16   ` Nam Cao
2025-12-05 13:16 ` [PATCH v3 06/13] rv: Add sample hybrid monitors stall Gabriele Monaco
2025-12-18  6:32   ` Nam Cao
2025-12-05 13:16 ` [PATCH v3 07/13] rv: Convert the opid monitor to a hybrid automaton Gabriele Monaco
2025-12-18  6:50   ` Nam Cao
2025-12-05 13:16 ` [PATCH v3 08/13] sched: Export hidden tracepoints to modules Gabriele Monaco
2025-12-05 13:35   ` Phil Auld
2025-12-11 22:36     ` Phil Auld
2026-01-06 20:21       ` Phil Auld [this message]
2026-01-13 10:43   ` [tip: sched/core] " tip-bot2 for Gabriele Monaco
2025-12-05 13:16 ` [PATCH v3 09/13] sched: Add deadline tracepoints Gabriele Monaco
2025-12-05 13:41   ` Phil Auld
2025-12-05 13:16 ` [PATCH v3 10/13] rv: Add support for per-object monitors in DA/HA Gabriele Monaco
2025-12-18  7:26   ` Nam Cao
2025-12-05 13:16 ` [PATCH v3 11/13] verification/rvgen: Add support for per-obj monitors Gabriele Monaco
2025-12-05 13:16 ` [PATCH v3 12/13] rv: Add deadline monitors Gabriele Monaco
2025-12-25  1:35   ` Nam Cao
2025-12-25  1:58     ` Nam Cao
2025-12-29  7:00       ` Gabriele Monaco
2025-12-05 13:16 ` [PATCH v3 13/13] rv: Add dl_server specific monitors Gabriele Monaco
2025-12-25  1:51   ` Nam Cao

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=20260106202124.GA401789@pauld.westford.csb \
    --to=pauld@redhat.com \
    --cc=gmonaco@redhat.com \
    --cc=jkacur@redhat.com \
    --cc=jlelli@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-trace-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=namcao@linutronix.de \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.org \
    --cc=tglozar@redhat.com \
    --cc=williams@redhat.com \
    /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®