EFI_DEVICE_PATH_PROTOCOL *HandleFilePath;\r
EFI_FIRMWARE_VOLUME2_PROTOCOL *Fv;\r
PE_COFF_LOADER_IMAGE_CONTEXT ImageContext;\r
+ UINT64 Tick;\r
+\r
+ Tick = 0;\r
+ PERF_CODE (\r
+ Tick = GetPerformanceCounter ();\r
+ );\r
\r
Buffer = NULL;\r
Size = 0;\r
NULL\r
);\r
\r
+ PERF_START (DriverEntry->ImageHandle, "LoadImage:", NULL, Tick);\r
+ PERF_END (DriverEntry->ImageHandle, "LoadImage:", NULL, 0);\r
+\r
//\r
// Print the load address and the PDB file name if it is available\r
//\r
//\r
// For each SMM driver, pass NULL as ImageHandle\r
//\r
+ PERF_START (DriverEntry->ImageHandle, "StartImage:", NULL, 0);\r
Status = ((EFI_IMAGE_ENTRY_POINT)(UINTN)DriverEntry->ImageEntryPoint)(DriverEntry->ImageHandle, gST);\r
+ PERF_END (DriverEntry->ImageHandle, "StartImage:", NULL, 0);\r
if (EFI_ERROR(Status)){\r
SmmFreePages(DriverEntry->ImageBuffer, DriverEntry->NumberOfPage);\r
}\r
The internal header file includes the common header files, defines\r
internal structure and functions used by SmmCore module.\r
\r
- Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials are licensed and made available \r
under the terms and conditions of the BSD License which accompanies this \r
distribution. The full text of the license may be found at \r
#include <Library/PcdLib.h>\r
#include <Library/SmmCorePlatformHookLib.h>\r
#include <Library/PerformanceLib.h>\r
+#include <Library/TimerLib.h>\r
\r
#include "PiSmmCorePrivateData.h"\r
\r
## @file\r
# This module provide an SMM CIS compliant implementation of SMM Core.\r
#\r
-# Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
PcdLib\r
SmmCorePlatformHookLib\r
PerformanceLib\r
+ TimerLib\r
\r
[Protocols]\r
gEfiDxeSmmReadyToLockProtocolGuid # PROTOCOL ALWAYS_CONSUMED\r