From 7bc740f480e03c3a8ecef39bb1eba75852fd90d5 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 6 Aug 2018 16:16:21 +0900 Subject: [PATCH] core: add comments about timestamps stored in manager --- src/core/manager.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/core/manager.h b/src/core/manager.h index 342258fcf9..907eb05f5c 100644 --- a/src/core/manager.h +++ b/src/core/manager.h @@ -53,6 +53,27 @@ typedef enum StatusType { STATUS_TYPE_EMERGENCY, } StatusType; +/* Notes: + * 1. TIMESTAMP_FIRMWARE, TIMESTAMP_LOADER, TIMESTAMP_KERNEL, TIMESTAMP_INITRD, + * TIMESTAMP_SECURITY_START, and TIMESTAMP_SECURITY_FINISH are set only when + * the manager is system and not running under container environment. + * + * 2. The monotonic timestamp of TIMESTAMP_KERNEL is always zero. + * + * 3. The realtime timestamp of TIMESTAMP_KERNEL will be unset if the system does not + * have RTC. + * + * 4. TIMESTAMP_FIRMWARE and TIMESTAMP_LOADER will be unset if the system does not + * have RTC, or systemd is built without EFI support. + * + * 5. The monotonic timestamps of TIMESTAMP_FIRMWARE and TIMESTAMP_LOADER are stored as + * negative of the actual value. + * + * 6. TIMESTAMP_USERSPACE is the timestamp of when the manager was started. + * + * 7. TIMESTAMP_INITRD_* are set only when the system is booted with an initrd. + */ + typedef enum ManagerTimestamp { MANAGER_TIMESTAMP_FIRMWARE, MANAGER_TIMESTAMP_LOADER, -- 2.25.1