/systemd-251/src/test/ |
D | test-cgroup-cpu.c | 9 …2500 == cgroup_cpu_adjust_period(USEC_PER_MSEC, 400 * USEC_PER_MSEC, USEC_PER_MSEC, USEC_PER_SEC)); in TEST() 11 …== cgroup_cpu_adjust_period(10 * USEC_PER_MSEC, 100 * USEC_PER_MSEC, USEC_PER_MSEC, USEC_PER_SEC)); in TEST() 13 …EC == cgroup_cpu_adjust_period(USEC_PER_MSEC, 10000 * USEC_PER_MSEC, USEC_PER_MSEC, USEC_PER_SEC)); in TEST() 15 …= cgroup_cpu_adjust_period(100 * USEC_PER_MSEC, 300 * USEC_PER_MSEC, USEC_PER_MSEC, USEC_PER_SEC)); in TEST() 17 …assert_se(USEC_PER_SEC == cgroup_cpu_adjust_period(5 * USEC_PER_SEC, 400 * USEC_PER_MSEC, USEC_PER… in TEST() 19 …assert_se(USEC_PER_SEC == cgroup_cpu_adjust_period(2 * USEC_PER_SEC, 2500 * USEC_PER_MSEC, USEC_PE… in TEST() 21 …C_PER_MSEC == cgroup_cpu_adjust_period(10, 50000000 * USEC_PER_MSEC, USEC_PER_MSEC, USEC_PER_SEC)); in TEST() 23 …cgroup_cpu_adjust_period(10 * USEC_PER_MSEC, 500000 * USEC_PER_MSEC, USEC_PER_MSEC, USEC_PER_SEC)); in TEST() 25 … == cgroup_cpu_adjust_period(10 * USEC_PER_MSEC, 10 * USEC_PER_MSEC, USEC_PER_MSEC, USEC_PER_SEC)); in TEST() 27 …assert_se(1 * USEC_PER_SEC == cgroup_cpu_adjust_period(10 * USEC_PER_MSEC, 10, USEC_PER_MSEC, USEC… in TEST() [all …]
|
D | test-time-util.c | 15 assert_se(u == 5 * USEC_PER_SEC); in TEST() 17 assert_se(u == 5 * USEC_PER_SEC + 500 * USEC_PER_MSEC); in TEST() 19 assert_se(u == 5 * USEC_PER_SEC + 500 * USEC_PER_MSEC); in TEST() 21 assert_se(u == 5 * USEC_PER_SEC + 500 * USEC_PER_MSEC); in TEST() 23 assert_se(u == 5 * USEC_PER_SEC + 500 * USEC_PER_MSEC + 500); in TEST() 77 assert_se(u == 5 * USEC_PER_SEC); in TEST() 90 assert_se(u == 5 * USEC_PER_SEC); in TEST() 113 assert_se(parse_time("5", &u, USEC_PER_SEC) >= 0); in TEST() 114 assert_se(u == 5 * USEC_PER_SEC); in TEST() 117 assert_se(u == 5 * USEC_PER_SEC); in TEST() [all …]
|
D | test-xattr-util.c | 81 r = fd_setcrtime(fd, 1519126446UL * USEC_PER_SEC); in TEST() 84 assert_se(k < 1519126446UL * USEC_PER_SEC || in TEST() 85 usec == 1519126446UL * USEC_PER_SEC); in TEST()
|
D | test-conf-parser.c | 185 test_config_parse_sec_one("1", 1 * USEC_PER_SEC); in TEST() 186 test_config_parse_sec_one("1s", 1 * USEC_PER_SEC); in TEST() 188 test_config_parse_sec_one("5min 20s", 5 * 60 * USEC_PER_SEC + 20 * USEC_PER_SEC); in TEST()
|
D | test-watchdog.c | 20 t = slow ? 10 * USEC_PER_SEC : 2 * USEC_PER_SEC; in main()
|
D | test-daemon.c | 14 usec_t duration = USEC_PER_SEC / 10; in main() 20 duration = x * USEC_PER_SEC; in main()
|
D | test-compress-benchmark.c | 151 arg_duration = x * USEC_PER_SEC; in main() 154 2 * USEC_PER_SEC : USEC_PER_SEC / 50; in main()
|
/systemd-251/src/libsystemd-network/ |
D | dhcp6-protocol.h | 40 #define DHCP6_INF_TIMEOUT (1 * USEC_PER_SEC) 41 #define DHCP6_INF_MAX_RT (120 * USEC_PER_SEC) 42 #define DHCP6_SOL_MAX_DELAY (1 * USEC_PER_SEC) 43 #define DHCP6_SOL_TIMEOUT (1 * USEC_PER_SEC) 44 #define DHCP6_SOL_MAX_RT (120 * USEC_PER_SEC) 45 #define DHCP6_REQ_TIMEOUT (1 * USEC_PER_SEC) 46 #define DHCP6_REQ_MAX_RT (120 * USEC_PER_SEC) 48 #define DHCP6_REN_TIMEOUT (10 * USEC_PER_SEC) 49 #define DHCP6_REN_MAX_RT (600 * USEC_PER_SEC) 50 #define DHCP6_REB_TIMEOUT (10 * USEC_PER_SEC) [all …]
|
D | radv-internal.h | 20 #define RADV_MIN_MAX_TIMEOUT_USEC (4 * USEC_PER_SEC) 21 #define RADV_MAX_MAX_TIMEOUT_USEC (1800 * USEC_PER_SEC) 22 #define RADV_DEFAULT_MAX_TIMEOUT_USEC (600 * USEC_PER_SEC) 29 #define RADV_MIN_MIN_TIMEOUT_USEC (3 * USEC_PER_SEC) 40 #define RADV_MAX_ROUTER_LIFETIME_USEC (9000 * USEC_PER_SEC) 53 #define RADV_MAX_INITIAL_RTR_ADVERT_INTERVAL_USEC (16 * USEC_PER_SEC)
|
D | test-ndisc-ra.c | 118 assert_se(sd_radv_prefix_set_valid_lifetime(p, 300 * USEC_PER_SEC, USEC_INFINITY) >= 0); in TEST() 119 assert_se(sd_radv_prefix_set_valid_lifetime(p, 300 * USEC_PER_SEC, USEC_PER_YEAR) >= 0); in TEST() 123 assert_se(sd_radv_prefix_set_preferred_lifetime(p, 300 * USEC_PER_SEC, USEC_INFINITY) >= 0); in TEST() 124 assert_se(sd_radv_prefix_set_preferred_lifetime(p, 300 * USEC_PER_SEC, USEC_PER_YEAR) >= 0); in TEST() 173 assert_se(sd_radv_set_router_lifetime(ra, 300 * USEC_PER_SEC) >= 0); in TEST() 182 assert_se(sd_radv_set_router_lifetime(ra, 300 * USEC_PER_SEC) >= 0); in TEST() 299 assert_se(sd_radv_set_router_lifetime(ra, 180 * USEC_PER_SEC) >= 0); in TEST() 315 …assert_se(sd_radv_prefix_set_valid_lifetime(p, prefix[i].valid * USEC_PER_SEC, USEC_INFINITY) >= 0… in TEST() 317 …ert_se(sd_radv_prefix_set_preferred_lifetime(p, prefix[i].preferred * USEC_PER_SEC, USEC_INFINITY)… in TEST() 331 2 * USEC_PER_SEC, 0, in TEST()
|
D | sd-ipv4acd.c | 29 #define PROBE_WAIT_USEC (1U * USEC_PER_SEC) 31 #define PROBE_MIN_USEC (1U * USEC_PER_SEC) 32 #define PROBE_MAX_USEC (2U * USEC_PER_SEC) 33 #define ANNOUNCE_WAIT_USEC (2U * USEC_PER_SEC) 35 #define ANNOUNCE_INTERVAL_USEC (2U * USEC_PER_SEC) 37 #define RATE_LIMIT_INTERVAL_USEC (60U * USEC_PER_SEC) 38 #define DEFEND_INTERVAL_USEC (10U * USEC_PER_SEC)
|
D | sd-ndisc.c | 260 (random_u64() % (2 * USEC_PER_SEC)) * val / 10 / USEC_PER_SEC; in ndisc_timeout_compute_random() 298 FORMAT_TIMESPAN(nd->retransmit_time, USEC_PER_SEC)); in ndisc_timeout() 367 … time_now + USEC_PER_SEC / 2, 1 * USEC_PER_SEC, /* See RFC 8415 sec. 18.2.1 */ in sd_ndisc_start()
|
D | ndisc-internal.h | 13 #define NDISC_ROUTER_SOLICITATION_INTERVAL (4U * USEC_PER_SEC) 14 #define NDISC_MAX_ROUTER_SOLICITATION_INTERVAL (3600U * USEC_PER_SEC)
|
D | sd-radv.c | 143 if (usec >= UINT32_MAX * USEC_PER_SEC) in usec_to_be32_sec() 147 return htobe32(usec / USEC_PER_SEC); in usec_to_be32_sec() 194 assert_cc(RADV_MAX_ROUTER_LIFETIME_USEC <= UINT16_MAX * USEC_PER_SEC); in radv_send() 195 adv.nd_ra_router_lifetime = htobe16(DIV_ROUND_UP(lifetime_usec, USEC_PER_SEC)); in radv_send() 343 if (max_timeout >= 9 * USEC_PER_SEC) in radv_timeout() 357 log_radv(ra, "Next Router Advertisement in %s", FORMAT_TIMESPAN(timeout, USEC_PER_SEC)); in radv_timeout() 628 FORMAT_TIMESPAN(p->lifetime_preferred_usec, USEC_PER_SEC), in sd_radv_add_prefix() 629 FORMAT_TIMESPAN(p->lifetime_valid_usec, USEC_PER_SEC)); in sd_radv_add_prefix() 729 FORMAT_TIMESPAN(p->lifetime_usec, USEC_PER_SEC)); in sd_radv_add_route_prefix()
|
/systemd-251/src/timesync/ |
D | timesyncd-manager.h | 25 #define NTP_POLL_INTERVAL_MIN_USEC (32 * USEC_PER_SEC) 26 #define NTP_POLL_INTERVAL_MAX_USEC (2048 * USEC_PER_SEC) 28 #define NTP_RETRY_INTERVAL_MIN_USEC (15 * USEC_PER_SEC) 29 #define NTP_RETRY_INTERVAL_MAX_USEC (6 * 60 * USEC_PER_SEC) /* 6 minutes */ 31 #define DEFAULT_CONNECTION_RETRY_USEC (30 * USEC_PER_SEC) 33 #define DEFAULT_SAVE_TIME_INTERVAL_USEC (60 * USEC_PER_SEC)
|
D | timesyncd-bus.c | 159 … return be16toh(ts->sec) * USEC_PER_SEC + (be16toh(ts->frac) * USEC_PER_SEC) / (usec_t) 0x10000ULL; in ntp_ts_short_to_usec() 163 …return (be32toh(ts->sec) - OFFSET_1900_1970) * USEC_PER_SEC + (be32toh(ts->frac) * USEC_PER_SEC) /… in ntp_ts_to_usec() 207 (usec_t) (m->samples_jitter * USEC_PER_SEC)); in property_get_ntp_message()
|
/systemd-251/src/basic/ |
D | time-util.c | 211 if ((usec_t) ts->tv_sec > (UINT64_MAX - (ts->tv_nsec / NSEC_PER_USEC)) / USEC_PER_SEC) in timespec_load() 215 (usec_t) ts->tv_sec * USEC_PER_SEC + in timespec_load() 235 u / USEC_PER_SEC >= TIME_T_MAX) { in timespec_store() 241 ts->tv_sec = (time_t) (u / USEC_PER_SEC); in timespec_store() 242 ts->tv_nsec = (long) ((u % USEC_PER_SEC) * NSEC_PER_USEC); in timespec_store() 269 if ((usec_t) tv->tv_sec > (UINT64_MAX - tv->tv_usec) / USEC_PER_SEC) in timeval_load() 273 (usec_t) tv->tv_sec * USEC_PER_SEC + in timeval_load() 281 u / USEC_PER_SEC > TIME_T_MAX) { in timeval_store() 285 tv->tv_sec = (time_t) (u / USEC_PER_SEC); in timeval_store() 286 tv->tv_usec = (suseconds_t) (u % USEC_PER_SEC); in timeval_store() [all …]
|
D | def.h | 4 #define DEFAULT_TIMEOUT_USEC (90*USEC_PER_SEC) 6 #define DEFAULT_CONFIRM_USEC (30*USEC_PER_SEC) 8 #define DEFAULT_START_LIMIT_INTERVAL (10*USEC_PER_SEC) 14 #define DEFAULT_EXIT_USEC (30*USEC_PER_SEC)
|
D | time-util.h | 46 #define USEC_PER_SEC ((usec_t) 1000000ULL) macro 52 #define USEC_PER_MINUTE ((usec_t) (60ULL*USEC_PER_SEC)) 60 #define USEC_PER_MONTH ((usec_t) (2629800ULL*USEC_PER_SEC)) 62 #define USEC_PER_YEAR ((usec_t) (31557600ULL*USEC_PER_SEC))
|
/systemd-251/src/oom/ |
D | oomd-manager.h | 14 #define MEM_PRESSURE_INTERVAL_USEC (1 * USEC_PER_SEC) 20 #define DEFAULT_MEM_PRESSURE_DURATION_USEC (30 * USEC_PER_SEC) 27 #define RECLAIM_DURATION_USEC (30 * USEC_PER_SEC) 28 #define POST_ACTION_DELAY_USEC (15 * USEC_PER_SEC)
|
/systemd-251/src/analyze/ |
D | analyze-timestamp.c | 62 if (usec % USEC_PER_SEC == 0) in test_timestamp_one() 64 usec / USEC_PER_SEC); in test_timestamp_one() 67 usec / USEC_PER_SEC, in test_timestamp_one() 68 usec % USEC_PER_SEC); in test_timestamp_one()
|
/systemd-251/src/resolve/ |
D | resolved-dns-stream.h | 19 #define DNS_STREAM_DEFAULT_TIMEOUT_USEC (10 * USEC_PER_SEC) 22 #define DNS_STREAM_STUB_TIMEOUT_USEC (30 * USEC_PER_SEC) 25 #define DNS_STREAM_OPPORTUNISTIC_TLS_TIMEOUT_USEC (3 * USEC_PER_SEC) 28 #define DNS_STREAM_ESTABLISHED_TIMEOUT_USEC (10 * USEC_PER_SEC)
|
/systemd-251/src/shared/ |
D | calendarspec.c | 35 assert_cc(INT_MAX >= USEC_PER_SEC); 236 if (!chain_valid(c->microsecond, 0, 60*USEC_PER_SEC-1, false)) in calendar_spec_valid() 298 if (c->start == 0 && c->stop < 0 && c->repeat == USEC_PER_SEC) in chain_is_star() 304 int d = usec ? (int) USEC_PER_SEC : 1; in _format_chain() 532 if (value * USEC_PER_SEC / USEC_PER_SEC != value) in parse_component_decimal() 535 value *= USEC_PER_SEC; in parse_component_decimal() 615 r = const_chain(tm.tm_sec * USEC_PER_SEC, &us); in calendarspec_from_time_t() 650 repeat = usec ? USEC_PER_SEC : 1; in prepend_component() 713 (*c)->repeat = USEC_PER_SEC; in parse_chain() 1339 c.tm_sec = c.tm_sec * USEC_PER_SEC + tm_usec; in find_next() [all …]
|
D | watchdog.c | 39 usec_t t = DIV_ROUND_UP(val, USEC_PER_SEC); in saturated_usec_to_sec() 130 watchdog_timeout = sec * USEC_PER_SEC; in watchdog_get_timeout() 147 watchdog_timeout = sec * USEC_PER_SEC; in watchdog_set_timeout() 162 watchdog_pretimeout = sec * USEC_PER_SEC; in watchdog_get_pretimeout() 183 …n log_error_errno(errno, "Failed to set pretimeout to %s: %m", FORMAT_TIMESPAN(sec, USEC_PER_SEC)); in watchdog_set_pretimeout()
|
/systemd-251/src/network/ |
D | test-networkd-address.c | 20 test_FORMAT_LIFETIME_one(usec_add(now_usec, 2 * USEC_PER_SEC - 1), "for 1s"); in TEST() 21 … test_FORMAT_LIFETIME_one(usec_add(now_usec, 3 * USEC_PER_WEEK + USEC_PER_SEC - 1), "for 3w"); in TEST()
|