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.

mm: damon: Use trace_call__##name() at guarded tracepoint call sites

Replace trace_damos_stat_after_apply_interval() with
trace_call__damos_stat_after_apply_interval() at a site already guarded
by an early return when !trace_damos_stat_after_apply_interval_enabled(),
avoiding a redundant static_branch_unlikely() re-evaluation inside the
tracepoint.

Cc: Andrew Morton <akpm@linux-foundation.org>
Link: https://patch.msgid.link/20260323160052.17528-19-vineeth@bitbyteword.org
Suggested-by: Steven Rostedt <rostedt@goodmis.org>
Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Vineeth Pillai (Google) <vineeth@bitbyteword.org>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>

authored by

Vineeth Pillai (Google) and committed by
Steven Rostedt (Google)
8ec4e50a d7447f2d

+1 -1
+1 -1
mm/damon/core.c
··· 2347 2347 break; 2348 2348 sidx++; 2349 2349 } 2350 - trace_damos_stat_after_apply_interval(cidx, sidx, &s->stat); 2350 + trace_call__damos_stat_after_apply_interval(cidx, sidx, &s->stat); 2351 2351 } 2352 2352 2353 2353 static void kdamond_apply_schemes(struct damon_ctx *c)