summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2009-08-14 05:55:45 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2009-08-14 05:55:45 +0000
commitcd6a3b157c6e3d189cf2ce7a6b3bd077dad43999 (patch)
tree170bb9c3910c86b45f3a8ab02128c0a1935d6fa8
parent9afd0514a6e1d0abc3eacd285acc910830c9369f (diff)
downloadedk2-platforms-cd6a3b157c6e3d189cf2ce7a6b3bd077dad43999.tar.xz
Add performance logging on EFI boot path
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9071 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c
index 9042cc3428..7c47a87333 100644
--- a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c
+++ b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c
@@ -1,7 +1,7 @@
/** @file
BDS Lib functions which relate with create or process the boot option.
-Copyright (c) 2004 - 2008, Intel Corporation. <BR>
+Copyright (c) 2004 - 2009, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -55,7 +55,7 @@ BdsLibDoLegacyBoot (
BdsRefreshBbsTableForBoot (Option);
//
- // Write boot to OS performance data to a file
+ // Write boot to OS performance data for legacy boot.
//
PERF_CODE (
WriteBootToOsPerformanceData ();
@@ -323,6 +323,13 @@ BdsLibBootViaBootOption (
//
gBS->SetWatchdogTimer (5 * 60, 0x0000, 0x00, NULL);
+ //
+ // Write boot to OS performance data for UEFI boot
+ //
+ PERF_CODE (
+ WriteBootToOsPerformanceData ();
+ );
+
Status = gBS->StartImage (ImageHandle, ExitDataSize, ExitData);
DEBUG ((DEBUG_INFO | DEBUG_LOAD, "Image Return Status = %r\n", Status));