Searched refs:realtime (Results 1 - 25 of 42) sorted by relevance

12

/systemd/src/shared/
H A Dboot-timestamps.c58 firmware->realtime = n->realtime > a ? n->realtime - a : 0;
61 loader->realtime = n->realtime > a ? n->realtime - a : 0;
H A Dlogs-show.c220 _cleanup_free_ char *hostname = NULL, *identifier = NULL, *comm = NULL, *pid = NULL, *fake_pid = NULL, *message = NULL, *realtime = NULL, *monotonic = NULL, *priority = NULL; local
274 r = parse_field(data, length, "_SOURCE_REALTIME_TIMESTAMP=", &realtime, &realtime_len);
336 if (realtime)
337 r = safe_atou64(realtime, &x);
343 return log_error_errno(r, "Failed to get realtime timestamp: %m");
417 uint64_t realtime = 0; local
428 log_debug("Source realtime timestamp not found");
430 return log_full_errno(r == -EADDRNOTAVAIL ? LOG_DEBUG : LOG_ERR, r, "Failed to get source realtime timestamp: %m");
439 r = safe_atou64(value, &realtime);
441 log_debug_errno(r, "Failed to parse realtime timestam
514 usec_t realtime, monotonic; local
642 uint64_t realtime, monotonic; local
[all...]
/systemd/src/journal/
H A Djournal-vacuum.c41 uint64_t realtime; member in struct:vacuum_info
64 if (a->realtime < b->realtime)
66 else if (a->realtime > b->realtime)
78 unsigned long long *realtime) {
89 assert(realtime);
92 if (x > 0 && x != USEC_INFINITY && x < *realtime)
93 *realtime = x;
96 if (x > 0 && x != USEC_INFINITY && x < *realtime)
74 patch_realtime( int fd, const char *fn, const struct stat *st, unsigned long long *realtime) argument
182 unsigned long long seqnum = 0, realtime; local
292 patch_realtime(dirfd(d), p, &st, &realtime); local
[all...]
H A Djournal-authenticate.h27 int journal_file_maybe_append_tag(JournalFile *f, uint64_t realtime);
38 int journal_file_fsprg_evolve(JournalFile *f, uint64_t realtime);
H A Djournal-authenticate.c100 static int journal_file_get_epoch(JournalFile *f, uint64_t realtime, uint64_t *epoch) { argument
111 if (realtime < f->fss_start_usec)
114 t = realtime - f->fss_start_usec;
121 static int journal_file_fsprg_need_evolve(JournalFile *f, uint64_t realtime) { argument
129 r = journal_file_get_epoch(f, realtime, &goal);
140 int journal_file_fsprg_evolve(JournalFile *f, uint64_t realtime) { argument
149 r = journal_file_get_epoch(f, realtime, &goal);
206 int journal_file_maybe_append_tag(JournalFile *f, uint64_t realtime) { argument
214 if (realtime <= 0)
215 realtime
[all...]
H A Dtest-journal-stream.c109 if (ts.realtime <= previous_ts.realtime)
110 ts.realtime = previous_ts.realtime + 1;
H A Djournal-internal.h70 uint64_t realtime; member in struct:Location
H A Dtest-journal-interleaving.c74 if (ts.realtime <= previous_ts.realtime)
75 ts.realtime = previous_ts.realtime + 1;
H A Djournal-file.h213 int journal_file_move_to_entry_by_realtime(JournalFile *f, uint64_t realtime, direction_t direction, Object **ret, uint64_t *offset);
218 int journal_file_move_to_entry_by_realtime_for_data(JournalFile *f, uint64_t data_offset, uint64_t realtime, direction_t direction, Object **ret, uint64_t *offset);
H A Djournal-def.h108 le64_t realtime; member in struct:EntryObject
H A Dsd-journal.c145 l->realtime = le64toh(o->entry.realtime);
460 f->current_realtime == l->realtime &&
485 if (f->current_realtime < l->realtime)
487 if (f->current_realtime > l->realtime)
629 return journal_file_move_to_entry_by_realtime_for_data(f, dp, j->current_location.realtime, direction, ret, offset);
722 return journal_file_move_to_entry_by_realtime(f, j->current_location.realtime, direction, ret, offset);
939 le64toh(o->entry.realtime),
949 unsigned long long seqnum, monotonic, realtime, xor_hash; local
1000 if (sscanf(item+2, "%llx", &realtime) !
[all...]
/systemd/src/test/
H A Dtest-boot-timestamps.c91 log_info("Firmware began %s.", format_timestamp(s, sizeof(s), fw.realtime));
92 log_info("Loader began %s.", format_timestamp(s, sizeof(s), l.realtime));
93 log_info("Kernel began %s.", format_timestamp(s, sizeof(s), k.realtime));
/systemd/src/resolve/
H A Dresolved-dns-dnssec.h69 int dnssec_verify_rrset(DnsAnswer *answer, const DnsResourceKey *key, DnsResourceRecord *rrsig, DnsResourceRecord *dnskey, usec_t realtime, DnssecResult *result);
70 int dnssec_verify_rrset_search(DnsAnswer *answer, const DnsResourceKey *key, DnsAnswer *validated_dnskeys, usec_t realtime, DnssecResult *result, DnsResourceRecord **rrsig);
H A Dresolved-dns-dnssec.c515 static int dnssec_rrsig_expired(DnsResourceRecord *rrsig, usec_t realtime) { argument
521 if (realtime == USEC_INFINITY)
522 realtime = now(CLOCK_REALTIME);
548 return realtime < inception || realtime > expiration;
588 usec_t realtime) {
618 usec_t realtime,
658 r = dnssec_rrsig_expired(rrsig, realtime);
823 dnssec_fix_rrset_ttl(list, n, rrsig, realtime);
889 usec_t realtime,
584 dnssec_fix_rrset_ttl( DnsResourceRecord *list[], unsigned n, DnsResourceRecord *rrsig, usec_t realtime) argument
613 dnssec_verify_rrset( DnsAnswer *a, const DnsResourceKey *key, DnsResourceRecord *rrsig, DnsResourceRecord *dnskey, usec_t realtime, DnssecResult *result) argument
885 dnssec_verify_rrset_search( DnsAnswer *a, const DnsResourceKey *key, DnsAnswer *validated_dnskeys, usec_t realtime, DnssecResult *result, DnsResourceRecord **ret_rrsig) argument
2121 dnssec_verify_rrset( DnsAnswer *a, const DnsResourceKey *key, DnsResourceRecord *rrsig, DnsResourceRecord *dnskey, usec_t realtime, DnssecResult *result) argument
2142 dnssec_verify_rrset_search( DnsAnswer *a, const DnsResourceKey *key, DnsAnswer *validated_dnskeys, usec_t realtime, DnssecResult *result, DnsResourceRecord **ret_rrsig) argument
[all...]
/systemd/src/basic/
H A Dtime-util.h38 usec_t realtime; member in struct:dual_timestamp
83 return ((ts->realtime > 0 && ts->realtime != USEC_INFINITY) ||
H A Dtime-util.c64 ts->realtime = now(CLOCK_REALTIME);
75 ts->realtime = ts->monotonic = u;
79 ts->realtime = u;
92 ts->realtime = ts->monotonic = USEC_INFINITY;
98 ts->realtime = usec_sub(now(CLOCK_REALTIME), delta);
107 ts->realtime = ts->monotonic = USEC_INFINITY;
113 ts->realtime = usec_sub(ts->realtime, delta);
421 t->realtime,
436 t->realtime
[all...]
/systemd/src/login/
H A Dlogind-user.c177 u->timestamp.realtime,
297 _cleanup_free_ char *display = NULL, *realtime = NULL, *monotonic = NULL; local
307 "REALTIME", &realtime,
324 if (realtime) {
326 if (sscanf(realtime, "%llu", &l) > 0)
327 u->timestamp.realtime = l;
H A Dlogind-session.c285 s->timestamp.realtime,
322 *realtime = NULL, local
349 "REALTIME", &realtime,
449 if (realtime) {
451 if (sscanf(realtime, "%llu", &l) > 0)
452 s->timestamp.realtime = l;
H A Dloginctl.c436 { "Timestamp", "t", NULL, offsetof(SessionStatusInfo, timestamp.realtime) },
464 s1 = format_timestamp_relative(since1, sizeof(since1), i.timestamp.realtime);
465 s2 = format_timestamp(since2, sizeof(since2), i.timestamp.realtime);
564 { "Timestamp", "t", NULL, offsetof(UserStatusInfo, timestamp.realtime) },
590 s1 = format_timestamp_relative(since1, sizeof(since1), i.timestamp.realtime);
591 s2 = format_timestamp(since2, sizeof(since2), i.timestamp.realtime);
/systemd/src/machine/
H A Dmachine.c197 m->timestamp.realtime,
261 _cleanup_free_ char *realtime = NULL, *monotonic = NULL, *id = NULL, *leader = NULL, *class = NULL, *netif = NULL; local
277 "REALTIME", &realtime,
302 if (realtime) {
304 if (sscanf(realtime, "%llu", &l) > 0)
305 m->timestamp.realtime = l;
/systemd/src/journal-remote/
H A Djournal-upload-journal.c67 usec_t realtime; local
69 r = sd_journal_get_realtime_usec(u->journal, &realtime);
71 return log_error_errno(r, "Failed to get realtime timestamp: %m");
74 "__REALTIME_TIMESTAMP="USEC_FMT"\n", realtime);
/systemd/src/libsystemd/sd-bus/
H A Dbus-dump.c119 if (m->realtime != 0)
120 fprintf(f, " Realtime="USEC_FMT, m->realtime);
124 if (m->monotonic != 0 || m->realtime != 0 || m->seqnum != 0)
573 if (m->realtime != 0)
574 timeval_store(&tv, m->realtime);
H A Dbus-message.h86 usec_t realtime; member in struct:sd_bus_message
/systemd/src/core/
H A Dtimer.c392 b = t->last_trigger.realtime > 0 ? t->last_trigger.realtime : ts_realtime;
545 (void) sd_event_source_set_description(t->realtime_event_source, "timer-realtime");
588 touch_file(t->stamp_path, true, t->last_trigger.realtime, UID_INVALID, GID_INVALID, MODE_INVALID);
623 t->last_trigger.realtime = timespec_load(&st.st_atim);
656 if (t->last_trigger.realtime > 0)
657 unit_serialize_item_format(u, f, "last-trigger-realtime", "%" PRIu64, t->last_trigger.realtime);
690 } else if (streq(key, "last-trigger-realtime")) {
692 r = safe_atou64(value, &t->last_trigger.realtime);
[all...]
/systemd/src/libsystemd/sd-event/
H A Dsd-event.c64 [SOURCE_TIME_REALTIME] = "realtime",
67 [SOURCE_TIME_REALTIME_ALARM] = "realtime-alarm",
198 struct clock_data realtime; member in struct:sd_event
408 free_clock_data(&e->realtime);
437 e->watchdog_fd = e->epoll_fd = e->realtime.fd = e->boottime.fd = e->monotonic.fd = e->realtime_alarm.fd = e->boottime_alarm.fd = -1;
438 e->realtime.next = e->boottime.next = e->monotonic.next = e->realtime_alarm.next = e->boottime_alarm.next = USEC_INFINITY;
439 e->realtime.wakeup = e->boottime.wakeup = e->monotonic.wakeup = e->realtime_alarm.wakeup = e->boottime_alarm.wakeup = WAKEUP_CLOCK_DATA;
604 return &e->realtime;
2464 r = event_arm_timer(e, &e->realtime);
2568 r = process_timer(e, e->timestamp.realtime,
[all...]

Completed in 58 milliseconds

12