summaryrefslogtreecommitdiff
path: root/src/security
diff options
context:
space:
mode:
authorRaul E Rangel <rrangel@chromium.org>2021-06-09 15:39:19 -0600
committerWerner Zeh <werner.zeh@siemens.com>2021-06-14 05:11:07 +0000
commit170ac85d8fb99181e0382b412a10fbf22bfd9d20 (patch)
treeca20b5e5164d5e717ff165e2106a1ed2ee16f056 /src/security
parentcbc7c50b951f663c82f817ae5bc183f8c8e3a767 (diff)
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 <rrangel@chromium.org> Change-Id: I2cde58cb8aa796829a4e054e6925e2394973484b Reviewed-on: https://review.coreboot.org/c/coreboot/+/55370 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/security')
-rw-r--r--src/security/vboot/vboot_loader.c3
1 files changed, 3 insertions, 0 deletions
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 <security/vboot/misc.h>
#include <security/vboot/symbols.h>
#include <security/vboot/vboot_common.h>
+#include <timestamp.h>
/* 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);