[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250206083654.6ea1d3f9@gandalf.local.home>
Date: Thu, 6 Feb 2025 08:36:54 -0500
From: Steven Rostedt <rostedt@...dmis.org>
To: Gabriele Monaco <gmonaco@...hat.com>
Cc: Peter Zijlstra <peterz@...radead.org>, linux-kernel@...r.kernel.org,
Ingo Molnar <mingo@...hat.com>, Masami Hiramatsu <mhiramat@...nel.org>,
linux-trace-kernel@...r.kernel.org
Subject: Re: [RFC PATCH 03/11] sched: Add sched tracepoints for RV task
model
On Thu, 06 Feb 2025 12:47:17 +0100
Gabriele Monaco <gmonaco@...hat.com> wrote:
> > > What do you think would be better?
> >
> > So I would think having the tracepoint in-line would be better.
> > Because
> > as is, everything gets to have this pointless CALL to an empty
> > function.
> >
> > If this were x86_64 only, I would suggest using static_call(), but
> > barring that, the static_branch() already in the tracepoint is the
> > best
> > we can do.
> >
>
> Ok, I see your point now..
>
> Adding the trace_ call inline seems far from trivial to me, but we
> could indeed do what's suggested in tracepoint-defs.h and practically
> use a static branch to call this trace_set_current_state, not sure if
> this is already what you were suggesting, though.
Right, due to the macro magic of how tracepoints are created, you can't
have them in header files. It causes too many side effects that can easily
break the build.
-- Steve
Powered by blists - more mailing lists