Attention is currently required from: Julius Werner. Jakub Czapiga has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/62021 )
Change subject: src/lib: Make START/END timestamps use new timestamp API ......................................................................
src/lib: Make START/END timestamps use new timestamp API
Signed-off-by: Jakub Czapiga jacz@semihalf.com Change-Id: I64e8af313128ee03d6abaebe7364ebd3d04164c2 --- M src/lib/bootblock.c M src/lib/cbfs.c M src/lib/fit_payload.c M src/lib/prog_loaders.c M src/lib/selfboot.c 5 files changed, 18 insertions(+), 18 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/21/62021/1
diff --git a/src/lib/bootblock.c b/src/lib/bootblock.c index 5c202ba..b0e51d7 100644 --- a/src/lib/bootblock.c +++ b/src/lib/bootblock.c @@ -39,7 +39,7 @@ timestamps[i].entry_stamp); }
- timestamp_add_now(TS_BOOTBLOCK_START); + timestamp_start(TS_BOOTBLOCK);
bootblock_soc_early_init(); bootblock_mainboard_early_init(); @@ -63,7 +63,7 @@ tpm_setup(s3resume); }
- timestamp_add_now(TS_BOOTBLOCK_END); + timestamp_end(TS_BOOTBLOCK);
run_romstage(); } diff --git a/src/lib/cbfs.c b/src/lib/cbfs.c index 0f07a32..0b0a300 100644 --- a/src/lib/cbfs.c +++ b/src/lib/cbfs.c @@ -215,9 +215,9 @@ return 0;
if (!cbfs_file_hash_mismatch(map, in_size, mdata, skip_verification)) { - timestamp_add_now(TS_ULZ4F_START); + timestamp_start(TS_ULZ4F); out_size = ulz4fn(map, in_size, buffer, buffer_size); - timestamp_add_now(TS_ULZ4F_END); + timestamp_end(TS_ULZ4F); }
rdev_munmap(rdev, map); @@ -233,9 +233,9 @@
if (!cbfs_file_hash_mismatch(map, in_size, mdata, skip_verification)) { /* Note: timestamp not useful for memory-mapped media (x86) */ - timestamp_add_now(TS_ULZMA_START); + timestamp_start(TS_ULZMA); out_size = ulzman(map, in_size, buffer, buffer_size); - timestamp_add_now(TS_ULZMA_END); + timestamp_end(TS_ULZMA); }
rdev_munmap(rdev, map); diff --git a/src/lib/fit_payload.c b/src/lib/fit_payload.c index 21bc4e8..e2f4de3 100644 --- a/src/lib/fit_payload.c +++ b/src/lib/fit_payload.c @@ -62,14 +62,14 @@ true_size = node->size; break; case CBFS_COMPRESS_LZMA: - timestamp_add_now(TS_ULZMA_START); + timestamp_start(TS_ULZMA); true_size = ulzman(node->data, node->size, dst, region->size); - timestamp_add_now(TS_ULZMA_END); + timestamp_end(TS_ULZMA); break; case CBFS_COMPRESS_LZ4: - timestamp_add_now(TS_ULZ4F_START); + timestamp_start(TS_ULZ4F); true_size = ulz4fn(node->data, node->size, dst, region->size); - timestamp_add_now(TS_ULZ4F_END); + timestamp_end(TS_ULZ4F); break; default: return true; diff --git a/src/lib/prog_loaders.c b/src/lib/prog_loaders.c index ef8430e..9a59867 100644 --- a/src/lib/prog_loaders.c +++ b/src/lib/prog_loaders.c @@ -24,7 +24,7 @@
vboot_run_logic();
- timestamp_add_now(TS_COPYROM_START); + timestamp_start(TS_COPYROM);
if (ENV_X86 && CONFIG(BOOTBLOCK_NORMAL)) { if (legacy_romstage_select_and_load(&romstage)) @@ -34,7 +34,7 @@ goto fail; }
- timestamp_add_now(TS_COPYROM_END); + timestamp_end(TS_COPYROM);
console_time_report();
@@ -105,7 +105,7 @@
vboot_run_logic();
- timestamp_add_now(TS_COPYRAM_START); + timestamp_start(TS_COPYRAM);
if (ENV_X86) { if (load_relocatable_ramstage(&ramstage)) @@ -117,7 +117,7 @@
stage_cache_add(STAGE_RAMSTAGE, &ramstage);
- timestamp_add_now(TS_COPYRAM_END); + timestamp_end(TS_COPYRAM);
console_time_report();
diff --git a/src/lib/selfboot.c b/src/lib/selfboot.c index 70ab719..81393da 100644 --- a/src/lib/selfboot.c +++ b/src/lib/selfboot.c @@ -72,18 +72,18 @@ switch (compression) { case CBFS_COMPRESS_LZMA: { printk(BIOS_DEBUG, "using LZMA\n"); - timestamp_add_now(TS_ULZMA_START); + timestamp_start(TS_ULZMA); len = ulzman(src, len, dest, memsz); - timestamp_add_now(TS_ULZMA_END); + timestamp_end(TS_ULZMA); if (!len) /* Decompression Error. */ return 0; break; } case CBFS_COMPRESS_LZ4: { printk(BIOS_DEBUG, "using LZ4\n"); - timestamp_add_now(TS_ULZ4F_START); + timestamp_start(TS_ULZ4F); len = ulz4fn(src, len, dest, memsz); - timestamp_add_now(TS_ULZ4F_END); + timestamp_end(TS_ULZ4F); if (!len) /* Decompression Error. */ return 0; break;