mirror of
https://github.com/sched-ext/scx.git
synced 2024-11-24 11:50:23 +00:00
scx_layered: Fix verifier issue when tracing
Signed-off-by: Daniel Hodges <hodges.daniel.scott@gmail.com>
This commit is contained in:
parent
d6ba3b79d7
commit
3cc849f234
@ -398,7 +398,7 @@ static void initialize_budgets(u64 refresh_intvl_ns)
|
|||||||
layer_weight_dur = (HI_FALLBACK_DSQ_WEIGHT * slice_ns * refresh_intvl_ns) /
|
layer_weight_dur = (HI_FALLBACK_DSQ_WEIGHT * slice_ns * refresh_intvl_ns) /
|
||||||
layer_weight_sum;
|
layer_weight_sum;
|
||||||
initialize_budget(costc, budget_id, (s64)layer_weight_dur);
|
initialize_budget(costc, budget_id, (s64)layer_weight_dur);
|
||||||
if (cpu == 0 && llc_id == 0)
|
if (cpu == 0 && llc_id == 0 && budget_id < MAX_GLOBAL_BUDGETS)
|
||||||
trace("COST CPU DSQ[%d][%d] budget %lld",
|
trace("COST CPU DSQ[%d][%d] budget %lld",
|
||||||
cpu, budget_id, costc->budget[budget_id]);
|
cpu, budget_id, costc->budget[budget_id]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user