MdeModulePkg/SmiHandlerProfileInfo: Include profile SMI in profile

Includes the profiler SMI in the profile itself for completeness.

Co-authored-by: Michael Kubacki <michael.kubacki@microsoft.com>
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
This commit is contained in:
Bret Barkelew 2018-01-19 12:30:14 -08:00 committed by mergify[bot]
parent 62bf2aefc7
commit 489e4a60ea
1 changed files with 13 additions and 4 deletions

View File

@ -2,6 +2,7 @@
SMI handler profile support.
Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
Copyright (c) Microsoft Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
@ -47,6 +48,14 @@ RegisterSmiHandlerProfileHandler (
VOID
);
/**
Build SMI handler profile database.
**/
VOID
BuildSmiHandlerProfileDatabase (
VOID
);
/**
Retrieves and returns a pointer to the entry point to a PE/COFF image that has been loaded
into system memory with the PE/COFF Loader Library functions.
@ -495,6 +504,8 @@ SmmReadyToLockInSmiHandlerProfile (
IN EFI_HANDLE Handle
)
{
RegisterSmiHandlerProfileHandler ();
//
// Dump all image
//
@ -528,7 +539,7 @@ SmmReadyToLockInSmiHandlerProfile (
DEBUG ((DEBUG_INFO, "\n"));
RegisterSmiHandlerProfileHandler ();
BuildSmiHandlerProfileDatabase ();
if (mImageStruct != NULL) {
FreePool (mImageStruct);
@ -860,7 +871,7 @@ GetSmiHandlerProfileDatabaseData (
}
/**
build SMI handler profile database.
Build SMI handler profile database.
**/
VOID
BuildSmiHandlerProfileDatabase (
@ -1074,8 +1085,6 @@ RegisterSmiHandlerProfileHandler (
&DispatchHandle
);
ASSERT_EFI_ERROR (Status);
BuildSmiHandlerProfileDatabase ();
}
/**