aboutgitcodebugslistschat
path: root/doc
diff options
context:
space:
mode:
authorAnshu Kumari <anskuma@redhat.com>2026-03-26 15:20:20 +0530
committerStefano Brivio <sbrivio@redhat.com>2026-03-28 15:02:49 +0100
commitf758d93125e5980996348a11486af507b3912fcb (patch)
tree5a0f552e5fe9b94ab8094f3eeb6e64c430f87d11 /doc
parent6dad076df0378eafb544deb64cfa58afbd2ad3d6 (diff)
downloadpasst-f758d93125e5980996348a11486af507b3912fcb.tar
passt-f758d93125e5980996348a11486af507b3912fcb.tar.gz
passt-f758d93125e5980996348a11486af507b3912fcb.tar.bz2
passt-f758d93125e5980996348a11486af507b3912fcb.tar.lz
passt-f758d93125e5980996348a11486af507b3912fcb.tar.xz
passt-f758d93125e5980996348a11486af507b3912fcb.tar.zst
passt-f758d93125e5980996348a11486af507b3912fcb.zip
log: Add rate-limiting macros for log messagesHEADmaster
Currently, some log messages that would be useful at info or warn level are kept at debug level because there is no way to throttle them, and a guest could otherwise flood the host logs. Add a logmsg_ratelimit() macro that uses per-call-site static variables to independently track each call site's rate. It allows up to LOG_RATELIMIT_BURST (5) messages per LOG_RATELIMIT_INTERVAL (1 second) window, then prints a suppression notice. When a new window opens and messages were suppressed, the count is reported after the next allowed message. Link: https://bugs.passt.top/show_bug.cgi?id=134 Signed-off-by: Anshu Kumari <anskuma@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions