summaryrefslogtreecommitdiff
path: root/src/commonlib
diff options
context:
space:
mode:
authorJakub Czapiga <jacz@semihalf.com>2022-02-28 16:23:02 +0100
committerJulius Werner <jwerner@chromium.org>2022-03-31 23:04:58 +0000
commit48f6c2b46fec95c255c1f6dafff6b973199596b3 (patch)
treeff97dca1e14dbcc83b70885ce45be07e0ab058c9 /src/commonlib
parentf91366fa6f3a7313f77db7cfd54e2769d007baa3 (diff)
util/cbmem: Add FlameGraph-compatible timestamps output
Flame graphs are used to visualize hierarchical data, like call stacks. Timestamps collected by coreboot can be processed to resemble profiler-like output, and thus can be feed to flame graph generation tools. Generating flame graph using https://github.com/brendangregg/FlameGraph: cbmem -S > trace.txt FlameGraph/flamegraph.pl --flamechart trace.txt > output.svg TEST=Run on coreboot-enabled device and extract timestamps using -t/-T/-S options Signed-off-by: Jakub Czapiga <jacz@semihalf.com> Change-Id: I3a4e20a267e9e0fbc6b3a4d6a2409b32ce8fca33 Reviewed-on: https://review.coreboot.org/c/coreboot/+/62474 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/commonlib')
-rw-r--r--src/commonlib/include/commonlib/timestamp_serialized.h271
1 files changed, 143 insertions, 128 deletions
diff --git a/src/commonlib/include/commonlib/timestamp_serialized.h b/src/commonlib/include/commonlib/timestamp_serialized.h
index 890d9882f5..63b7806e3c 100644
--- a/src/commonlib/include/commonlib/timestamp_serialized.h
+++ b/src/commonlib/include/commonlib/timestamp_serialized.h
@@ -166,158 +166,173 @@ enum timestamp_id {
TS_KERNEL_DECOMPRESSION = 1102,
};
-#define TS_NAME_DEF(id, desc) {(id), STRINGIFY(id), (desc)}
+#define TS_NAME_DEF(id, id_end, desc) {(id), (id_end), STRINGIFY(id), (desc)}
static const struct timestamp_id_to_name {
uint32_t id;
+ uint32_t id_end;
const char *enum_name;
const char *name;
} timestamp_ids[] = {
/* Marker to report base_time. */
- {0, "TS_START", "1st timestamp"},
- TS_NAME_DEF(TS_ROMSTAGE_START, "start of romstage"),
- TS_NAME_DEF(TS_INITRAM_START, "before RAM initialization"),
- TS_NAME_DEF(TS_INITRAM_END, "after RAM initialization"),
- TS_NAME_DEF(TS_ROMSTAGE_END, "end of romstage"),
- TS_NAME_DEF(TS_VBOOT_START, "start of verified boot"),
- TS_NAME_DEF(TS_VBOOT_END, "end of verified boot"),
- TS_NAME_DEF(TS_COPYRAM_START, "starting to load ramstage"),
- TS_NAME_DEF(TS_COPYRAM_END, "finished loading ramstage"),
- TS_NAME_DEF(TS_RAMSTAGE_START, "start of ramstage"),
- TS_NAME_DEF(TS_BOOTBLOCK_START, "start of bootblock"),
- TS_NAME_DEF(TS_BOOTBLOCK_END, "end of bootblock"),
- TS_NAME_DEF(TS_COPYROM_START, "starting to load romstage"),
- TS_NAME_DEF(TS_COPYROM_END, "finished loading romstage"),
- TS_NAME_DEF(TS_ULZMA_START, "starting LZMA decompress (ignore for x86)"),
- TS_NAME_DEF(TS_ULZMA_END, "finished LZMA decompress (ignore for x86)"),
- TS_NAME_DEF(TS_ULZ4F_START, "starting LZ4 decompress (ignore for x86)"),
- TS_NAME_DEF(TS_ULZ4F_END, "finished LZ4 decompress (ignore for x86)"),
- TS_NAME_DEF(TS_DEVICE_ENUMERATE, "device enumeration"),
- TS_NAME_DEF(TS_DEVICE_CONFIGURE, "device configuration"),
- TS_NAME_DEF(TS_DEVICE_ENABLE, "device enable"),
- TS_NAME_DEF(TS_DEVICE_INITIALIZE, "device initialization"),
- TS_NAME_DEF(TS_OPROM_INITIALIZE, "Option ROM initialization"),
- TS_NAME_DEF(TS_OPROM_COPY_END, "Option ROM copy done"),
- TS_NAME_DEF(TS_OPROM_END, "Option ROM run done"),
- TS_NAME_DEF(TS_DEVICE_DONE, "device setup done"),
- TS_NAME_DEF(TS_CBMEM_POST, "cbmem post"),
- TS_NAME_DEF(TS_WRITE_TABLES, "write tables"),
- TS_NAME_DEF(TS_FINALIZE_CHIPS, "finalize chips"),
- TS_NAME_DEF(TS_LOAD_PAYLOAD, "starting to load payload"),
- TS_NAME_DEF(TS_ACPI_WAKE_JUMP, "ACPI wake jump"),
- TS_NAME_DEF(TS_SELFBOOT_JUMP, "selfboot jump"),
- TS_NAME_DEF(TS_POSTCAR_START, "start of postcar"),
- TS_NAME_DEF(TS_POSTCAR_END, "end of postcar"),
- TS_NAME_DEF(TS_DELAY_START, "Forced delay start"),
- TS_NAME_DEF(TS_DELAY_END, "Forced delay end"),
- TS_NAME_DEF(TS_READ_UCODE_START, "started reading uCode"),
- TS_NAME_DEF(TS_READ_UCODE_END, "finished reading uCode"),
- TS_NAME_DEF(TS_ELOG_INIT_START, "started elog init"),
- TS_NAME_DEF(TS_ELOG_INIT_END, "finished elog init"),
+ {0, 0, "TS_START", "1st timestamp"},
+ TS_NAME_DEF(TS_ROMSTAGE_START, TS_ROMSTAGE_END, "start of romstage"),
+ TS_NAME_DEF(TS_INITRAM_START, TS_INITRAM_END, "before RAM initialization"),
+ TS_NAME_DEF(TS_INITRAM_END, 0, "after RAM initialization"),
+ TS_NAME_DEF(TS_ROMSTAGE_END, 0, "end of romstage"),
+ TS_NAME_DEF(TS_VBOOT_START, TS_VBOOT_END, "start of verified boot"),
+ TS_NAME_DEF(TS_VBOOT_END, 0, "end of verified boot"),
+ TS_NAME_DEF(TS_COPYRAM_START, TS_COPYRAM_END, "starting to load ramstage"),
+ TS_NAME_DEF(TS_COPYRAM_END, 0, "finished loading ramstage"),
+ TS_NAME_DEF(TS_RAMSTAGE_START, 0, "start of ramstage"),
+ TS_NAME_DEF(TS_BOOTBLOCK_START, TS_BOOTBLOCK_END, "start of bootblock"),
+ TS_NAME_DEF(TS_BOOTBLOCK_END, 0, "end of bootblock"),
+ TS_NAME_DEF(TS_COPYROM_START, TS_COPYROM_END, "starting to load romstage"),
+ TS_NAME_DEF(TS_COPYROM_END, 0, "finished loading romstage"),
+ TS_NAME_DEF(TS_ULZMA_START, TS_ULZMA_END, "starting LZMA decompress (ignore for x86)"),
+ TS_NAME_DEF(TS_ULZMA_END, 0, "finished LZMA decompress (ignore for x86)"),
+ TS_NAME_DEF(TS_ULZ4F_START, TS_ULZ4F_END, "starting LZ4 decompress (ignore for x86)"),
+ TS_NAME_DEF(TS_ULZ4F_END, 0, "finished LZ4 decompress (ignore for x86)"),
+ TS_NAME_DEF(TS_DEVICE_ENUMERATE, TS_DEVICE_CONFIGURE, "device enumeration"),
+ TS_NAME_DEF(TS_DEVICE_CONFIGURE, TS_DEVICE_ENABLE, "device configuration"),
+ TS_NAME_DEF(TS_DEVICE_ENABLE, TS_DEVICE_INITIALIZE, "device enable"),
+ TS_NAME_DEF(TS_DEVICE_INITIALIZE, TS_DEVICE_DONE, "device initialization"),
+ TS_NAME_DEF(TS_OPROM_INITIALIZE, TS_OPROM_END, "Option ROM initialization"),
+ TS_NAME_DEF(TS_OPROM_COPY_END, 0, "Option ROM copy done"),
+ TS_NAME_DEF(TS_OPROM_END, 0, "Option ROM run done"),
+ TS_NAME_DEF(TS_DEVICE_DONE, 0, "device setup done"),
+ TS_NAME_DEF(TS_CBMEM_POST, 0, "cbmem post"),
+ TS_NAME_DEF(TS_WRITE_TABLES, 0, "write tables"),
+ TS_NAME_DEF(TS_FINALIZE_CHIPS, 0, "finalize chips"),
+ TS_NAME_DEF(TS_LOAD_PAYLOAD, 0, "starting to load payload"),
+ TS_NAME_DEF(TS_ACPI_WAKE_JUMP, 0, "ACPI wake jump"),
+ TS_NAME_DEF(TS_SELFBOOT_JUMP, 0, "selfboot jump"),
+ TS_NAME_DEF(TS_POSTCAR_START, TS_POSTCAR_END, "start of postcar"),
+ TS_NAME_DEF(TS_POSTCAR_END, 0, "end of postcar"),
+ TS_NAME_DEF(TS_DELAY_START, TS_DELAY_END, "Forced delay start"),
+ TS_NAME_DEF(TS_DELAY_END, 0, "Forced delay end"),
+ TS_NAME_DEF(TS_READ_UCODE_START, TS_READ_UCODE_END, "started reading uCode"),
+ TS_NAME_DEF(TS_READ_UCODE_END, 0, "finished reading uCode"),
+ TS_NAME_DEF(TS_ELOG_INIT_START, TS_ELOG_INIT_END, "started elog init"),
+ TS_NAME_DEF(TS_ELOG_INIT_END, 0, "finished elog init"),
/* Google related timestamps */
- TS_NAME_DEF(TS_COPYVER_START, "starting to load verstage"),
- TS_NAME_DEF(TS_COPYVER_END, "finished loading verstage"),
- TS_NAME_DEF(TS_TPMINIT_START, "starting to initialize TPM"),
- TS_NAME_DEF(TS_TPMINIT_END, "finished TPM initialization"),
- TS_NAME_DEF(TS_VERIFY_SLOT_START, "starting to verify keyblock/preamble (RSA)"),
- TS_NAME_DEF(TS_VERIFY_SLOT_END, "finished verifying keyblock/preamble (RSA)"),
- TS_NAME_DEF(TS_HASH_BODY_START, "starting to verify body (load+SHA2+RSA) "),
- TS_NAME_DEF(TS_LOADING_END, "finished loading body"),
- TS_NAME_DEF(TS_HASHING_END, "finished calculating body hash (SHA2)"),
- TS_NAME_DEF(TS_HASH_BODY_END, "finished verifying body signature (RSA)"),
- TS_NAME_DEF(TS_TPMPCR_START, "starting TPM PCR extend"),
- TS_NAME_DEF(TS_TPMPCR_END, "finished TPM PCR extend"),
- TS_NAME_DEF(TS_TPMLOCK_START, "starting locking TPM"),
- TS_NAME_DEF(TS_TPMLOCK_END, "finished locking TPM"),
- TS_NAME_DEF(TS_EC_SYNC_START, "starting EC software sync"),
- TS_NAME_DEF(TS_EC_HASH_READY, "EC vboot hash ready"),
- TS_NAME_DEF(TS_EC_POWER_LIMIT_WAIT, "waiting for EC to allow higher power draw"),
- TS_NAME_DEF(TS_EC_SYNC_END, "finished EC software sync"),
- TS_NAME_DEF(TS_COPYVPD_START, "starting to load Chrome OS VPD"),
- TS_NAME_DEF(TS_COPYVPD_RO_END, "finished loading Chrome OS VPD (RO)"),
- TS_NAME_DEF(TS_COPYVPD_RW_END, "finished loading Chrome OS VPD (RW)"),
- TS_NAME_DEF(TS_TPM_ENABLE_UPDATE_START, "started TPM enable update"),
- TS_NAME_DEF(TS_TPM_ENABLE_UPDATE_END, "finished TPM enable update"),
+ TS_NAME_DEF(TS_COPYVER_START, TS_COPYVER_START, "starting to load verstage"),
+ TS_NAME_DEF(TS_COPYVER_END, 0, "finished loading verstage"),
+ TS_NAME_DEF(TS_TPMINIT_START, TS_TPMINIT_END, "starting to initialize TPM"),
+ TS_NAME_DEF(TS_TPMINIT_END, 0, "finished TPM initialization"),
+ TS_NAME_DEF(TS_VERIFY_SLOT_START, TS_VERIFY_SLOT_END,
+ "starting to verify keyblock/preamble (RSA)"),
+ TS_NAME_DEF(TS_VERIFY_SLOT_END, 0, "finished verifying keyblock/preamble (RSA)"),
+ TS_NAME_DEF(TS_HASH_BODY_START, TS_HASH_BODY_END,
+ "starting to verify body (load+SHA2+RSA) "),
+ TS_NAME_DEF(TS_LOADING_END, 0, "finished loading body"),
+ TS_NAME_DEF(TS_HASHING_END, 0, "finished calculating body hash (SHA2)"),
+ TS_NAME_DEF(TS_HASH_BODY_END, 0, "finished verifying body signature (RSA)"),
+ TS_NAME_DEF(TS_TPMPCR_START, TS_TPMPCR_END, "starting TPM PCR extend"),
+ TS_NAME_DEF(TS_TPMPCR_END, 0, "finished TPM PCR extend"),
+ TS_NAME_DEF(TS_TPMLOCK_START, TS_TPMLOCK_END, "starting locking TPM"),
+ TS_NAME_DEF(TS_TPMLOCK_END, 0, "finished locking TPM"),
+ TS_NAME_DEF(TS_EC_SYNC_START, TS_EC_SYNC_END, "starting EC software sync"),
+ TS_NAME_DEF(TS_EC_HASH_READY, 0, "EC vboot hash ready"),
+ TS_NAME_DEF(TS_EC_POWER_LIMIT_WAIT, 0, "waiting for EC to allow higher power draw"),
+ TS_NAME_DEF(TS_EC_SYNC_END, 0, "finished EC software sync"),
+ TS_NAME_DEF(TS_COPYVPD_START, TS_COPYVPD_RW_END, "starting to load Chrome OS VPD"),
+ TS_NAME_DEF(TS_COPYVPD_RO_END, TS_COPYVPD_RW_END,
+ "finished loading Chrome OS VPD (RO)"),
+ TS_NAME_DEF(TS_COPYVPD_RW_END, 0, "finished loading Chrome OS VPD (RW)"),
+ TS_NAME_DEF(TS_TPM_ENABLE_UPDATE_START, TS_TPM_ENABLE_UPDATE_END,
+ "started TPM enable update"),
+ TS_NAME_DEF(TS_TPM_ENABLE_UPDATE_END, 0, "finished TPM enable update"),
/* AMD related timestamps */
- TS_NAME_DEF(TS_AGESA_INIT_RESET_START, "calling AmdInitReset"),
- TS_NAME_DEF(TS_AGESA_INIT_RESET_END, "back from AmdInitReset"),
- TS_NAME_DEF(TS_AGESA_INIT_EARLY_START, "calling AmdInitEarly"),
- TS_NAME_DEF(TS_AGESA_INIT_EARLY_END, "back from AmdInitEarly"),
- TS_NAME_DEF(TS_AGESA_INIT_POST_START, "calling AmdInitPost"),
- TS_NAME_DEF(TS_AGESA_INIT_POST_END, "back from AmdInitPost"),
- TS_NAME_DEF(TS_AGESA_INIT_ENV_START, "calling AmdInitEnv"),
- TS_NAME_DEF(TS_AGESA_INIT_ENV_END, "back from AmdInitEnv"),
- TS_NAME_DEF(TS_AGESA_INIT_MID_START, "calling AmdInitMid"),
- TS_NAME_DEF(TS_AGESA_INIT_MID_END, "back from AmdInitMid"),
- TS_NAME_DEF(TS_AGESA_INIT_LATE_START, "calling AmdInitLate"),
- TS_NAME_DEF(TS_AGESA_INIT_LATE_END, "back from AmdInitLate"),
- TS_NAME_DEF(TS_AGESA_INIT_RTB_START, "calling AmdInitRtb/AmdS3Save"),
- TS_NAME_DEF(TS_AGESA_INIT_RTB_END, "back from AmdInitRtb/AmdS3Save"),
- TS_NAME_DEF(TS_AGESA_INIT_RESUME_START, "calling AmdInitResume"),
- TS_NAME_DEF(TS_AGESA_INIT_RESUME_END, "back from AmdInitResume"),
- TS_NAME_DEF(TS_AGESA_S3_LATE_START, "calling AmdS3LateRestore"),
- TS_NAME_DEF(TS_AGESA_S3_LATE_END, "back from AmdS3LateRestore"),
- TS_NAME_DEF(TS_AGESA_S3_FINAL_START, "calling AmdS3FinalRestore"),
- TS_NAME_DEF(TS_AGESA_S3_FINAL_END, "back from AmdS3FinalRestore"),
- TS_NAME_DEF(TS_AMD_APOB_READ_START, "starting APOB read"),
- TS_NAME_DEF(TS_AMD_APOB_ERASE_START, "starting APOB erase"),
- TS_NAME_DEF(TS_AMD_APOB_WRITE_START, "starting APOB write"),
- TS_NAME_DEF(TS_AMD_APOB_END, "finished APOB"),
+ TS_NAME_DEF(TS_AGESA_INIT_RESET_START, TS_AGESA_INIT_RESET_END, "calling AmdInitReset"),
+ TS_NAME_DEF(TS_AGESA_INIT_RESET_END, 0, "back from AmdInitReset"),
+ TS_NAME_DEF(TS_AGESA_INIT_EARLY_START, TS_AGESA_INIT_EARLY_END, "calling AmdInitEarly"),
+ TS_NAME_DEF(TS_AGESA_INIT_EARLY_END, 0, "back from AmdInitEarly"),
+ TS_NAME_DEF(TS_AGESA_INIT_POST_START, TS_AGESA_INIT_POST_END, "calling AmdInitPost"),
+ TS_NAME_DEF(TS_AGESA_INIT_POST_END, 0, "back from AmdInitPost"),
+ TS_NAME_DEF(TS_AGESA_INIT_ENV_START, TS_AGESA_INIT_ENV_END, "calling AmdInitEnv"),
+ TS_NAME_DEF(TS_AGESA_INIT_ENV_END, 0, "back from AmdInitEnv"),
+ TS_NAME_DEF(TS_AGESA_INIT_MID_START, TS_AGESA_INIT_MID_END, "calling AmdInitMid"),
+ TS_NAME_DEF(TS_AGESA_INIT_MID_END, 0, "back from AmdInitMid"),
+ TS_NAME_DEF(TS_AGESA_INIT_LATE_START, TS_AGESA_INIT_LATE_END, "calling AmdInitLate"),
+ TS_NAME_DEF(TS_AGESA_INIT_LATE_END, 0, "back from AmdInitLate"),
+ TS_NAME_DEF(TS_AGESA_INIT_RTB_START, TS_AGESA_INIT_RTB_END,
+ "calling AmdInitRtb/AmdS3Save"),
+ TS_NAME_DEF(TS_AGESA_INIT_RTB_END, 0, "back from AmdInitRtb/AmdS3Save"),
+ TS_NAME_DEF(TS_AGESA_INIT_RESUME_START, TS_AGESA_INIT_RESUME_END,
+ "calling AmdInitResume"),
+ TS_NAME_DEF(TS_AGESA_INIT_RESUME_END, 0, "back from AmdInitResume"),
+ TS_NAME_DEF(TS_AGESA_S3_LATE_START, TS_AGESA_S3_LATE_END, "calling AmdS3LateRestore"),
+ TS_NAME_DEF(TS_AGESA_S3_LATE_END, 0, "back from AmdS3LateRestore"),
+ TS_NAME_DEF(TS_AGESA_S3_FINAL_START, TS_AGESA_S3_FINAL_END,
+ "calling AmdS3FinalRestore"),
+ TS_NAME_DEF(TS_AGESA_S3_FINAL_END, 0, "back from AmdS3FinalRestore"),
+ TS_NAME_DEF(TS_AMD_APOB_READ_START, TS_AMD_APOB_END, "starting APOB read"),
+ TS_NAME_DEF(TS_AMD_APOB_ERASE_START, TS_AMD_APOB_WRITE_START, "starting APOB erase"),
+ TS_NAME_DEF(TS_AMD_APOB_WRITE_START, TS_AMD_APOB_END, "starting APOB write"),
+ TS_NAME_DEF(TS_AMD_APOB_END, 0, "finished APOB"),
/* Intel ME related timestamps */
- TS_NAME_DEF(TS_ME_INFORM_DRAM_START, "waiting for ME acknowledgement of raminit"),
- TS_NAME_DEF(TS_ME_INFORM_DRAM_END, "finished waiting for ME response"),
- TS_NAME_DEF(TS_ME_END_OF_POST_START, "before sending EOP to ME"),
- TS_NAME_DEF(TS_ME_END_OF_POST_END, "after sending EOP to ME"),
- TS_NAME_DEF(TS_ME_BOOT_STALL_END, "CSE sent 'Boot Stall Done' to PMC"),
- TS_NAME_DEF(TS_ME_ICC_CONFIG_START, "CSE started to handle ICC configuration"),
- TS_NAME_DEF(TS_ME_HOST_BOOT_PREP_END, "CSE sent 'Host BIOS Prep Done' to PMC"),
- TS_NAME_DEF(TS_ME_RECEIVED_CRDA_FROM_PMC,
+ TS_NAME_DEF(TS_ME_INFORM_DRAM_START, TS_ME_INFORM_DRAM_END,
+ "waiting for ME acknowledgement of raminit"),
+ TS_NAME_DEF(TS_ME_INFORM_DRAM_END, 0, "finished waiting for ME response"),
+ TS_NAME_DEF(TS_ME_END_OF_POST_START, TS_ME_END_OF_POST_END, "before sending EOP to ME"),
+ TS_NAME_DEF(TS_ME_END_OF_POST_END, 0, "after sending EOP to ME"),
+ TS_NAME_DEF(TS_ME_BOOT_STALL_END, 0, "CSE sent 'Boot Stall Done' to PMC"),
+ TS_NAME_DEF(TS_ME_ICC_CONFIG_START, 0, "CSE started to handle ICC configuration"),
+ TS_NAME_DEF(TS_ME_HOST_BOOT_PREP_END, 0, "CSE sent 'Host BIOS Prep Done' to PMC"),
+ TS_NAME_DEF(TS_ME_RECEIVED_CRDA_FROM_PMC, 0,
"CSE received 'CPU Reset Done Ack sent' from PMC"),
- TS_NAME_DEF(TS_CSE_FW_SYNC_START, "starting CSE firmware sync"),
- TS_NAME_DEF(TS_CSE_FW_SYNC_END, "finished CSE firmware sync"),
+ TS_NAME_DEF(TS_CSE_FW_SYNC_START, TS_CSE_FW_SYNC_END, "starting CSE firmware sync"),
+ TS_NAME_DEF(TS_CSE_FW_SYNC_END, 0, "finished CSE firmware sync"),
/* FSP related timestamps */
- TS_NAME_DEF(TS_FSP_MEMORY_INIT_START, "calling FspMemoryInit"),
- TS_NAME_DEF(TS_FSP_MEMORY_INIT_END, "returning from FspMemoryInit"),
- TS_NAME_DEF(TS_FSP_TEMP_RAM_EXIT_START, "calling FspTempRamExit"),
- TS_NAME_DEF(TS_FSP_TEMP_RAM_EXIT_END, "returning from FspTempRamExit"),
- TS_NAME_DEF(TS_FSP_SILICON_INIT_START, "calling FspSiliconInit"),
- TS_NAME_DEF(TS_FSP_SILICON_INIT_END, "returning from FspSiliconInit"),
- TS_NAME_DEF(TS_FSP_MULTI_PHASE_SI_INIT_START, "calling FspMultiPhaseSiInit"),
- TS_NAME_DEF(TS_FSP_MULTI_PHASE_SI_INIT_END, "returning from FspMultiPhaseSiInit"),
- TS_NAME_DEF(TS_FSP_ENUMERATE_START, "calling FspNotify(AfterPciEnumeration)"),
- TS_NAME_DEF(TS_FSP_ENUMERATE_END, "returning from FspNotify(AfterPciEnumeration)"),
- TS_NAME_DEF(TS_FSP_FINALIZE_START, "calling FspNotify(ReadyToBoot)"),
- TS_NAME_DEF(TS_FSP_FINALIZE_END, "returning from FspNotify(ReadyToBoot)"),
- TS_NAME_DEF(TS_FSP_END_OF_FIRMWARE_START, "calling FspNotify(EndOfFirmware)"),
- TS_NAME_DEF(TS_FSP_END_OF_FIRMWARE_END, "returning from FspNotify(EndOfFirmware)"),
- TS_NAME_DEF(TS_FSP_MEMORY_INIT_LOAD, "loading FSP-M"),
- TS_NAME_DEF(TS_FSP_SILICON_INIT_LOAD, "loading FSP-S"),
+ TS_NAME_DEF(TS_FSP_MEMORY_INIT_START, TS_FSP_MEMORY_INIT_END, "calling FspMemoryInit"),
+ TS_NAME_DEF(TS_FSP_MEMORY_INIT_END, 0, "returning from FspMemoryInit"),
+ TS_NAME_DEF(TS_FSP_TEMP_RAM_EXIT_START, TS_FSP_TEMP_RAM_EXIT_END,
+ "calling FspTempRamExit"),
+ TS_NAME_DEF(TS_FSP_TEMP_RAM_EXIT_END, 0, "returning from FspTempRamExit"),
+ TS_NAME_DEF(TS_FSP_SILICON_INIT_START, TS_FSP_SILICON_INIT_END,
+ "calling FspSiliconInit"),
+ TS_NAME_DEF(TS_FSP_SILICON_INIT_END, 0, "returning from FspSiliconInit"),
+ TS_NAME_DEF(TS_FSP_MULTI_PHASE_SI_INIT_START, TS_FSP_MULTI_PHASE_SI_INIT_END,
+ "calling FspMultiPhaseSiInit"),
+ TS_NAME_DEF(TS_FSP_MULTI_PHASE_SI_INIT_END, 0, "returning from FspMultiPhaseSiInit"),
+ TS_NAME_DEF(TS_FSP_ENUMERATE_START, TS_FSP_ENUMERATE_END,
+ "calling FspNotify(AfterPciEnumeration)"),
+ TS_NAME_DEF(TS_FSP_ENUMERATE_END, 0, "returning from FspNotify(AfterPciEnumeration)"),
+ TS_NAME_DEF(TS_FSP_FINALIZE_START, TS_FSP_FINALIZE_END,
+ "calling FspNotify(ReadyToBoot)"),
+ TS_NAME_DEF(TS_FSP_FINALIZE_END, 0, "returning from FspNotify(ReadyToBoot)"),
+ TS_NAME_DEF(TS_FSP_END_OF_FIRMWARE_START, TS_FSP_END_OF_FIRMWARE_END,
+ "calling FspNotify(EndOfFirmware)"),
+ TS_NAME_DEF(TS_FSP_END_OF_FIRMWARE_END, 0, "returning from FspNotify(EndOfFirmware)"),
+ TS_NAME_DEF(TS_FSP_MEMORY_INIT_LOAD, 0, "loading FSP-M"),
+ TS_NAME_DEF(TS_FSP_SILICON_INIT_LOAD, 0, "loading FSP-S"),
/* Intel ME continued */
- TS_NAME_DEF(TS_ME_ROM_START, "CSME ROM started execution"),
+ TS_NAME_DEF(TS_ME_ROM_START, 0, "CSME ROM started execution"),
/* Depthcharge entry timestamp */
- TS_NAME_DEF(TS_DC_START, "depthcharge start"),
+ TS_NAME_DEF(TS_DC_START, 0, "depthcharge start"),
- TS_NAME_DEF(TS_RO_PARAMS_INIT, "RO parameter init"),
- TS_NAME_DEF(TS_RO_VB_INIT, "RO vboot init"),
- TS_NAME_DEF(TS_RO_VB_SELECT_FIRMWARE, "RO vboot select firmware"),
- TS_NAME_DEF(TS_RO_VB_SELECT_AND_LOAD_KERNEL, "RO vboot select&load kernel"),
+ TS_NAME_DEF(TS_RO_PARAMS_INIT, 0, "RO parameter init"),
+ TS_NAME_DEF(TS_RO_VB_INIT, 0, "RO vboot init"),
+ TS_NAME_DEF(TS_RO_VB_SELECT_FIRMWARE, 0, "RO vboot select firmware"),
+ TS_NAME_DEF(TS_RO_VB_SELECT_AND_LOAD_KERNEL, 0, "RO vboot select&load kernel"),
- TS_NAME_DEF(TS_RW_VB_SELECT_AND_LOAD_KERNEL, "RW vboot select&load kernel"),
+ TS_NAME_DEF(TS_RW_VB_SELECT_AND_LOAD_KERNEL, 0, "RW vboot select&load kernel"),
- TS_NAME_DEF(TS_VB_SELECT_AND_LOAD_KERNEL, "vboot select&load kernel"),
- TS_NAME_DEF(TS_VB_EC_VBOOT_DONE, "finished EC verification"),
- TS_NAME_DEF(TS_VB_STORAGE_INIT_DONE, "finished storage device initialization"),
- TS_NAME_DEF(TS_VB_READ_KERNEL_DONE, "finished reading kernel from disk"),
- TS_NAME_DEF(TS_VB_VBOOT_DONE, "finished vboot kernel verification"),
+ TS_NAME_DEF(TS_VB_SELECT_AND_LOAD_KERNEL, 0, "vboot select&load kernel"),
+ TS_NAME_DEF(TS_VB_EC_VBOOT_DONE, 0, "finished EC verification"),
+ TS_NAME_DEF(TS_VB_STORAGE_INIT_DONE, 0, "finished storage device initialization"),
+ TS_NAME_DEF(TS_VB_READ_KERNEL_DONE, 0, "finished reading kernel from disk"),
+ TS_NAME_DEF(TS_VB_VBOOT_DONE, 0, "finished vboot kernel verification"),
- TS_NAME_DEF(TS_KERNEL_START, "jumping to kernel"),
- TS_NAME_DEF(TS_KERNEL_DECOMPRESSION, "starting kernel decompression/relocation"),
+ TS_NAME_DEF(TS_KERNEL_START, 0, "jumping to kernel"),
+ TS_NAME_DEF(TS_KERNEL_DECOMPRESSION, 0, "starting kernel decompression/relocation"),
};
#endif