MdeModulePkg: Use new added Perf macros
Replace old Perf macros with the new added ones. Cc: Liming Gao <liming.gao@intel.com> Cc: Star Zeng <star.zeng@intel.com> Cc: Eric Dong <eric.dong@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@@ -321,13 +321,9 @@ SmmLoadImage (
|
||||
EFI_DEVICE_PATH_PROTOCOL *HandleFilePath;
|
||||
EFI_FIRMWARE_VOLUME2_PROTOCOL *Fv;
|
||||
PE_COFF_LOADER_IMAGE_CONTEXT ImageContext;
|
||||
UINT64 Tick;
|
||||
|
||||
Tick = 0;
|
||||
PERF_CODE (
|
||||
Tick = GetPerformanceCounter ();
|
||||
);
|
||||
|
||||
PERF_LOAD_IMAGE_BEGIN (DriverEntry->ImageHandle);
|
||||
|
||||
Buffer = NULL;
|
||||
Size = 0;
|
||||
Fv = DriverEntry->Fv;
|
||||
@@ -641,8 +637,7 @@ SmmLoadImage (
|
||||
&DriverEntry->SmmLoadedImage
|
||||
);
|
||||
|
||||
PERF_START (DriverEntry->ImageHandle, "LoadImage:", NULL, Tick);
|
||||
PERF_END (DriverEntry->ImageHandle, "LoadImage:", NULL, 0);
|
||||
PERF_LOAD_IMAGE_END (DriverEntry->ImageHandle);
|
||||
|
||||
//
|
||||
// Print the load address and the PDB file name if it is available
|
||||
@@ -909,9 +904,9 @@ SmmDispatcher (
|
||||
// For each SMM driver, pass NULL as ImageHandle
|
||||
//
|
||||
RegisterSmramProfileImage (DriverEntry, TRUE);
|
||||
PERF_START (DriverEntry->ImageHandle, "StartImage:", NULL, 0);
|
||||
PERF_START_IMAGE_BEGIN (DriverEntry->ImageHandle);
|
||||
Status = ((EFI_IMAGE_ENTRY_POINT)(UINTN)DriverEntry->ImageEntryPoint)(DriverEntry->ImageHandle, gST);
|
||||
PERF_END (DriverEntry->ImageHandle, "StartImage:", NULL, 0);
|
||||
PERF_START_IMAGE_END (DriverEntry->ImageHandle);
|
||||
if (EFI_ERROR(Status)){
|
||||
UnregisterSmramProfileImage (DriverEntry, TRUE);
|
||||
SmmFreePages(DriverEntry->ImageBuffer, DriverEntry->NumberOfPage);
|
||||
|
Reference in New Issue
Block a user