/systemd/src/shared/ |
H A D | boot-timestamps.c | 49 * since usec_t is unsigned and the kernel's monotonic clock 51 * the monotonic timestamps here as negative of the actual 54 firmware->monotonic = y; 55 loader->monotonic = y - x; 57 a = n->monotonic + firmware->monotonic; 60 a = n->monotonic + loader->monotonic;
|
H A D | logs-show.c | 220 _cleanup_free_ char *hostname = NULL, *identifier = NULL, *comm = NULL, *pid = NULL, *fake_pid = NULL, *message = NULL, *realtime = NULL, *monotonic = NULL, *priority = NULL; local 280 r = parse_field(data, length, "_SOURCE_MONOTONIC_TIMESTAMP=", &monotonic, &monotonic_len); 311 if (monotonic) 312 r = safe_atou64(monotonic, &t); 318 return log_error_errno(r, "Failed to get monotonic timestamp: %m"); 514 usec_t realtime, monotonic; local 527 r = sd_journal_get_monotonic_usec(j, &monotonic, &boot_id); 529 return log_error_errno(r, "Failed to get monotonic timestamp: %m"); 542 monotonic, 642 uint64_t realtime, monotonic; local [all...] |
H A D | bus-util.h | 174 SD_BUS_PROPERTY(name "Monotonic", "t", bus_property_get_usec, (offset) + offsetof(struct dual_timestamp, monotonic), (flags))
|
/systemd/src/journal/ |
H A D | test-journal-stream.c | 106 if (ts.monotonic <= previous_ts.monotonic) 107 ts.monotonic = previous_ts.monotonic + 1;
|
H A D | journal-internal.h | 72 uint64_t monotonic; member in struct:Location
|
H A D | test-journal-interleaving.c | 71 if (ts.monotonic <= previous_ts.monotonic) 72 ts.monotonic = previous_ts.monotonic + 1;
|
H A D | journal-file.h | 214 int journal_file_move_to_entry_by_monotonic(JournalFile *f, sd_id128_t boot_id, uint64_t monotonic, direction_t direction, Object **ret, uint64_t *offset); 219 int journal_file_move_to_entry_by_monotonic_for_data(JournalFile *f, uint64_t data_offset, sd_id128_t boot_id, uint64_t monotonic, direction_t direction, Object **ret, uint64_t *offset);
|
H A D | journal-def.h | 109 le64_t monotonic; member in struct:EntryObject
|
H A D | sd-journal.c | 146 l->monotonic = le64toh(o->entry.monotonic); 477 if (f->current_monotonic < l->monotonic) 479 if (f->current_monotonic > l->monotonic) 615 /* FIXME: missing: find by monotonic */ 624 r = journal_file_move_to_entry_by_monotonic_for_data(f, dp, j->current_location.boot_id, j->current_location.monotonic, direction, ret, offset); 717 r = journal_file_move_to_entry_by_monotonic(f, j->current_location.boot_id, j->current_location.monotonic, direction, ret, offset); 938 bid, le64toh(o->entry.monotonic), 949 unsigned long long seqnum, monotonic, realtime, xor_hash; local 994 if (sscanf(item+2, "%llx", &monotonic) ! [all...] |
H A D | journal-file.c | 1353 f->header->tail_entry_monotonic = o->entry.monotonic; 1394 o->entry.monotonic = htole64(ts->monotonic); 2098 if (le64toh(o->entry.monotonic) == needle) 2100 else if (le64toh(o->entry.monotonic) < needle) 2121 uint64_t monotonic, 2141 monotonic, 2162 f->current_monotonic = le64toh(o->entry.monotonic); 2199 /* If the boot id matches, compare monotonic time */ 2377 uint64_t monotonic, 2118 journal_file_move_to_entry_by_monotonic( JournalFile *f, sd_id128_t boot_id, uint64_t monotonic, direction_t direction, Object **ret, uint64_t *offset) argument 2373 journal_file_move_to_entry_by_monotonic_for_data( JournalFile *f, uint64_t data_offset, sd_id128_t boot_id, uint64_t monotonic, direction_t direction, Object **ret, uint64_t *offset) argument [all...] |
/systemd/src/test/ |
H A D | test-boot-timestamps.c | 89 log_info("Firmware began %s before kernel.", format_timespan(s, sizeof(s), fw.monotonic, 0)); 90 log_info("Loader began %s before kernel.", format_timespan(s, sizeof(s), l.monotonic, 0));
|
/systemd/src/basic/ |
H A D | time-util.h | 39 usec_t monotonic; member in struct:dual_timestamp 84 (ts->monotonic > 0 && ts->monotonic != USEC_INFINITY));
|
H A D | time-util.c | 65 ts->monotonic = now(CLOCK_MONOTONIC); 75 ts->realtime = ts->monotonic = u; 82 ts->monotonic = usec_sub(now(CLOCK_MONOTONIC), delta); 92 ts->realtime = ts->monotonic = USEC_INFINITY; 96 ts->monotonic = u; 107 ts->realtime = ts->monotonic = USEC_INFINITY; 114 ts->monotonic = usec_sub(ts->monotonic, delta); 422 t->monotonic); 437 t->monotonic [all...] |
/systemd/src/login/ |
H A D | logind-user.c | 178 u->timestamp.monotonic); 297 _cleanup_free_ char *display = NULL, *realtime = NULL, *monotonic = NULL; local 308 "MONOTONIC", &monotonic, 330 if (monotonic) { 332 if (sscanf(monotonic, "%llu", &l) > 0) 333 u->timestamp.monotonic = l; 658 if (k.monotonic < ts.monotonic) 666 if (k.monotonic > ts.monotonic) [all...] |
H A D | logind-core.c | 344 if (k.monotonic < ts.monotonic) 352 if (k.monotonic > ts.monotonic)
|
H A D | logind-seat.c | 626 if (k.monotonic > ts.monotonic) 634 if (k.monotonic > ts.monotonic)
|
H A D | logind-session.c | 286 s->timestamp.monotonic); 323 *monotonic = NULL, local 350 "MONOTONIC", &monotonic, 455 if (monotonic) { 457 if (sscanf(monotonic, "%llu", &l) > 0) 458 s->timestamp.monotonic = l;
|
H A D | logind-inhibit.c | 407 i->since.monotonic < ts.monotonic)
|
/systemd/src/machine/ |
H A D | machine.c | 198 m->timestamp.monotonic); 261 _cleanup_free_ char *realtime = NULL, *monotonic = NULL, *id = NULL, *leader = NULL, *class = NULL, *netif = NULL; local 278 "MONOTONIC", &monotonic, 308 if (monotonic) { 310 if (sscanf(monotonic, "%llu", &l) > 0) 311 m->timestamp.monotonic = l;
|
/systemd/src/journal-remote/ |
H A D | journal-upload-journal.c | 91 usec_t monotonic; local 94 r = sd_journal_get_monotonic_usec(u->journal, &monotonic, &boot_id); 96 return log_error_errno(r, "Failed to get monotonic timestamp: %m"); 99 "__MONOTONIC_TIMESTAMP="USEC_FMT"\n", monotonic); 121 return log_error_errno(r, "Failed to get monotonic timestamp: %m");
|
/systemd/src/core/ |
H A D | timer.c | 373 * rather than the monotonic clock. */ 410 base = UNIT(t)->inactive_exit_timestamp.monotonic; 425 base = UNIT(t)->manager->userspace_timestamp.monotonic; 430 base = trigger->inactive_exit_timestamp.monotonic; 433 base = t->last_trigger.monotonic; 442 base = trigger->inactive_enter_timestamp.monotonic; 445 base = t->last_trigger.monotonic; 510 (void) sd_event_source_set_description(t->monotonic_event_source, "timer-monotonic"); 659 if (t->last_trigger.monotonic > 0) 660 unit_serialize_item_format(u, f, "last-trigger-monotonic", " [all...] |
H A D | manager.c | 2625 /* Note that m->kernel_usec.monotonic is always at 0, 2626 * and m->firmware_usec.monotonic and 2627 * m->loader_usec.monotonic should be considered 2630 firmware_usec = m->firmware_timestamp.monotonic - m->loader_timestamp.monotonic; 2631 loader_usec = m->loader_timestamp.monotonic - m->kernel_timestamp.monotonic; 2632 userspace_usec = m->finish_timestamp.monotonic - m->userspace_timestamp.monotonic; 2633 total_usec = m->firmware_timestamp.monotonic [all...] |
/systemd/src/libsystemd/sd-bus/ |
H A D | bus-dump.c | 117 if (m->monotonic != 0) 118 fprintf(f, " Monotonic="USEC_FMT, m->monotonic); 124 if (m->monotonic != 0 || m->realtime != 0 || m->seqnum != 0)
|
H A D | bus-message.h | 85 usec_t monotonic; member in struct:sd_bus_message
|
/systemd/src/libsystemd/sd-event/ |
H A D | sd-event.c | 66 [SOURCE_TIME_MONOTONIC] = "monotonic", 200 struct clock_data monotonic; member in struct:sd_event 410 free_clock_data(&e->monotonic); 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; 610 return &e->monotonic; 2436 if (e->watchdog_last + e->watchdog_period / 4 > e->timestamp.monotonic) 2440 e->watchdog_last = e->timestamp.monotonic; 2472 r = event_arm_timer(e, &e->monotonic); [all...] |