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>
This commit is contained in:
committed by
Werner Zeh
parent
cbc7c50b95
commit
170ac85d8f
@@ -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);
|
||||
|
Reference in New Issue
Block a user