Searched defs:ts (Results 1 - 25 of 46) sorted by relevance

12

/systemd/src/basic/
H A Dratelimit.c30 usec_t ts; local
37 ts = now(CLOCK_MONOTONIC);
40 r->begin + r->interval < ts) {
41 r->begin = ts;
H A Dclock-util.c104 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 Dio-util.c191 struct timespec ts; local
194 r = ppoll(&pollfd, 1, t == USEC_INFINITY ? NULL : timespec_store(&ts, t), NULL);
H A Dtime-util.h77 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 Dtest-btrfs.c38 char ts[FORMAT_TIMESTAMP_MAX], bs[FORMAT_BYTES_MAX]; local
45 log_info("otime: %s", format_timestamp(ts, sizeof(ts), info.otime));
H A Dtest-execute.c41 usec_t ts; local
50 ts = now(CLOCK_MONOTONIC);
59 if (ts + timeout < n) {
H A Dtest-path.c79 usec_t ts; local
94 ts = now(CLOCK_MONOTONIC);
111 if (ts + timeout < n) {
/systemd/src/nspawn/
H A Dnspawn-stub-pid1.c125 struct timespec ts; local
126 r = sigtimedwait(&waitmask, &si, timespec_store(&ts, quit_usec - current_usec));
/systemd/src/timesync/
H A Dtimesyncd.c70 struct timespec ts; local
76 if (clock_settime(CLOCK_REALTIME, timespec_store(&ts, min)) < 0)
/systemd/src/update-done/
H A Dupdate-done.c30 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 Djournald-console.c59 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 Dtest-journal.c32 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 Dtest-journal-stream.c101 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 Dtest-journal-verify.c95 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 Djournald-rate-limit.c123 _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 Dtest-journal-interleaving.c65 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 Djournal-remote-parse.h51 dual_timestamp ts; member in struct:RemoteSource
H A Djournal-remote-write.c127 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 Dlldp-tlv.h60 usec_t ts; member in struct:sd_lldp_packet
/systemd/src/core/
H A Dkillall.c104 struct timespec ts; local
153 timespec_store(&ts, until - n);
154 k = sigtimedwait(mask, NULL, &ts);
/systemd/src/udev/
H A Dudevadm-monitor.c41 struct timespec ts; local
43 clock_gettime(CLOCK_MONOTONIC, &ts);
46 ts.tv_sec, ts.tv_nsec/1000,
/systemd/src/libudev/
H A Dlibudev-device.c793 usec_t ts; local
798 r = sd_device_get_usec_since_initialized(udev_device->device, &ts);
804 return ts;
/systemd/src/login/
H A Dlogind-core.c327 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 Dlogind-inhibit.c387 struct dual_timestamp ts = DUAL_TIMESTAMP_NULL; local
407 i->since.monotonic < ts.monotonic)
408 ts = i->since;
417 *since = ts;
H A Dlogind-seat.c612 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;

Completed in 75 milliseconds

12