From 6bae209730de1e355a2c1216666d3e7ad8b6a240 Mon Sep 17 00:00:00 2001 From: Kai Vehmanen Date: Mon, 18 Nov 2024 15:30:32 +0200 Subject: [PATCH] schedule: zephyr_domain: change overrun semantics for LL stats Change the logic how overrun count is reported out in the low-latency scheduler statistics reporting. Instead of resetting the overrun count after every window, keep a cumulative count of overruns seen. Overruns are in practise a rare occurrence and this change makes the CONFIG_SCHEDULE_LL_STATS_LOG_EVERY_OTHER_WINDOW option more useful as one can still track overruns for all executed iterations, even if reporting is done at a slower pace. Signed-off-by: Kai Vehmanen --- src/schedule/zephyr_domain.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/schedule/zephyr_domain.c b/src/schedule/zephyr_domain.c index 6413976e6017..bcb7a93b2498 100644 --- a/src/schedule/zephyr_domain.c +++ b/src/schedule/zephyr_domain.c @@ -131,7 +131,6 @@ static void zephyr_domain_thread_fn(void *p1, void *p2, void *p3) stats_report(runs, core, cycles_sum, cycles_max, overruns); cycles_sum = 0; cycles_max = 0; - overruns = 0; } #endif /* CONFIG_SCHEDULE_LL_STATS_LOG */