Skip to content

Commit

Permalink
schedule: zephyr_domain: change overrun semantics for LL stats
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
kv2019i committed Nov 19, 2024
1 parent 151e137 commit 6bae209
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/schedule/zephyr_domain.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit 6bae209

Please sign in to comment.