Home
last modified time | relevance | path

Searched refs:timestamp (Results 1 – 25 of 70) sorted by relevance

123

/systemd-251/src/basic/
Dtime-util.h96 static inline bool timestamp_is_set(usec_t timestamp) { in timestamp_is_set() argument
97 return timestamp > 0 && timestamp != USEC_INFINITY; in timestamp_is_set()
182 static inline usec_t usec_sub_unsigned(usec_t timestamp, usec_t delta) { in usec_sub_unsigned() argument
183 if (timestamp == USEC_INFINITY) /* Make sure infinity doesn't degrade */ in usec_sub_unsigned()
185 if (timestamp < delta) in usec_sub_unsigned()
188 return timestamp - delta; in usec_sub_unsigned()
191 static inline usec_t usec_sub_signed(usec_t timestamp, int64_t delta) { in usec_sub_signed() argument
193 return usec_add(timestamp, (usec_t) (-delta)); in usec_sub_signed()
195 return usec_sub_unsigned(timestamp, (usec_t) delta); in usec_sub_signed()
Dpath-util.c703 bool paths_check_timestamp(const char* const* paths, usec_t *timestamp, bool update) { in paths_check_timestamp() argument
706 assert(timestamp); in paths_check_timestamp()
711 originally_unset = *timestamp == 0; in paths_check_timestamp()
723 if (*timestamp >= u) in paths_check_timestamp()
730 *timestamp = u; in paths_check_timestamp()
/systemd-251/src/journal/
Djournald-context.c97 r = CMP(x->timestamp, y->timestamp); in client_context_compare()
128 .timestamp = USEC_INFINITY, in client_context_new()
147 c->timestamp = USEC_INFINITY; in client_context_reset()
509 usec_t timestamp) { in client_context_really_refresh() argument
515 if (timestamp == USEC_INFINITY) in client_context_really_refresh()
516 timestamp = now(CLOCK_MONOTONIC); in client_context_really_refresh()
532 c->timestamp = timestamp; in client_context_really_refresh()
546 usec_t timestamp) { in client_context_maybe_refresh() argument
551 if (timestamp == USEC_INFINITY) in client_context_maybe_refresh()
552 timestamp = now(CLOCK_MONOTONIC); in client_context_maybe_refresh()
[all …]
/systemd-251/src/resolve/
Dresolved-dns-cache.c318 usec_t timestamp, in calculate_until() argument
350 return timestamp + u; in calculate_until()
363 usec_t timestamp, in dns_cache_item_update_positive() argument
389 i->until = calculate_until(rr, min_ttl, UINT32_MAX, timestamp, false); in dns_cache_item_update_positive()
410 usec_t timestamp, in dns_cache_put_positive() argument
458 timestamp, in dns_cache_put_positive()
482 .until = calculate_until(rr, min_ttl, UINT32_MAX, timestamp, false), in dns_cache_put_positive()
506 (i->until - timestamp) / USEC_PER_SEC, in dns_cache_put_positive()
525 usec_t timestamp, in dns_cache_put_negative() argument
587 i->type == DNS_CACHE_RCODE ? timestamp + CACHE_TTL_STRANGE_RCODE_USEC : in dns_cache_put_negative()
[all …]
/systemd-251/src/libsystemd-network/
Dfuzz-ndisc-rs.c26 struct in6_addr *dst, triple_timestamp *timestamp) { in icmp6_receive() argument
29 if (timestamp) in icmp6_receive()
30 triple_timestamp_get(timestamp); in icmp6_receive()
Dsd-dhcp6-lease.c16 static void dhcp6_lease_set_timestamp(sd_dhcp6_lease *lease, const triple_timestamp *timestamp) { in dhcp6_lease_set_timestamp() argument
19 if (timestamp && triple_timestamp_is_set(timestamp)) in dhcp6_lease_set_timestamp()
20 lease->timestamp = *timestamp; in dhcp6_lease_set_timestamp()
22 triple_timestamp_get(&lease->timestamp); in dhcp6_lease_set_timestamp()
31 if (!triple_timestamp_is_set(&lease->timestamp)) in sd_dhcp6_lease_get_timestamp()
34 *ret = triple_timestamp_by_clock(&lease->timestamp, clock); in sd_dhcp6_lease_get_timestamp()
691 const triple_timestamp *timestamp, in dhcp6_lease_new_from_message() argument
707 dhcp6_lease_set_timestamp(lease, timestamp); in dhcp6_lease_new_from_message()
Ddhcp6-lease-internal.h25 triple_timestamp timestamp; member
69 const triple_timestamp *timestamp,
Dsd-lldp-rx.c135 old->timestamp = n->timestamp; in lldp_rx_add_neighbor()
232 triple_timestamp_from_realtime(&n->timestamp, timespec_load(&ts)); in lldp_rx_receive_datagram()
234 triple_timestamp_get(&n->timestamp); in lldp_rx_receive_datagram()
Dtest-ndisc-rs.c182 struct in6_addr *dst, triple_timestamp *timestamp) { in icmp6_receive() argument
185 if (timestamp) in icmp6_receive()
186 triple_timestamp_get(timestamp); in icmp6_receive()
Dtest-ndisc-ra.c228 struct in6_addr *dst, triple_timestamp *timestamp) { in icmp6_receive() argument
231 if (timestamp) in icmp6_receive()
232 triple_timestamp_get(timestamp); in icmp6_receive()
Dndisc-router.h15 triple_timestamp timestamp; member
/systemd-251/src/creds/
Dcreds.c362 usec_t timestamp; in verb_cat() local
365 timestamp = arg_timestamp != USEC_INFINITY ? arg_timestamp : now(CLOCK_REALTIME); in verb_cat()
419 timestamp, in verb_cat()
446 usec_t timestamp; in verb_encrypt() local
481 timestamp = arg_timestamp != USEC_INFINITY ? arg_timestamp : now(CLOCK_REALTIME); in verb_encrypt()
483 if (arg_not_after != USEC_INFINITY && arg_not_after < timestamp) in verb_encrypt()
489 timestamp, in verb_encrypt()
538 usec_t timestamp; in verb_decrypt() local
574 timestamp = arg_timestamp != USEC_INFINITY ? arg_timestamp : now(CLOCK_REALTIME); in verb_decrypt()
578 timestamp, in verb_decrypt()
/systemd-251/src/shared/
Dcreds-util.c433 le64_t timestamp; member
486 usec_t timestamp, in encrypt_credential_and_warn() argument
523 if (not_after != USEC_INFINITY && timestamp != USEC_INFINITY && not_after < timestamp) in encrypt_credential_and_warn()
524 …redential is invalidated before it is valid (" USEC_FMT " < " USEC_FMT ").", not_after, timestamp); in encrypt_credential_and_warn()
531 if (timestamp != USEC_INFINITY) in encrypt_credential_and_warn()
532 …Including timestamp '%s' in encrypted credential.", format_timestamp(buf, sizeof(buf), timestamp)); in encrypt_credential_and_warn()
709 m->timestamp = htole64(timestamp); in encrypt_credential_and_warn()
967 if (le64toh(m->timestamp) != USEC_INFINITY && in decrypt_credential_and_warn()
969 le64toh(m->timestamp) >= le64toh(m->not_after)) in decrypt_credential_and_warn()
1005 … if (le64toh(m->timestamp) != USEC_INFINITY && le64toh(m->timestamp) > validate_timestamp) in decrypt_credential_and_warn()
[all …]
Dloop-util.c154 usec_t timestamp; in loop_configure() local
212 timestamp = now(CLOCK_MONOTONIC); in loop_configure()
274 *ret_timestamp_not_before = timestamp; in loop_configure()
284 timestamp = now(CLOCK_MONOTONIC); in loop_configure()
344 *ret_timestamp_not_before = timestamp; in loop_configure()
405 usec_t timestamp = USEC_INFINITY; in loop_device_make_internal() local
543 … r = loop_configure(loop, nr, &config, &try_loop_configure, &seqnum, &timestamp); in loop_device_make_internal()
617 .timestamp_not_before = timestamp, in loop_device_make_internal()
Dutmp-wtmp.h16 int utmp_put_reboot(usec_t timestamp);
46 static inline int utmp_put_reboot(usec_t timestamp) { in utmp_put_reboot() argument
/systemd-251/src/login/
Dloginctl.c329 struct dual_timestamp timestamp; member
350 struct dual_timestamp timestamp; member
444 …p", "t", NULL, offsetof(SessionStatusInfo, timestamp.realtime) }, in print_session_status_info()
445 …pMonotonic", "t", NULL, offsetof(SessionStatusInfo, timestamp.monotonic) }, in print_session_status_info()
472 if (timestamp_is_set(i.timestamp.realtime)) in print_session_status_info()
474 FORMAT_TIMESTAMP(i.timestamp.realtime), in print_session_status_info()
475 FORMAT_TIMESTAMP_RELATIVE(i.timestamp.realtime)); in print_session_status_info()
549 i.timestamp.monotonic, in print_session_status_info()
569 …tamp", "t", NULL, offsetof(UserStatusInfo, timestamp.realtime) }, in print_user_status_info()
570 …tampMonotonic", "t", NULL, offsetof(UserStatusInfo, timestamp.monotonic) }, in print_user_status_info()
[all …]
Dlogind-user.c180 if (dual_timestamp_is_set(&u->timestamp)) in user_save_internal()
184 u->timestamp.realtime, in user_save_internal()
185 u->timestamp.monotonic); in user_save_internal()
332 (void) deserialize_usec(realtime, &u->timestamp.realtime); in user_load()
334 (void) deserialize_usec(monotonic, &u->timestamp.monotonic); in user_load()
471 if (!dual_timestamp_is_set(&u->timestamp)) in user_start()
472 dual_timestamp_get(&u->timestamp); in user_start()
Dlogind-session.c329 if (dual_timestamp_is_set(&s->timestamp)) in session_save()
333 s->timestamp.realtime, in session_save()
334 s->timestamp.monotonic); in session_save()
572 (void) deserialize_usec(realtime, &s->timestamp.realtime); in session_load()
574 (void) deserialize_usec(monotonic, &s->timestamp.monotonic); in session_load()
719 if (!dual_timestamp_is_set(&s->timestamp)) in session_start()
720 dual_timestamp_get(&s->timestamp); in session_start()
Dlogind-device.h17 dual_timestamp timestamp; member
/systemd-251/src/machine/
Dmachine.c182 if (dual_timestamp_is_set(&m->timestamp)) in machine_save()
186 m->timestamp.realtime, in machine_save()
187 m->timestamp.monotonic); in machine_save()
288 (void) deserialize_usec(realtime, &m->timestamp.realtime); in machine_load()
290 (void) deserialize_usec(monotonic, &m->timestamp.monotonic); in machine_load()
459 if (!dual_timestamp_is_set(&m->timestamp)) in machine_start()
460 dual_timestamp_get(&m->timestamp); in machine_start()
/systemd-251/src/cgtop/
Dcgtop.c278 nsec_t timestamp; in process() local
336 timestamp = now_nsec(CLOCK_MONOTONIC); in process()
341 x = (uint64_t) (timestamp - g->io_timestamp); in process()
364 g->io_timestamp = timestamp; in process()
369 nsec_t timestamp; in process() local
411 timestamp = now_nsec(CLOCK_MONOTONIC); in process()
418 x = timestamp - g->cpu_timestamp; in process()
428 g->cpu_timestamp = timestamp; in process()
/systemd-251/src/analyze/
Dmeson.build42 'analyze-timestamp.c',
43 'analyze-timestamp.h',
Danalyze.h44 void time_parsing_hint(const char *p, bool calendar, bool timestamp, bool timespan);
/systemd-251/src/systemctl/
Dsystemctl-show.c323 usec_t timestamp; in print_status_info() local
433timestamp = STRPTR_IN_SET(i->active_state, "active", "reloading") ? i->active_enter_timestamp : in print_status_info()
438 if (timestamp_is_set(timestamp)) { in print_status_info()
440 FORMAT_TIMESTAMP_STYLE(timestamp, arg_timestamp_style), in print_status_info()
441 FORMAT_TIMESTAMP_RELATIVE(timestamp)); in print_status_info()
445 until_timestamp = usec_add(timestamp, i->runtime_max_sec); in print_status_info()
1017 uint64_t timestamp; in print_property() local
1019 r = sd_bus_message_read_basic(m, bus_type, &timestamp); in print_property()
1023 …rint_property_value(name, expected_value, flags, FORMAT_TIMESTAMP_STYLE(timestamp, arg_timestamp_s… in print_property()
2154 FORMAT_TIMESTAMP_STYLE(mi.timestamp, arg_timestamp_style), in show_system_status()
[all …]
Dsystemctl-list-machines.h17 uint64_t timestamp; member

123