Tim Wawrzynczak has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/36209 )
Change subject: security/vboot/sync_ec: Add timestamps ......................................................................
security/vboot/sync_ec: Add timestamps
Add 2 new timestamps to indicate the beginning and end of EC software sync.
Change-Id: I6e5703c146b5ec27d01700fdb39cb3d2092ea8a8 Signed-off-by: Tim Wawrzynczak twawrzynczak@chromium.org --- M src/commonlib/include/commonlib/timestamp_serialized.h M src/security/vboot/sync_ec.c 2 files changed, 8 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/09/36209/1
diff --git a/src/commonlib/include/commonlib/timestamp_serialized.h b/src/commonlib/include/commonlib/timestamp_serialized.h index 7b1a730..b6c7c4f 100644 --- a/src/commonlib/include/commonlib/timestamp_serialized.h +++ b/src/commonlib/include/commonlib/timestamp_serialized.h @@ -82,6 +82,8 @@ TS_START_COPYVPD = 550, TS_END_COPYVPD_RO = 551, TS_END_COPYVPD_RW = 552, + TS_START_EC_SYNC = 553, + TS_END_EC_SYNC = 554,
/* 900-920 reserved for vendorcode extensions (900-940: AMD AGESA) */ TS_AGESA_INIT_RESET_START = 900, @@ -202,6 +204,9 @@ { TS_END_COPYVPD_RO, "finished loading Chrome OS VPD (RO)" }, { TS_END_COPYVPD_RW, "finished loading Chrome OS VPD (RW)" },
+ { TS_START_EC_SYNC, "starting EC software sync" }, + { TS_END_EC_SYNC, "finished EC software sync" }, + { TS_DC_START, "depthcharge start" }, { TS_RO_PARAMS_INIT, "RO parameter init" }, { TS_RO_VB_INIT, "RO vboot init" }, diff --git a/src/security/vboot/sync_ec.c b/src/security/vboot/sync_ec.c index f40934b..6c3c55a 100644 --- a/src/security/vboot/sync_ec.c +++ b/src/security/vboot/sync_ec.c @@ -55,6 +55,8 @@ vb2_error_t retval = 0; uint8_t *p;
+ timestamp_add_now(TS_START_EC_SYNC); + /* Init workspace, VBNB, etc. */ ctx.workbuf_size = VB2_FIRMWARE_WORKBUF_RECOMMENDED_SIZE; ctx.workbuf = temp_workbuf; @@ -330,6 +332,7 @@ /* Callback for when Vboot is finished */ vb2_error_t VbExEcVbootDone(int in_recovery) { + timestamp_add_now(TS_END_EC_SYNC); return VB2_SUCCESS; }