From 170ac85d8fb99181e0382b412a10fbf22bfd9d20 Mon Sep 17 00:00:00 2001 From: Raul E Rangel Date: Wed, 9 Jun 2021 15:39:19 -0600 Subject: security/vboot: Add timestamps when loading verstage We are not currently tracking how long it takes to load verstage. The enum values already exist, they just weren't used. BUG=b:179092979 TEST=Dump timestamps 501:starting to load verstage 2,280,656 (1) 502:finished loading verstage 2,340,845 (60,189) Signed-off-by: Raul E Rangel Change-Id: I2cde58cb8aa796829a4e054e6925e2394973484b Reviewed-on: https://review.coreboot.org/c/coreboot/+/55370 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner Reviewed-by: Angel Pons --- src/security/vboot/vboot_loader.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/security/vboot/vboot_loader.c b/src/security/vboot/vboot_loader.c index 9ca625938f..482c6fb7c5 100644 --- a/src/security/vboot/vboot_loader.c +++ b/src/security/vboot/vboot_loader.c @@ -10,6 +10,7 @@ #include #include #include +#include /* Ensure vboot configuration is valid: */ _Static_assert(CONFIG(VBOOT_STARTS_IN_BOOTBLOCK) + @@ -51,8 +52,10 @@ void vboot_run_logic(void) printk(BIOS_DEBUG, "VBOOT: Loading verstage.\n"); + timestamp_add_now(TS_START_COPYVER); if (cbfs_prog_stage_load(&verstage)) die("failed to load verstage"); + timestamp_add_now(TS_END_COPYVER); /* verify and select a slot */ prog_run(&verstage); -- cgit v1.2.3