Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(352)

Unified Diff: firmware/include/vboot_struct.h

Issue 6672068: Added timing data to VbSharedData. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « firmware/include/utility.h ('k') | firmware/lib/vboot_firmware.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: firmware/include/vboot_struct.h
diff --git a/firmware/include/vboot_struct.h b/firmware/include/vboot_struct.h
index 1e988ee180ff8ea2ca473f68b37ed22c6c759231..bb47403bb855497743894795a82a13823a181d8d 100644
--- a/firmware/include/vboot_struct.h
+++ b/firmware/include/vboot_struct.h
@@ -157,10 +157,20 @@ typedef struct VbSharedDataHeader {
VbPublicKey kernel_subkey; /* Kernel subkey, from firmware */
uint64_t kernel_subkey_data_offset; /* Offset of kernel subkey data from
* start of this struct */
- uint64_t kernel_subkey_data_size; /* Offset of kernel subkey data */
+ uint64_t kernel_subkey_data_size; /* Size of kernel subkey data */
uint64_t flags; /* Flags */
+ /* Timer values from VbGetTimer(). Unused values are set to 0. If a
+ * function is called mutiple times, these are the times from the
+ * most recent call. */
+ uint64_t timer_load_firmware_start_enter; /* LoadFirmwareStart() - enter */
+ uint64_t timer_load_firmware_start_exit; /* LoadFirmwareStart() - exit */
+ uint64_t timer_load_firmware_enter; /* LoadFirmware() - enter */
+ uint64_t timer_load_firmware_exit; /* LoadFirmware() - exit */
+ uint64_t timer_load_kernel_enter; /* LoadKernel() - enter */
+ uint64_t timer_load_kernel_exit; /* LoadKernel() - exit */
+
/* After read-only firmware which uses version 1 is released, any additional
* fields must be added below, and the struct version must be increased.
* Before reading/writing those fields, make sure that the struct being
« no previous file with comments | « firmware/include/utility.h ('k') | firmware/lib/vboot_firmware.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698