Home
last modified time | relevance | path

Searched refs:ratelimit (Results 1 – 14 of 14) sorted by relevance

/systemd-251/src/test/
Dtest-ratelimit.c12 RateLimit ratelimit = { 1 * USEC_PER_SEC, 10 }; in TEST() local
15 assert_se(ratelimit_below(&ratelimit)); in TEST()
16 assert_se(!ratelimit_below(&ratelimit)); in TEST()
19 assert_se(ratelimit_below(&ratelimit)); in TEST()
21 ratelimit = (RateLimit) { 0, 10 }; in TEST()
23 assert_se(ratelimit_below(&ratelimit)); in TEST()
Dmeson.build206 [files('test-ratelimit.c')],
/systemd-251/src/timesync/
Dtimesyncd-manager.h50 RateLimit ratelimit; member
Dtimesyncd-manager.c801 if (!ratelimit_below(&m->ratelimit)) { in manager_connect()
1125 .ratelimit = (RateLimit) { in manager_new()
/systemd-251/src/resolve/
Dresolved-dns-scope.h48 RateLimit ratelimit; member
Dresolved-dns-scope.c74 s->ratelimit = (RateLimit) { MULTICAST_RATELIMIT_INTERVAL_USEC, MULTICAST_RATELIMIT_BURST }; in dns_scope_new()
261 if (!ratelimit_below(&s->ratelimit)) in dns_scope_emit_one()
286 if (!ratelimit_below(&s->ratelimit)) in dns_scope_emit_one()
1049 if (!ratelimit_below(&s->ratelimit)) in dns_scope_process_query()
Dresolved-mdns.c338 if (!ratelimit_below(&s->ratelimit)) in mdns_scope_process_query()
/systemd-251/src/journal/
Djournald-server.h100 JournalRateLimit *ratelimit; member
Djournald-server.c1135 …rl = journal_ratelimit_test(s->ratelimit, c->unit, c->log_ratelimit_interval, c->log_ratelimit_bur… in server_dispatch_message()
2500 s->ratelimit = journal_ratelimit_new(); in server_init()
2501 if (!s->ratelimit) in server_init()
2601 if (s->ratelimit) in server_done()
2602 journal_ratelimit_free(s->ratelimit); in server_done()
/systemd-251/src/basic/
Dmeson.build193 'ratelimit.c',
194 'ratelimit.h',
Dlog.c527 static thread_local RateLimit ratelimit = { 5 * USEC_PER_SEC, 200 }; in write_to_kmsg() local
535 if (!ratelimit_below(&ratelimit)) in write_to_kmsg()
/systemd-251/src/libsystemd/sd-event/
Dtest-event.c631 TEST(ratelimit) { in TEST() argument
/systemd-251/
DTODO284 priority, but leave enabled, and once ratelimit window is over, upgrade
1072 * make sure the ratelimit object can deal with USEC_INFINITY as way to turn off things
1477 - journald: when dropping msgs due to ratelimit make sure to write
1497 - when a kernel driver logs in a tight loop, we should ratelimit that too.
DNEWS790 settings that default to 200 and 2 s respectively. The ratelimit