]> git.puffer.fish Git - matthieu/frr.git/commit
lib: improve late timer warnings
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 11 Feb 2025 10:55:19 +0000 (11:55 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 11 Feb 2025 11:16:08 +0000 (12:16 +0100)
commitff76fb21d7b3bdf66b1710dc9ffb7bb46f376828
tree0bad8b34e0a32af1f54d77d4abb788a3a550299b
parentbaf4c1a78fe4cafdbb2cdbed030a31ea04a18c4a
lib: improve late timer warnings

Refactor the "timer getting executed too late" warning:

- warning threshold is now adjustable
- check is performed when event actually executes, rather than when it's
  thrown on ready list
- ignore_late_timer replaced with threshold = 0
- system load averages printed in log message
- warning ratelimited to once per 10s rather than once per poll()

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/event.c
lib/frrevent.h