Re: [PATCH v2 02/19] kernel: Use trace_call__##name() at guarded tracepoint call sites

From
Tejun Heo <tj@kernel.org>
Date
2026-03-23 17:42:23
Also in
lkml, sched-ext
Reply to
Vineeth Pillai (Google), 2026-03-23
On Mon, Mar 23, 2026 at 12:00:21PM -0400, Vineeth Pillai (Google) wrote:
Replace trace_foo() with the new trace_call__foo() at sites already
guarded by trace_foo_enabled(), avoiding a redundant
static_branch_unlikely() re-evaluation inside the tracepoint.
trace_call__foo() calls the tracepoint callbacks directly without
utilizing the static branch again.

Suggested-by: Steven Rostedt <rostedt@goodmis.org>
Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Vineeth Pillai (Google) <redacted>
Assisted-by: Claude:claude-sonnet-4-6
Acked-by: Tejun Heo <tj@kernel.org>

Thanks.

-- 
tejun
Thread (33 messages) 33 messages, 11 authors, last reply 2026-04-19
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help