/systemd/src/basic/ |
H A D | ratelimit.c | 30 usec_t ts; local 37 ts = now(CLOCK_MONOTONIC); 40 r->begin + r->interval < ts) { 41 r->begin = ts;
|
H A D | clock-util.c | 104 struct timespec ts; local 109 assert_se(clock_gettime(CLOCK_REALTIME, &ts) == 0); 110 assert_se(tm = localtime(&ts.tv_sec)); 151 struct timespec ts; local 156 if (clock_settime(CLOCK_REALTIME, timespec_store(&ts, TIME_EPOCH_USEC)) < 0)
|
H A D | io-util.c | 191 struct timespec ts; local 194 r = ppoll(&pollfd, 1, t == USEC_INFINITY ? NULL : timespec_store(&ts, t), NULL);
|
H A D | time-util.h | 77 dual_timestamp* dual_timestamp_get(dual_timestamp *ts); 78 dual_timestamp* dual_timestamp_from_realtime(dual_timestamp *ts, usec_t u); 79 dual_timestamp* dual_timestamp_from_monotonic(dual_timestamp *ts, usec_t u); 80 dual_timestamp* dual_timestamp_from_boottime_or_monotonic(dual_timestamp *ts, usec_t u); 82 static inline bool dual_timestamp_is_set(dual_timestamp *ts) { argument 83 return ((ts->realtime > 0 && ts->realtime != USEC_INFINITY) || 84 (ts->monotonic > 0 && ts->monotonic != USEC_INFINITY)); 87 usec_t timespec_load(const struct timespec *ts) _pure [all...] |
/systemd/src/test/ |
H A D | test-btrfs.c | 38 char ts[FORMAT_TIMESTAMP_MAX], bs[FORMAT_BYTES_MAX]; local 45 log_info("otime: %s", format_timestamp(ts, sizeof(ts), info.otime));
|
H A D | test-execute.c | 41 usec_t ts; local 50 ts = now(CLOCK_MONOTONIC); 59 if (ts + timeout < n) {
|
H A D | test-path.c | 79 usec_t ts; local 94 ts = now(CLOCK_MONOTONIC); 111 if (ts + timeout < n) {
|
/systemd/src/nspawn/ |
H A D | nspawn-stub-pid1.c | 125 struct timespec ts; local 126 r = sigtimedwait(&waitmask, &si, timespec_store(&ts, quit_usec - current_usec));
|
/systemd/src/timesync/ |
H A D | timesyncd.c | 70 struct timespec ts; local 76 if (clock_settime(CLOCK_REALTIME, timespec_store(&ts, min)) < 0)
|
/systemd/src/update-done/ |
H A D | update-done.c | 30 static int apply_timestamp(const char *path, struct timespec *ts) { argument 32 *ts, 33 *ts 38 assert(ts); 49 if (st.st_mtim.tv_sec > ts->tv_sec)
|
/systemd/src/journal/ |
H A D | journald-console.c | 59 struct timespec ts; local 60 char tbuf[sizeof("[] ")-1 + DECIMAL_STR_MAX(ts.tv_sec) + DECIMAL_STR_MAX(ts.tv_nsec)-3 + 1]; 74 assert_se(clock_gettime(CLOCK_MONOTONIC, &ts) == 0); 76 ts.tv_sec, 77 ts.tv_nsec / 1000);
|
H A D | test-journal.c | 32 dual_timestamp ts; local 47 dual_timestamp_get(&ts); 51 assert_se(journal_file_append_entry(f, &ts, &iovec, 1, NULL, NULL, NULL) == 0); 55 assert_se(journal_file_append_entry(f, &ts, &iovec, 1, NULL, NULL, NULL) == 0); 59 assert_se(journal_file_append_entry(f, &ts, &iovec, 1, NULL, NULL, NULL) == 0);
|
H A D | test-journal-stream.c | 101 dual_timestamp ts; local 104 dual_timestamp_get(&ts); 106 if (ts.monotonic <= previous_ts.monotonic) 107 ts.monotonic = previous_ts.monotonic + 1; 109 if (ts.realtime <= previous_ts.realtime) 110 ts.realtime = previous_ts.realtime + 1; 112 previous_ts = ts; 124 assert_se(journal_file_append_entry(three, &ts, iovec, 2, NULL, NULL, NULL) == 0); 127 assert_se(journal_file_append_entry(two, &ts, iovec, 2, NULL, NULL, NULL) == 0); 129 assert_se(journal_file_append_entry(one, &ts, iove [all...] |
H A D | test-journal-verify.c | 95 struct dual_timestamp ts; local 98 dual_timestamp_get(&ts); 105 assert_se(journal_file_append_entry(f, &ts, &iovec, 1, NULL, NULL, NULL) == 0);
|
H A D | journald-rate-limit.c | 123 _pure_ static bool journal_rate_limit_group_expired(JournalRateLimitGroup *g, usec_t ts) { argument 129 if (g->pools[i].begin + g->parent->interval >= ts) 135 static void journal_rate_limit_vacuum(JournalRateLimit *r, usec_t ts) { argument 142 (r->lru_tail && journal_rate_limit_group_expired(r->lru_tail, ts))) 146 static JournalRateLimitGroup* journal_rate_limit_group_new(JournalRateLimit *r, const char *id, usec_t ts) { argument 165 journal_rate_limit_vacuum(r, ts); 215 usec_t ts; local 227 ts = now(CLOCK_MONOTONIC); 239 g = journal_rate_limit_group_new(r, id, ts); 249 p->begin = ts; [all...] |
H A D | test-journal-interleaving.c | 65 dual_timestamp ts; local 69 dual_timestamp_get(&ts); 71 if (ts.monotonic <= previous_ts.monotonic) 72 ts.monotonic = previous_ts.monotonic + 1; 74 if (ts.realtime <= previous_ts.realtime) 75 ts.realtime = previous_ts.realtime + 1; 77 previous_ts = ts; 82 assert_ret(journal_file_append_entry(f, &ts, iovec, 1, seqnum, NULL, NULL));
|
/systemd/src/journal-remote/ |
H A D | journal-remote-parse.h | 51 dual_timestamp ts; member in struct:RemoteSource
|
H A D | journal-remote-write.c | 127 dual_timestamp *ts, 144 r = journal_file_append_entry(w->journal, ts, iovw->iovec, iovw->count, 160 r = journal_file_append_entry(w->journal, ts, iovw->iovec, iovw->count, 125 writer_write(Writer *w, struct iovec_wrapper *iovw, dual_timestamp *ts, bool compress, bool seal) argument
|
/systemd/src/libsystemd-network/ |
H A D | lldp-tlv.h | 60 usec_t ts; member in struct:sd_lldp_packet
|
/systemd/src/core/ |
H A D | killall.c | 104 struct timespec ts; local 153 timespec_store(&ts, until - n); 154 k = sigtimedwait(mask, NULL, &ts);
|
/systemd/src/udev/ |
H A D | udevadm-monitor.c | 41 struct timespec ts; local 43 clock_gettime(CLOCK_MONOTONIC, &ts); 46 ts.tv_sec, ts.tv_nsec/1000,
|
/systemd/src/libudev/ |
H A D | libudev-device.c | 793 usec_t ts; local 798 r = sd_device_get_usec_since_initialized(udev_device->device, &ts); 804 return ts;
|
/systemd/src/login/ |
H A D | logind-core.c | 327 dual_timestamp ts = DUAL_TIMESTAMP_NULL; local 344 if (k.monotonic < ts.monotonic) 345 ts = k; 348 ts = k; 352 if (k.monotonic > ts.monotonic) 353 ts = k; 358 *t = ts;
|
H A D | logind-inhibit.c | 387 struct dual_timestamp ts = DUAL_TIMESTAMP_NULL; local 407 i->since.monotonic < ts.monotonic) 408 ts = i->since; 417 *since = ts;
|
H A D | logind-seat.c | 612 dual_timestamp ts = DUAL_TIMESTAMP_NULL; local 626 if (k.monotonic > ts.monotonic) 627 ts = k; 630 ts = k; 634 if (k.monotonic > ts.monotonic) 635 ts = k; 640 *t = ts;
|