mirror of
https://github.com/torvalds/linux.git
synced 2026-11-23 23:11:40 +00:00
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Suggested-by: Steven Rostedt <[email protected]> Suggested-by: Peter Zijlstra <[email protected]> Signed-off-by: Vineeth Pillai (Google) <[email protected]> Reviewed-by: SeongJae Park <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
This commit is contained in:
committed by
Steven Rostedt (Google)
parent
d7447f2dce
commit
8ec4e50aa0
+1
-1
@@ -2347,7 +2347,7 @@ static void damos_trace_stat(struct damon_ctx *c, struct damos *s)
|
||||
break;
|
||||
sidx++;
|
||||
}
|
||||
trace_damos_stat_after_apply_interval(cidx, sidx, &s->stat);
|
||||
trace_call__damos_stat_after_apply_interval(cidx, sidx, &s->stat);
|
||||
}
|
||||
|
||||
static void kdamond_apply_schemes(struct damon_ctx *c)
|
||||
|
||||
Reference in New Issue
Block a user