]> xenbits.xensource.com Git - people/dstodden/blktap.git/commit
MAR-125: Support log rate limiting.
authorDaniel Stodden <daniel.stodden@citrix.com>
Mon, 23 May 2011 02:23:45 +0000 (19:23 -0700)
committerDaniel Stodden <daniel.stodden@citrix.com>
Mon, 23 May 2011 02:23:45 +0000 (19:23 -0700)
commit9d97de049a6b25f6c2ef3e390b382f173f4772f8
tree1bb158ff1294a589ff98d19942ea7005569edbfb
parent5bf0911b0ee3bae7c93fee51ad6264421ff02346
MAR-125: Support log rate limiting.

Much like Linux's ratelimit. Allow for message bursts of some size,
count messages as they pass. Drop messages once the burst size was
exceeded within a given interval. Next interval resets the count.

Signed-off-by: Daniel Stodden <daniel.stodden@citrix.com>
drivers/Makefile
drivers/tapdisk-loglimit.c [new file with mode: 0644]
drivers/tapdisk-loglimit.h [new file with mode: 0644]